xwords/palm/pace_man.h

47 lines
1.2 KiB
C
Raw Normal View History

/* -*-mode: C; fill-column: 77; c-basic-offset: 4; -*- */
#ifndef _ARMFUNC_HC_H_
#define _ARMFUNC_HC_H_
#ifdef XW_TARGET_PNO
#include "pnostate.h"
2004-09-19 16:43:43 +02:00
#include "xptypes.h"
extern Int16 StrPrintF( Char* s, const Char* formatStr, ... );
extern Int16 StrVPrintF( Char* s, const Char* formatStr, _Palm_va_list arg );
extern void TimSecondsToDateTime( UInt32 seconds, DateTimeType* dateTimeP );
2004-09-19 16:43:43 +02:00
#if 0
# define FUNC_HEADER(n) XP_LOGF( #n " called" )
# define FUNC_TAIL(n) XP_LOGF( #n " done" )
#else
# define FUNC_HEADER(n)
# define FUNC_TAIL(n)
#endif
#define ADD_TO_STACK4(val,offset) \
(unsigned char)(((unsigned long)val) >> 24), \
(unsigned char)(((unsigned long)val) >> 16), \
(unsigned char)(((unsigned long)val) >> 8), \
(unsigned char)(((unsigned long)val) >> 0)
#define ADD_TO_STACK2(val,offset) \
(unsigned char)(((unsigned short)val) >> 8), \
(unsigned char)(((unsigned short)val) >> 0)
#define ADD_TO_STACK1(val,offset) \
2004-09-19 16:43:43 +02:00
(unsigned char)(val), \
(unsigned char)(0)
PNOState* getStorageLoc();
#define GET_CALLBACK_STATE() getStorageLoc()
#define crash() *(int*)1L = 1
unsigned long Byte_Swap32( unsigned long l );
unsigned short Byte_Swap16( unsigned short l );
#endif
#endif