palmos.pp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. unit palmos;
  2. interface
  3. (************************************************************
  4. * Common constants
  5. *************************************************************)
  6. type
  7. Int8 = ShortInt;
  8. Int16 = Integer;
  9. Int32 = LongInt;
  10. UInt8 = Byte;
  11. UInt16 = Word;
  12. UInt32 = LongWord;
  13. // Logical data types
  14. WChar = UInt16; // 'wide' int'l character type.
  15. Err = UInt16;
  16. LocalID = UInt32; // local (card relative) chunk ID
  17. Coord = Int16; // screen/window coordinate
  18. MemPtr = Pointer; // global pointer
  19. MemHandle = Pointer; // global handle
  20. ProcPtr = function: Int32;
  21. const
  22. NULL = 0;
  23. bitsInByte = 8;
  24. (************************************************************
  25. * Palm specific TRAP instruction numbers
  26. *************************************************************)
  27. const
  28. sysDbgBreakpointTrapNum = 0; // For soft breakpoints
  29. sysDbgTrapNum = 8; // For compiled breakpoints
  30. sysDispatchTrapNum = 15; // Trap dispatcher
  31. type
  32. Enum = Byte;
  33. WordEnum = Word;
  34. LongEnum = LongWord;
  35. Int8Ptr = ^Int8;
  36. Int16Ptr = ^Int16;
  37. Int32Ptr = ^Int32;
  38. UInt8Ptr = ^UInt8;
  39. UInt16Ptr = ^UInt16;
  40. UInt32Ptr = ^UInt32;
  41. PointerPtr = ^Pointer;
  42. PCharPtr = ^PChar;
  43. MemPtrPtr = ^MemPtr;
  44. WCharPtr = ^WChar;
  45. Smallint = Integer;
  46. implementation
  47. end.