From fde4bac1cf4181b40ea090a01488ce38cc986a24 Mon Sep 17 00:00:00 2001 From: marco Date: Mon, 10 Jan 2005 10:32:50 +0000 Subject: [PATCH] * initial version --- rtl/inc/ctypes.pp | 85 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 rtl/inc/ctypes.pp diff --git a/rtl/inc/ctypes.pp b/rtl/inc/ctypes.pp new file mode 100644 index 0000000000..b341c5f603 --- /dev/null +++ b/rtl/inc/ctypes.pp @@ -0,0 +1,85 @@ +{ + $Id$ + This file is part of the Free Pascal run time library. + Copyright (c) 2004 by Marco van de Voort, member of the + Free Pascal development team + + Implements C types for in header conversions + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + + **********************************************************************} + +unit ctypes; + +interface + +{$ifdef unix} +uses unixtype; +{$i aliasctp.inc} +{$else} +Type + { the following type definitions are compiler dependant } + { and system dependant } + + cInt8 = shortint; + cUInt8 = byte; + cUInt16= word; + cInt16 = smallint; + cInt32 = longint; + cUInt32= cardinal; + cInt64 = int64; +{$ifndef VER1_0} + cUInt64= qword; +{$else} + cUInt64= int64; +{$endif} + + cuchar = byte; + cInt = longint; { minimum range is : 32-bit } + cUInt = Cardinal; { minimum range is : 32-bit } + {$ifdef CPU64} + cLong = int64; + {$ifdef VER1_0} + cuLong = int64; + {$else} + cuLong = qword; + {$endif} + {$else} + cLong = longint; + cuLong = Cardinal; + {$endif} + clonglong = int64; +{$ifndef VER1_0} + culonglong = qword; +{$else VER1_0} + culonglong = int64; +{$endif VER1_0} + cshort = integer; + cushort= word; + + pcInt = ^cInt; + pcUInt = ^cUInt; + pcLong = ^cLong; + pculong = ^cuLong; + pcshort = ^cshort; + pcushort= ^cushort; + +{$endif} + +implementation +end. + +{ + $Log$ + Revision 1.1 2005-01-10 10:32:50 marco + * initial version + + +}