ctypes.inc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2001 by Free Pascal development team
  5. Basic types for C interfacing. Check the 64-bit defines.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {***********************************************************************}
  13. { POSIX TYPE DEFINITIONS }
  14. {***********************************************************************}
  15. Type
  16. { the following type definitions are compiler dependant }
  17. { and system dependant }
  18. cInt8 = shortint;
  19. cUInt8 = byte;
  20. cUInt16= word;
  21. cInt16 = smallint;
  22. cInt32 = longint;
  23. cUInt32= cardinal;
  24. cInt64 = int64;
  25. {$ifndef VER_1_0}
  26. cUInt64= qword;
  27. {$else}
  28. cUInt64= int64;
  29. {$endif}
  30. cuchar = byte;
  31. cInt = longint; { minimum range is : 32-bit }
  32. cUInt = Cardinal; { minimum range is : 32-bit }
  33. {$ifdef cpu64}
  34. cLong = int64;
  35. cuLong = qword;
  36. {$else}
  37. cLong = longint;
  38. cuLong = Cardinal;
  39. {$endif}
  40. cshort = smallint;
  41. cushort= word;
  42. pcInt = ^cInt;
  43. pcUInt = ^cUInt;
  44. pcLong = ^cLong;
  45. pculong = ^cuLong;
  46. pcshort = ^cshort;
  47. pcushort= ^cushort;
  48. {
  49. $Log$
  50. Revision 1.4 2004-04-26 16:53:19 peter
  51. * use cpu64
  52. Revision 1.3 2003/09/16 21:20:40 marco
  53. * pointer's of some basetypes
  54. Revision 1.2 2002/12/18 16:43:26 marco
  55. * new unix rtl, linux part.....
  56. Revision 1.1 2002/11/09 22:39:28 marco
  57. * first version
  58. }