At 11:35 AM +0200 4/20/01, Alexandre Duret-Lutz wrote:
>...
><snip>
>...
>The difference is that the first entry of the table (i.e., offset to
>the name) is negative in the former table while it is positive in the
>latter.  I beleive SysLibFind assumes this offset is an unsigned
>value, and this sounds like a bug to me because all the other
>entries are interpreted as signed by the trap dispatch code
>(i.e., one can define functions before or after the jumptable).

It's not a bug -- it *must* be a positive integer value.

Just because the other offsets *could* be negative doesn't mean that's correct. The 
library name *must* be at the *end* of the dispatch table. It's a shared library 
requirement.


>Now I'm not really worried by this, but I just meant to point
>this out.  (this is with PalmOS 3.5, maybe it has changed with 4.0?)

Thanks for the feedback! We should probably mention this point in the docs...

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to