Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / flex / dist / flexint.h
blobab8dc379bdfa0014f44e994f83abe81c93ccf6c0
1 /* $NetBSD$ */
3 /* flex integer type definitions */
5 #ifndef FLEXINT_H
6 #define FLEXINT_H
8 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
10 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
12 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
13 * if you want the limit (max/min) macros for int types.
15 #ifndef __STDC_LIMIT_MACROS
16 #define __STDC_LIMIT_MACROS 1
17 #endif
19 #include <inttypes.h>
20 typedef int8_t flex_int8_t;
21 typedef uint8_t flex_uint8_t;
22 typedef int16_t flex_int16_t;
23 typedef uint16_t flex_uint16_t;
24 typedef int32_t flex_int32_t;
25 typedef uint32_t flex_uint32_t;
26 #else
27 typedef signed char flex_int8_t;
28 typedef short int flex_int16_t;
29 typedef int flex_int32_t;
30 typedef unsigned char flex_uint8_t;
31 typedef unsigned short int flex_uint16_t;
32 typedef unsigned int flex_uint32_t;
33 #endif /* ! C99 */
35 /* Limits of integral types. */
36 #ifndef INT8_MIN
37 #define INT8_MIN (-128)
38 #endif
39 #ifndef INT16_MIN
40 #define INT16_MIN (-32767-1)
41 #endif
42 #ifndef INT32_MIN
43 #define INT32_MIN (-2147483647-1)
44 #endif
45 #ifndef INT8_MAX
46 #define INT8_MAX (127)
47 #endif
48 #ifndef INT16_MAX
49 #define INT16_MAX (32767)
50 #endif
51 #ifndef INT32_MAX
52 #define INT32_MAX (2147483647)
53 #endif
54 #ifndef UINT8_MAX
55 #define UINT8_MAX (255U)
56 #endif
57 #ifndef UINT16_MAX
58 #define UINT16_MAX (65535U)
59 #endif
60 #ifndef UINT32_MAX
61 #define UINT32_MAX (4294967295U)
62 #endif
65 #endif /* ! FLEXINT_H */