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