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