]> git.mxchange.org Git - flightgear.git/blob - src/Include/fg_typedefs.h
Initial revision
[flightgear.git] / src / Include / fg_typedefs.h
1 /*
2 //  Alterations: Copyright C. Hotchkiss 1996
3 //
4 // $Log$
5 // Revision 1.1  1999/06/17 18:07:30  curt
6 // Initial revision
7 //
8 // Revision 1.2  1999/04/22 18:45:42  curt
9 // Borland tweaks.
10 //
11 // Revision 1.1.1.1  1999/04/05 21:32:40  curt
12 // Start of 0.6.x branch.
13 //
14 // Revision 1.2  1998/05/13 18:23:46  curt
15 // fg_typedefs.h: updated version by Charlie Hotchkiss
16 // general.h: moved fg_root info to fgOPTIONS structure.
17 //
18 // Revision 1.1  1998/05/11 18:26:12  curt
19 // Initial revision.
20 //
21 //   Rev 1.4   11 Nov 1997 15:34:28   CHOTCHKISS
22 // Expanded definitions.
23 //
24 //   Rev 1.3   20 Jan 1997  9:21:26   CHOTCHKISS
25 // Minor additions.
26 //
27 //   Rev 1.2   12 Nov 1996 15:06:52   CHOTCHKISS
28 // Dropped PC Write print format control lines.
29 //
30 //  Rev 1.1   20 Nov 1995 15:59:02   CHOTCHKISS
31 // Additions and improvements. Memcheck compatibilities.
32 //
33 //  Rev 1.0   06 Apr 1995 14:00:32   CHOTCHKISS
34 // Initial revision.
35 \f\ f
36 */
37 /*
38 //    TYPEDEFS.H - General purpose definition file
39 //    Copyright (C) 1992 Paradigm Systems.  All rights reserved.
40 //
41 //    Function
42 //    ========
43 //    This file contains the general purpose definitions common to the
44 //    all Paradigm applications.  By defining synonyms for the physical
45 //    data types to be manipulated, portability between memory models
46 //    and machines is maximized.
47 //
48 //    Note that this file follows the system include files and before
49 //    any application include files.
50 */
51
52 #if !defined(_TYPEDEFS)
53 #define _TYPEDEFS
54
55 //
56 //    Define the types to be used to manipulate 8-, 16-, and 32-bit
57 //    data.
58 //
59 typedef unsigned int   BIT ;     // Use for defining Borland bit fields
60 typedef char           CHAR ;    // 8-bit signed data
61 typedef const char     COCHAR;
62 typedef unsigned char  UCHAR ;   // 8-bit unsigned data
63 typedef unsigned char  BYTE;
64 typedef int            INT ;     // 16-bit signed data
65 typedef unsigned int   UINT ;    // 16-bit unsigned data
66 typedef const int      COINT;    // 16=bit constant int
67 typedef const UINT     COUINT;
68 typedef long           LONG ;    // 32-bit signed data
69 typedef unsigned long  ULONG ;   // 32-bit unsigned data
70
71 typedef unsigned short UWORD;   // Unsigned 16 bit quantity (WIN=SHORT)
72 #if !defined(WIN32)
73 typedef signed   short WORD;    // Signed   16 bit quantity
74 #endif
75 typedef BYTE           UBYTE;    // Used in some 3rd party code
76 #ifndef WIN32
77 typedef int            BOOLEAN;  //
78 #endif
79
80 typedef float          FLOAT ;   // 32-bit floating point data
81 typedef double         DOUBLE ;  // 64-bit floating point data
82 typedef long double    LDOUBLE ; // 80-bit floating point data
83
84 #ifndef __cplusplus
85 typedef int bool;
86 typedef int BOOL;
87 typedef int Bool;
88 #else
89 #ifndef WIN32
90 #define BOOL int
91 #endif
92 #endif
93
94 #define Bool int
95
96 #ifndef TRUE
97 #define TRUE 1
98 #define FALSE 0
99 #endif
100
101 #ifndef true          // C++ defines bool, true and false.
102 #define true TRUE
103 #define false FALSE
104 #endif
105
106 #ifndef EOF
107 #define EOF (-1)
108 #endif
109
110 typedef void(*VFNPTR)   ( void );
111 typedef void(*VFNINTPTR)( int  );
112 typedef int (*FNPTR)    ( void );
113 typedef int (*FNINTPTR) ( int  );
114 typedef int (*FNUIPTR)  ( UINT );
115 typedef double( *DBLFNPTR)( void );
116 typedef float( *FLTFNPTR)( void );
117
118 #endif
119
120   /* !defined(_TYPEDEFS) */