1 /* flex integer type definitions */
6 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
8 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
10 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
11 * if you want the limit (max/min) macros for int types.
13 #ifndef __STDC_LIMIT_MACROS
14 #define __STDC_LIMIT_MACROS 1
18 typedef int8_t flex_int8_t
;
19 typedef uint8_t flex_uint8_t
;
20 typedef int16_t flex_int16_t
;
21 typedef uint16_t flex_uint16_t
;
22 typedef int32_t flex_int32_t
;
23 typedef uint32_t flex_uint32_t
;
25 typedef signed char flex_int8_t
;
26 typedef short int flex_int16_t
;
27 typedef int flex_int32_t
;
28 typedef unsigned char flex_uint8_t
;
29 typedef unsigned short int flex_uint16_t
;
30 typedef unsigned int flex_uint32_t
;
32 /* Limits of integral types. */
34 #define INT8_MIN (-128)
37 #define INT16_MIN (-32767-1)
40 #define INT32_MIN (-2147483647-1)
43 #define INT8_MAX (127)
46 #define INT16_MAX (32767)
49 #define INT32_MAX (2147483647)
52 #define UINT8_MAX (255U)
55 #define UINT16_MAX (65535U)
58 #define UINT32_MAX (4294967295U)
63 #endif /* ! FLEXINT_H */