Revision 1492

trunk/src/nh99/tpl2cpp-winflex.c (revision 1492)
1

  
2

  
3
#define  YY_INT_ALIGNED short int
4

  
5
/* A lexical scanner generated by flex */
6

  
7
#define FLEX_SCANNER
8
#define YY_FLEX_MAJOR_VERSION 2
9
#define YY_FLEX_MINOR_VERSION 5
10
#define YY_FLEX_SUBMINOR_VERSION 35
11
#if YY_FLEX_SUBMINOR_VERSION > 0
12
#define FLEX_BETA
13
#endif
14

  
15
/* First, we deal with  platform-specific or compiler-specific issues. */
16

  
17
/* begin standard C headers. */
18
#include <stdio.h>
19
#include <string.h>
20
#include <errno.h>
21
#include <stdlib.h>
22

  
23
/* end standard C headers. */
24

  
25
/* flex integer type definitions */
26

  
27
#ifndef FLEXINT_H
28
#define FLEXINT_H
29

  
30
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
31

  
32
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
33

  
34
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
35
 * if you want the limit (max/min) macros for int types. 
36
 */
37
#ifndef __STDC_LIMIT_MACROS
38
#define __STDC_LIMIT_MACROS 1
39
#endif
40

  
41
#include <inttypes.h>
42
typedef int8_t flex_int8_t;
43
typedef uint8_t flex_uint8_t;
44
typedef int16_t flex_int16_t;
45
typedef uint16_t flex_uint16_t;
46
typedef int32_t flex_int32_t;
47
typedef uint32_t flex_uint32_t;
48
#else
49
typedef signed char flex_int8_t;
50
typedef short int flex_int16_t;
51
typedef int flex_int32_t;
52
typedef unsigned char flex_uint8_t; 
53
typedef unsigned short int flex_uint16_t;
54
typedef unsigned int flex_uint32_t;
55

  
56
/* Limits of integral types. */
57
#ifndef INT8_MIN
58
#define INT8_MIN               (-128)
59
#endif
60
#ifndef INT16_MIN
61
#define INT16_MIN              (-32767-1)
62
#endif
63
#ifndef INT32_MIN
64
#define INT32_MIN              (-2147483647-1)
65
#endif
66
#ifndef INT8_MAX
67
#define INT8_MAX               (127)
68
#endif
69
#ifndef INT16_MAX
70
#define INT16_MAX              (32767)
71
#endif
72
#ifndef INT32_MAX
73
#define INT32_MAX              (2147483647)
74
#endif
75
#ifndef UINT8_MAX
76
#define UINT8_MAX              (255U)
77
#endif
78
#ifndef UINT16_MAX
79
#define UINT16_MAX             (65535U)
80
#endif
81
#ifndef UINT32_MAX
82
#define UINT32_MAX             (4294967295U)
83
#endif
84

  
85
#endif /* ! C99 */
86

  
87
#endif /* ! FLEXINT_H */
88

  
89
#ifdef __cplusplus
90

  
91
/* The "const" storage-class-modifier is valid. */
92
#define YY_USE_CONST
93

  
94
#else	/* ! __cplusplus */
95

  
96
/* C99 requires __STDC__ to be defined as 1. */
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff