cp/guest: clean up guest_create's console handling
[hvf.git] / build / re2c / basics.h
blobc9ddb62764b8c1d51fa7f29a0c507cf7ef2f2c3d
1 /* $Id: basics.h 520 2006-05-25 13:31:06Z helly $ */
2 #ifndef _basics_h
3 #define _basics_h
5 #ifdef HAVE_CONFIG_H
6 #include "config.h"
7 #elif defined(_WIN32)
8 #include "config_w32.h"
9 #endif
11 namespace re2c
14 #if SIZEOF_CHAR == 1
15 typedef unsigned char byte;
16 #elif SIZEOF_SHORT == 1
17 typedef unsigned short byte;
18 #elif SIZEOF_INT == 1
19 typedef unsigned int byte;
20 #elif SIZEOF_LONG == 1
21 typedef unsigned long byte;
22 #else
23 typedef unsigned char byte;
24 #endif
26 #if SIZEOF_CHAR == 2
27 typedef unsigned char word;
28 #elif SIZEOF_SHORT == 2
29 typedef unsigned short word;
30 #elif SIZEOF_INT == 2
31 typedef unsigned int word;
32 #elif SIZEOF_LONG == 2
33 typedef unsigned long word;
34 #else
35 typedef unsigned short word;
36 #endif
38 #if SIZEOF_CHAR == 4
39 typedef unsigned char dword;
40 #elif SIZEOF_SHORT == 4
41 typedef unsigned short dword;
42 #elif SIZEOF_INT == 4
43 typedef unsigned int dword;
44 #elif SIZEOF_LONG == 4
45 typedef unsigned long dword;
46 #else
47 typedef unsigned long dword;
48 #endif
50 typedef unsigned int uint;
51 typedef unsigned char uchar;
52 typedef unsigned short ushort;
53 typedef unsigned long ulong;
55 } // end namespace re2c
57 #endif