common.inc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {
  2. Copyright © 1995 - 1998, 3Com Corporation or its subsidiaries ("3Com").
  3. All rights reserved.
  4. This software may be copied and used solely for developing products for
  5. the Palm Computing platform and for archival and backup purposes. Except
  6. for the foregoing, no part of this software may be reproduced or transmitted
  7. in any form or by any means or used to make any derivative work (such as
  8. translation, transformation or adaptation) without express written consent
  9. from 3Com.
  10. 3Com reserves the right to revise this software and to make changes in content
  11. from time to time without obligation on the part of 3Com to provide notification
  12. of such revision or changes.
  13. 3COM MAKES NO REPRESENTATIONS OR WARRANTIES THAT THE SOFTWARE IS FREE OF ERRORS
  14. OR THAT THE SOFTWARE IS SUITABLE FOR YOUR USE. THE SOFTWARE IS PROVIDED ON AN
  15. "AS IS" BASIS. 3COM MAKES NO WARRANTIES, TERMS OR CONDITIONS, EXPRESS OR IMPLIED,
  16. EITHER IN FACT OR BY OPERATION OF LAW, STATUTORY OR OTHERWISE, INCLUDING WARRANTIES,
  17. TERMS, OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
  18. SATISFACTORY QUALITY.
  19. TO THE FULL EXTENT ALLOWED BY LAW, 3COM ALSO EXCLUDES FOR ITSELF AND ITS SUPPLIERS
  20. ANY LIABILITY, WHETHER BASED IN CONTRACT OR TORT (INCLUDING NEGLIGENCE), FOR
  21. DIRECT, INCIDENTAL, CONSEQUENTIAL, INDIRECT, SPECIAL, OR PUNITIVE DAMAGES OF
  22. ANY KIND, OR FOR LOSS OF REVENUE OR PROFITS, LOSS OF BUSINESS, LOSS OF INFORMATION
  23. OR DATA, OR OTHER FINANCIAL LOSS ARISING OUT OF OR IN CONNECTION WITH THIS SOFTWARE,
  24. EVEN IF 3COM HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  25. 3Com, HotSync, Palm Computing, and Graffiti are registered trademarks, and
  26. Palm III and Palm OS are trademarks of 3Com Corporation or its subsidiaries.
  27. IF THIS SOFTWARE IS PROVIDED ON A COMPACT DISK, THE OTHER SOFTWARE AND
  28. DOCUMENTATION ON THE COMPACT DISK ARE SUBJECT TO THE LICENSE AGREEMENT
  29. ACCOMPANYING THE COMPACT DISK.
  30. -------------------------------------------------------------------
  31. FileName:
  32. Common.inc
  33. Description:
  34. Common include file for all Pilot routines.
  35. Contains elementary data types
  36. History:
  37. 10/19/94 RM - Created by Ron Marianetti
  38. 4/24/97 SL - Changes for PalmOS 2.0 SDK
  39. 8/05/98 Converted to pascal by Florian Klaempfl
  40. }
  41. { Elementary data types }
  42. { Fixed size data types }
  43. type
  44. SByte = char; // I'am not sure about that (FK)
  45. UInt16 = word;
  46. UInt32 = cardinal;
  47. SWord = integer;
  48. Int16 = integer;
  49. SDWord = longint;
  50. Int32 = longint;
  51. DWord = cardinal;
  52. UChar = char; // I'am not sure about that (FK)
  53. Short = integer;
  54. UShort = word;
  55. Int = integer;
  56. UInt = word;
  57. Long = longint;
  58. ULong = cardinal;
  59. Err = integer;
  60. LocalID = DWord;
  61. { Pointer Types }
  62. VoidPtr = pointer;
  63. VoidHand = ^VoidPtr;
  64. SBytePtr = ^SByte;
  65. BytePtr = ^Byte;
  66. SWordPtr = ^SWord;
  67. WordPtr = ^Word;
  68. UInt16Ptr = ^word;
  69. SDWordPtr = ^SDWord;
  70. DWordPtr = ^DWord;
  71. { Logical data types }
  72. BooleanPtr = ^Boolean;
  73. CharPtr = ^Char;
  74. UCharPtr = ^UChar;
  75. ShortPtr = ^Short;
  76. UShortPtr = ^UShort;
  77. IntPtr = ^Int;
  78. UIntPtr = ^UInt;
  79. LongPtr = ^Long;
  80. ULongPtr = ^ULong;
  81. { Generic Pointer types used by Memory Manager }
  82. { We have to define Ptr as char* because that's what the Mac includes do. }
  83. { global pointer }
  84. Ptr = ^char;
  85. { global handle }
  86. Handle = ^Ptr;
  87. { Function types }
  88. ProcPtr = function : Long;cdecl;