API Guide Home
(Online version only)

FarCall.h File Reference

Go to the source code of this file.

Defines


Define Documentation

#define FAR_CALL ( funcName   ) 

file FarCall.h

Version:
1.0
Date:
06/06/2000
Macros for declaring a function that will be located more than 32K away from its caller. This is trickier than it sounds, since the branch instructions in the 68K don't support greater than 16-bit jumps.

History: 22-feb-2000 dia Initial version 08-mar-2000 dia Fixed off-by-two error (don't know why it worked before). 06-Apr-2000 BP Added support for gcc 2.95 and new callseq attribute 11-Apr-2000 BP Added FAR_PTR for function pointers 06-jun-2000 dia Fixed FAR_PTR--it wasn't loading right.


Definition at line 117 of file FarCall.h.

#define FAR_DECLARE ( funcName   ) 

Value:

funcName##FnType funcName;                              \
            static funcName##FnType * const Far##funcName = funcName                       \

Definition at line 122 of file FarCall.h.

#define FAR_PTR ( outPtr,
funcPtr   )     do { *(outPtr) = (funcPtr); } while (0)

Definition at line 127 of file FarCall.h.


Top Palm Developer Network
© 2004-2008, Palm, Inc. All rights reserved.
Generated on Fri Jun 13 10:06:57 2008 for Palm API Guide