
#ifndef h_palmdep_h
#define h_palmdep_h

#if 1
//#include <PalmOS.h>
//#include <VfsMgr.h>
//#include <PalmOSGlue.h>
#include <PalmOS.h>
#include <VfsMgr.h>
#include <PalmOSGlue.h>
#endif

// some qiuck mappings
//#include "palmdep.h"
#include "endianutils.h"
#include "oscompat.h"
#include "endianutils.h"


#include "AdnDebugMgr.h"
#include "PACEInterfaceLib.h"
#include <size_t.h>
#include <cstddef>

#include "stdfile.h"

#include "StringMgr.h"


#include "PenInputMgr.h"


/* utility
 */
#define INLINE static inline
#define READMODE "rb" /* fucking DOS/windows */

void *MemGluePtrNewL ( UInt32 foo );
UInt16 palm_vfs_iter ( void );
UInt16 palm_vfs_count ( void );

extern UInt32 device_type;


/* debug assist
 */
#define DEBUGU8(x) {                                   \
  char buffer [ 32 ];                                 \
/*  StrPrintF ( buffer, "%u %x", x, x );  */           \
  StrIToA ( buffer, x );                               \
  ErrNonFatalDisplay ( buffer ); \
}

#define DEBUGU32(x) {                                  \
  char buffer [ 32 ];                                 \
  StrIToA ( buffer, x );               \
  ErrNonFatalDisplay ( buffer ); \
}

#define DEBUGS(s) {                                    \
  ErrNonFatalDisplay ( s );      \
}

#endif
