1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
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
20 #define YY_INT_ALIGNED short int
22 /* A lexical scanner generated by flex */
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
32 /* First, we deal with platform-specific or compiler-specific issues. */
34 /* begin standard C headers. */
40 /* end standard C headers. */
42 /* flex integer type definitions */
47 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
49 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
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;
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;
66 /* Limits of integral types. */
68 #define INT8_MIN (-128)
71 #define INT16_MIN (-32767-1)
74 #define INT32_MIN (-2147483647-1)
77 #define INT8_MAX (127)
80 #define INT16_MAX (32767)
83 #define INT32_MAX (2147483647)
86 #define UINT8_MAX (255U)
89 #define UINT16_MAX (65535U)
92 #define UINT32_MAX (4294967295U)
95 #endif /* ! FLEXINT_H */
99 /* The "const" storage-class-modifier is valid. */
102 #else /* ! __cplusplus */
108 #endif /* __STDC__ */
109 #endif /* ! __cplusplus */
112 #define yyconst const
117 /* An opaque pointer. */
118 #ifndef YY_TYPEDEF_YY_SCANNER_T
119 #define YY_TYPEDEF_YY_SCANNER_T
120 typedef void* yyscan_t;
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
134 int cmExpr_yylex_init (yyscan_t* scanner);
136 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
137 #define YY_TYPEDEF_YY_BUFFER_STATE
138 typedef struct yy_buffer_state *YY_BUFFER_STATE;
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).
146 #ifndef YY_TYPEDEF_YY_SIZE_T
147 #define YY_TYPEDEF_YY_SIZE_T
148 typedef unsigned int yy_size_t;
151 #ifndef YY_STRUCT_YY_BUFFER_STATE
152 #define YY_STRUCT_YY_BUFFER_STATE
153 struct yy_buffer_state
157 char *yy_ch_buf; /* input buffer */
158 char *yy_buf_pos; /* current position in input buffer */
160 /* Size of input buffer in bytes, not including room for EOB
163 yy_size_t yy_buf_size;
165 /* Number of characters read into yy_ch_buf, not including EOB
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
174 int yy_is_our_buffer;
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
181 int yy_is_interactive;
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
189 int yy_bs_lineno; /**< The line count. */
190 int yy_bs_column; /**< The column count. */
192 /* Whether to try to fill the input buffer when we reach the
197 int yy_buffer_status;
200 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
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 );
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 );
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 );
224 /* Begin user sect3 */
226 #define cmExpr_yywrap(n) 1
227 #define YY_SKIP_YYWRAP
229 #define yytext_ptr yytext_r
231 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
236 #ifndef YY_EXTRA_TYPE
237 #define YY_EXTRA_TYPE void *
240 /* Accessor methods to globals.
241 These are made visible to non-reentrant scanners for convenience. */
243 int cmExpr_yylex_destroy (yyscan_t yyscanner );
245 int cmExpr_yyget_debug (yyscan_t yyscanner );
247 void cmExpr_yyset_debug (int debug_flag ,yyscan_t yyscanner );
249 YY_EXTRA_TYPE cmExpr_yyget_extra (yyscan_t yyscanner );
251 void cmExpr_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
253 FILE *cmExpr_yyget_in (yyscan_t yyscanner );
255 void cmExpr_yyset_in (FILE * in_str ,yyscan_t yyscanner );
257 FILE *cmExpr_yyget_out (yyscan_t yyscanner );
259 void cmExpr_yyset_out (FILE * out_str ,yyscan_t yyscanner );
261 int cmExpr_yyget_leng (yyscan_t yyscanner );
263 char *cmExpr_yyget_text (yyscan_t yyscanner );
265 int cmExpr_yyget_lineno (yyscan_t yyscanner );
267 void cmExpr_yyset_lineno (int line_number ,yyscan_t yyscanner );
269 /* Macros after this point can all be overridden by user definitions in
273 #ifndef YY_SKIP_YYWRAP
275 extern "C" int cmExpr_yywrap (yyscan_t yyscanner );
277 extern int cmExpr_yywrap (yyscan_t yyscanner );
282 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
285 #ifdef YY_NEED_STRLEN
286 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
293 /* Amount of stuff to slurp up with each read. */
294 #ifndef YY_READ_BUF_SIZE
295 #define YY_READ_BUF_SIZE 8192
298 /* Number of entries by which start-condition stack grows. */
299 #ifndef YY_START_STACK_INCR
300 #define YY_START_STACK_INCR 25
303 /* Default declaration of generated scanner - a define so the user can
304 * easily add parameters.
307 #define YY_DECL_IS_OURS 1
309 extern int cmExpr_yylex (yyscan_t yyscanner);
311 #define YY_DECL int cmExpr_yylex (yyscan_t yyscanner)
312 #endif /* !YY_DECL */
314 /* yy_get_previous_state - get the state just before the EOB char was
318 #undef YY_FLUSH_BUFFER
321 #undef yy_set_interactive
323 #undef YY_DO_BEFORE_ACTION
325 #ifdef YY_DECL_IS_OURS
326 #undef YY_DECL_IS_OURS
333 #undef cmExpr_yyIN_HEADER
334 #endif /* cmExpr_yyHEADER_H */