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