On 23/07/2019 19:47, BALATON Zoltan wrote:
Maybe it would help if I knew which is which? So active-package is a phandle while my-self is an instance, thus ihandle? What makes an instance from a package? And where these are expected to point?
They are effectively pointers to package and instance structures, but again all this is explained in the IEEE-1275 specification if you look for "active package" and "current instance". I'm not sure there's one particular place that you can look.
Also I'm less interested in converting between these but more to find out where these point to during the execution when it works and when it breaks. So the question is more that given one of these numbers how do I get a name or path that identifies what it's pointing to during debugging? Then I could add fwords to the C callback to print these every time map-in is called so we can see what active-package and my-self are pointing to at that point and we may find out if they are correct or where those are set. There must be an easy way to do this that someone who already knows can tell me so I don't have to read all the docs first to find out.
You could try:
feval("active-package u.");
and:
feval("my-self u."); feval("my-self ihandle>phandle u.");
ATB,
Mark.