fix order for 1-byte args

This commit is contained in:
ehouse 2004-09-19 14:43:43 +00:00
parent 77960fe3ab
commit d680b3c888

View file

@ -6,16 +6,19 @@
#ifdef XW_TARGET_PNO #ifdef XW_TARGET_PNO
#include "pnostate.h" #include "pnostate.h"
#include "xptypes.h"
extern Int16 StrPrintF( Char* s, const Char* formatStr, ... ); extern Int16 StrPrintF( Char* s, const Char* formatStr, ... );
extern Int16 StrVPrintF( Char* s, const Char* formatStr, _Palm_va_list arg ); extern Int16 StrVPrintF( Char* s, const Char* formatStr, _Palm_va_list arg );
extern void TimSecondsToDateTime( UInt32 seconds, DateTimeType* dateTimeP ); extern void TimSecondsToDateTime( UInt32 seconds, DateTimeType* dateTimeP );
#if 0
/* #define FUNC_HEADER(n) printf( "%s called", #n ); */ # define FUNC_HEADER(n) XP_LOGF( #n " called" )
/* #define FUNC_TAIL(n) printf( "%s done", #n ); */ # define FUNC_TAIL(n) XP_LOGF( #n " done" )
#else
# define FUNC_HEADER(n) # define FUNC_HEADER(n)
# define FUNC_TAIL(n) # define FUNC_TAIL(n)
#endif
#define ADD_TO_STACK4(val,offset) \ #define ADD_TO_STACK4(val,offset) \
(unsigned char)(((unsigned long)val) >> 24), \ (unsigned char)(((unsigned long)val) >> 24), \
@ -28,8 +31,8 @@ extern void TimSecondsToDateTime( UInt32 seconds, DateTimeType* dateTimeP );
(unsigned char)(((unsigned short)val) >> 0) (unsigned char)(((unsigned short)val) >> 0)
#define ADD_TO_STACK1(val,offset) \ #define ADD_TO_STACK1(val,offset) \
(unsigned char)(0), \ (unsigned char)(val), \
(unsigned char)((val) >> 0) (unsigned char)(0)
PNOState* getStorageLoc(); PNOState* getStorageLoc();
#define GET_CALLBACK_STATE() getStorageLoc() #define GET_CALLBACK_STATE() getStorageLoc()