ctypes.inc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. $Id: ctypes.inc,v 1.4 2005/03/13 19:17:14 florian Exp $
  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. cUInt64= qword;
  26. cuchar = byte;
  27. cchar = shortint;
  28. cInt = longint; { minimum range is : 32-bit }
  29. cUInt = Cardinal; { minimum range is : 32-bit }
  30. {$ifdef cpu64}
  31. cLong = int64;
  32. cuLong = qword;
  33. {$else}
  34. cLong = longint;
  35. cuLong = Cardinal;
  36. {$endif}
  37. clonglong = int64;
  38. culonglong = qword;
  39. cshort = smallint;
  40. cushort = word;
  41. pcInt = ^cInt;
  42. pcUInt = ^cUInt;
  43. pcLong = ^cLong;
  44. pculong = ^cuLong;
  45. pcshort = ^cshort;
  46. pcushort = ^cushort;
  47. pcchar = ^cchar;
  48. pcuchar = ^cuchar;
  49. cunsigned = cuint;
  50. pcunsigned = ^cunsigned;
  51. { Floating point }
  52. cFloat = Single;
  53. cDouble = Double;
  54. clDouble = Extended;
  55. pcFloat = ^cFloat;
  56. pcDouble = ^cDouble;
  57. pclDouble = ^clDouble;
  58. {
  59. $Log: ctypes.inc,v $
  60. Revision 1.4 2005/03/13 19:17:14 florian
  61. * indention fixed
  62. Revision 1.3 2005/03/13 10:05:13 florian
  63. + floating point c types added
  64. Revision 1.2 2005/02/14 17:13:31 peter
  65. * truncate log
  66. Revision 1.1 2005/02/13 22:14:36 peter
  67. * new files
  68. Revision 1.6 2005/02/05 23:02:37 florian
  69. + added some missing c types
  70. }