ctypes.pp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2004 by Marco van de Voort, member of the
  5. Free Pascal development team
  6. Implements C types for in header conversions
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. unit ctypes;
  14. interface
  15. {$ifdef unix}
  16. uses unixtype;
  17. {$i aliasctp.inc}
  18. {$else}
  19. Type
  20. { the following type definitions are compiler dependant }
  21. { and system dependant }
  22. cInt8 = shortint;
  23. cUInt8 = byte;
  24. cUInt16= word;
  25. cInt16 = smallint;
  26. cInt32 = longint;
  27. cUInt32= cardinal;
  28. cInt64 = int64;
  29. {$ifndef VER1_0}
  30. cUInt64= qword;
  31. {$else}
  32. cUInt64= int64;
  33. {$endif}
  34. cuchar = byte;
  35. cInt = longint; { minimum range is : 32-bit }
  36. cUInt = Cardinal; { minimum range is : 32-bit }
  37. {$ifdef CPU64}
  38. cLong = int64;
  39. {$ifdef VER1_0}
  40. cuLong = int64;
  41. {$else}
  42. cuLong = qword;
  43. {$endif}
  44. {$else}
  45. cLong = longint;
  46. cuLong = Cardinal;
  47. {$endif}
  48. clonglong = int64;
  49. {$ifndef VER1_0}
  50. culonglong = qword;
  51. {$else VER1_0}
  52. culonglong = int64;
  53. {$endif VER1_0}
  54. cshort = integer;
  55. cushort= word;
  56. pcInt = ^cInt;
  57. pcUInt = ^cUInt;
  58. pcLong = ^cLong;
  59. pculong = ^cuLong;
  60. pcshort = ^cshort;
  61. pcushort= ^cushort;
  62. {$endif}
  63. implementation
  64. end.
  65. {
  66. $Log$
  67. Revision 1.1 2005-01-10 10:32:50 marco
  68. * initial version
  69. }