> You can pass a structure as the PceNativeCall UserData68KP parameter,
> as long as it's inside a chunk created by MemPtrNew, and not just a stack
> local or global variable, unless your 68k compiler can guarantee 4-byte
> alignment (many can't).

Or you force the alignment of the stack variable manually, such as f.e.

char buf[sizeof(Mystruct)+3] ;
Mystruct *str = (Mystruct*)( ((long)buf + 3) & 0xFFFFFFFC);    // can be
passed to arm

Jan Slodicka



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

Reply via email to