Imported Upstream version 2.8.12.2
[platform/upstream/cmake.git] / Source / cmExprLexer.h
1 /*============================================================================
2   CMake - Cross Platform Makefile Generator
3   Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4
5   Distributed under the OSI-approved BSD License (the "License");
6   see accompanying file Copyright.txt for details.
7
8   This software is distributed WITHOUT ANY WARRANTY; without even the
9   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10   See the License for more information.
11 ============================================================================*/
12 #ifndef cmExpr_yyHEADER_H
13 #define cmExpr_yyHEADER_H 1
14 #define cmExpr_yyIN_HEADER 1
15
16
17
18
19
20 #define  YY_INT_ALIGNED short int
21
22 /* A lexical scanner generated by flex */
23
24 #define FLEX_SCANNER
25 #define YY_FLEX_MAJOR_VERSION 2
26 #define YY_FLEX_MINOR_VERSION 5
27 #define YY_FLEX_SUBMINOR_VERSION 31
28 #if YY_FLEX_SUBMINOR_VERSION > 0
29 #define FLEX_BETA
30 #endif
31
32 /* First, we deal with  platform-specific or compiler-specific issues. */
33
34 /* begin standard C headers. */
35 #include <stdio.h>
36 #include <string.h>
37 #include <errno.h>
38 #include <stdlib.h>
39
40 /* end standard C headers. */
41
42 /* flex integer type definitions */
43
44 #ifndef FLEXINT_H
45 #define FLEXINT_H
46
47 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
48
49 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
50 #include <inttypes.h>
51 typedef int8_t flex_int8_t;
52 typedef uint8_t flex_uint8_t;
53 typedef int16_t flex_int16_t;
54 typedef uint16_t flex_uint16_t;
55 typedef int32_t flex_int32_t;
56 typedef uint32_t flex_uint32_t;
57 #else
58 typedef signed char flex_int8_t;
59 typedef short int flex_int16_t;
60 typedef int flex_int32_t;
61 typedef unsigned char flex_uint8_t;
62 typedef unsigned short int flex_uint16_t;
63 typedef unsigned int flex_uint32_t;
64 #endif /* ! C99 */
65
66 /* Limits of integral types. */
67 #ifndef INT8_MIN
68 #define INT8_MIN               (-128)
69 #endif
70 #ifndef INT16_MIN
71 #define INT16_MIN              (-32767-1)
72 #endif
73 #ifndef INT32_MIN
74 #define INT32_MIN              (-2147483647-1)
75 #endif
76 #ifndef INT8_MAX
77 #define INT8_MAX               (127)
78 #endif
79 #ifndef INT16_MAX
80 #define INT16_MAX              (32767)
81 #endif
82 #ifndef INT32_MAX
83 #define INT32_MAX              (2147483647)
84 #endif
85 #ifndef UINT8_MAX
86 #define UINT8_MAX              (255U)
87 #endif
88 #ifndef UINT16_MAX
89 #define UINT16_MAX             (65535U)
90 #endif
91 #ifndef UINT32_MAX
92 #define UINT32_MAX             (4294967295U)
93 #endif
94
95 #endif /* ! FLEXINT_H */
96
97 #ifdef __cplusplus
98
99 /* The "const" storage-class-modifier is valid. */
100 #define YY_USE_CONST
101
102 #else  /* ! __cplusplus */
103
104 #if __STDC__
105
106 #define YY_USE_CONST
107
108 #endif  /* __STDC__ */
109 #endif  /* ! __cplusplus */
110
111 #ifdef YY_USE_CONST
112 #define yyconst const
113 #else
114 #define yyconst
115 #endif
116
117 /* An opaque pointer. */
118 #ifndef YY_TYPEDEF_YY_SCANNER_T
119 #define YY_TYPEDEF_YY_SCANNER_T
120 typedef void* yyscan_t;
121 #endif
122
123 /* For convenience, these vars (plus the bison vars far below)
124    are macros in the reentrant scanner. */
125 #define yyin yyg->yyin_r
126 #define yyout yyg->yyout_r
127 #define yyextra yyg->yyextra_r
128 #define yyleng yyg->yyleng_r
129 #define yytext yyg->yytext_r
130 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
131 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
132 #define yy_flex_debug yyg->yy_flex_debug_r
133
134 int cmExpr_yylex_init (yyscan_t* scanner);
135
136 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
137 #define YY_TYPEDEF_YY_BUFFER_STATE
138 typedef struct yy_buffer_state *YY_BUFFER_STATE;
139 #endif
140
141 /* The following is because we cannot portably get our hands on size_t
142  * (without autoconf's help, which isn't available because we want
143  * flex-generated scanners to compile on their own).
144  */
145
146 #ifndef YY_TYPEDEF_YY_SIZE_T
147 #define YY_TYPEDEF_YY_SIZE_T
148 typedef unsigned int yy_size_t;
149 #endif
150
151 #ifndef YY_STRUCT_YY_BUFFER_STATE
152 #define YY_STRUCT_YY_BUFFER_STATE
153 struct yy_buffer_state
154   {
155   FILE *yy_input_file;
156
157   char *yy_ch_buf;    /* input buffer */
158   char *yy_buf_pos;    /* current position in input buffer */
159
160   /* Size of input buffer in bytes, not including room for EOB
161    * characters.
162    */
163   yy_size_t yy_buf_size;
164
165   /* Number of characters read into yy_ch_buf, not including EOB
166    * characters.
167    */
168   int yy_n_chars;
169
170   /* Whether we "own" the buffer - i.e., we know we created it,
171    * and can realloc() it to grow it, and should free() it to
172    * delete it.
173    */
174   int yy_is_our_buffer;
175
176   /* Whether this is an "interactive" input source; if so, and
177    * if we're using stdio for input, then we want to use getc()
178    * instead of fread(), to make sure we stop fetching input after
179    * each newline.
180    */
181   int yy_is_interactive;
182
183   /* Whether we're considered to be at the beginning of a line.
184    * If so, '^' rules will be active on the next match, otherwise
185    * not.
186    */
187   int yy_at_bol;
188
189     int yy_bs_lineno; /**< The line count. */
190     int yy_bs_column; /**< The column count. */
191
192   /* Whether to try to fill the input buffer when we reach the
193    * end of it.
194    */
195   int yy_fill_buffer;
196
197   int yy_buffer_status;
198
199   };
200 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
201
202 void cmExpr_yyrestart (FILE *input_file ,yyscan_t yyscanner );
203 void cmExpr_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,
204                                  yyscan_t yyscanner );
205 YY_BUFFER_STATE cmExpr_yy_create_buffer (FILE *file,int size ,
206                                          yyscan_t yyscanner );
207 void cmExpr_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
208 void cmExpr_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
209 void cmExpr_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,
210                                  yyscan_t yyscanner );
211 void cmExpr_yypop_buffer_state (yyscan_t yyscanner );
212
213 YY_BUFFER_STATE cmExpr_yy_scan_buffer (char *base,yy_size_t size ,
214                                        yyscan_t yyscanner );
215 YY_BUFFER_STATE cmExpr_yy_scan_string (yyconst char *yy_str ,
216                                        yyscan_t yyscanner );
217 YY_BUFFER_STATE cmExpr_yy_scan_bytes (yyconst char *bytes,int len ,
218                                       yyscan_t yyscanner );
219
220 void *cmExpr_yyalloc (yy_size_t ,yyscan_t yyscanner );
221 void *cmExpr_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
222 void cmExpr_yyfree (void * ,yyscan_t yyscanner );
223
224 /* Begin user sect3 */
225
226 #define cmExpr_yywrap(n) 1
227 #define YY_SKIP_YYWRAP
228
229 #define yytext_ptr yytext_r
230
231 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
232 #define INITIAL 0
233
234 #endif
235
236 #ifndef YY_EXTRA_TYPE
237 #define YY_EXTRA_TYPE void *
238 #endif
239
240 /* Accessor methods to globals.
241    These are made visible to non-reentrant scanners for convenience. */
242
243 int cmExpr_yylex_destroy (yyscan_t yyscanner );
244
245 int cmExpr_yyget_debug (yyscan_t yyscanner );
246
247 void cmExpr_yyset_debug (int debug_flag ,yyscan_t yyscanner );
248
249 YY_EXTRA_TYPE cmExpr_yyget_extra (yyscan_t yyscanner );
250
251 void cmExpr_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
252
253 FILE *cmExpr_yyget_in (yyscan_t yyscanner );
254
255 void cmExpr_yyset_in  (FILE * in_str ,yyscan_t yyscanner );
256
257 FILE *cmExpr_yyget_out (yyscan_t yyscanner );
258
259 void cmExpr_yyset_out  (FILE * out_str ,yyscan_t yyscanner );
260
261 int cmExpr_yyget_leng (yyscan_t yyscanner );
262
263 char *cmExpr_yyget_text (yyscan_t yyscanner );
264
265 int cmExpr_yyget_lineno (yyscan_t yyscanner );
266
267 void cmExpr_yyset_lineno (int line_number ,yyscan_t yyscanner );
268
269 /* Macros after this point can all be overridden by user definitions in
270  * section 1.
271  */
272
273 #ifndef YY_SKIP_YYWRAP
274 #ifdef __cplusplus
275 extern "C" int cmExpr_yywrap (yyscan_t yyscanner );
276 #else
277 extern int cmExpr_yywrap (yyscan_t yyscanner );
278 #endif
279 #endif
280
281 #ifndef yytext_ptr
282 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
283 #endif
284
285 #ifdef YY_NEED_STRLEN
286 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
287 #endif
288
289 #ifndef YY_NO_INPUT
290
291 #endif
292
293 /* Amount of stuff to slurp up with each read. */
294 #ifndef YY_READ_BUF_SIZE
295 #define YY_READ_BUF_SIZE 8192
296 #endif
297
298 /* Number of entries by which start-condition stack grows. */
299 #ifndef YY_START_STACK_INCR
300 #define YY_START_STACK_INCR 25
301 #endif
302
303 /* Default declaration of generated scanner - a define so the user can
304  * easily add parameters.
305  */
306 #ifndef YY_DECL
307 #define YY_DECL_IS_OURS 1
308
309 extern int cmExpr_yylex (yyscan_t yyscanner);
310
311 #define YY_DECL int cmExpr_yylex (yyscan_t yyscanner)
312 #endif /* !YY_DECL */
313
314 /* yy_get_previous_state - get the state just before the EOB char was
315    reached */
316
317 #undef YY_NEW_FILE
318 #undef YY_FLUSH_BUFFER
319 #undef yy_set_bol
320 #undef yy_new_buffer
321 #undef yy_set_interactive
322 #undef yytext_ptr
323 #undef YY_DO_BEFORE_ACTION
324
325 #ifdef YY_DECL_IS_OURS
326 #undef YY_DECL_IS_OURS
327 #undef YY_DECL
328 #endif
329
330
331
332
333 #undef cmExpr_yyIN_HEADER
334 #endif /* cmExpr_yyHEADER_H */