At 12:02 AM +0100 2002/03/27, Aaron Ardiri wrote:
>  // code warrior puts 12 bytes of junk at the beginning of the segment
>  #ifdef __GNUC__
>    codePtr = (void *)MemHandleLock(memHandle);
>  #else
>    codePtr = (void *)MemHandleLock(memHandle) + 12;
>  #endif

Huh?

Those "12 bytes of junk" contain perfectly valid code. There's no reason to assume 
(and hard-code?!) a 12-byte offset. That will definitely break if CW's code generation 
is ever changed/improved.

Regards,

Jim Schram
PalmSource Inc.
Partner Engineering

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

Reply via email to