1 #ifndef libconfig_yyHEADER_H
2 #define libconfig_yyHEADER_H 1
3 #define libconfig_yyIN_HEADER 1
9 #define YY_INT_ALIGNED short int
11 /* A lexical scanner generated by flex */
14 #define YY_FLEX_MAJOR_VERSION 2
15 #define YY_FLEX_MINOR_VERSION 5
16 #define YY_FLEX_SUBMINOR_VERSION 33
17 #if YY_FLEX_SUBMINOR_VERSION > 0
21 /* First, we deal with platform-specific or compiler-specific issues. */
23 /* begin standard C headers. */
29 /* end standard C headers. */
31 /* flex integer type definitions */
36 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
38 #if __STDC_VERSION__ >= 199901L
40 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
41 * if you want the limit (max/min) macros for int types.
43 #ifndef __STDC_LIMIT_MACROS
44 #define __STDC_LIMIT_MACROS 1
48 typedef int8_t flex_int8_t;
49 typedef uint8_t flex_uint8_t;
50 typedef int16_t flex_int16_t;
51 typedef uint16_t flex_uint16_t;
52 typedef int32_t flex_int32_t;
53 typedef uint32_t flex_uint32_t;
55 typedef signed char flex_int8_t;
56 typedef short int flex_int16_t;
57 typedef int flex_int32_t;
58 typedef unsigned char flex_uint8_t;
59 typedef unsigned short int flex_uint16_t;
60 typedef unsigned int flex_uint32_t;
63 /* Limits of integral types. */
65 #define INT8_MIN (-128)
68 #define INT16_MIN (-32767-1)
71 #define INT32_MIN (-2147483647-1)
74 #define INT8_MAX (127)
77 #define INT16_MAX (32767)
80 #define INT32_MAX (2147483647)
83 #define UINT8_MAX (255U)
86 #define UINT16_MAX (65535U)
89 #define UINT32_MAX (4294967295U)
92 #endif /* ! FLEXINT_H */
96 /* The "const" storage-class-modifier is valid. */
99 #else /* ! __cplusplus */
105 #endif /* __STDC__ */
106 #endif /* ! __cplusplus */
109 #define yyconst const
114 /* An opaque pointer. */
115 #ifndef YY_TYPEDEF_YY_SCANNER_T
116 #define YY_TYPEDEF_YY_SCANNER_T
117 typedef void* yyscan_t;
120 /* For convenience, these vars (plus the bison vars far below)
121 are macros in the reentrant scanner. */
122 #define yyin yyg->yyin_r
123 #define yyout yyg->yyout_r
124 #define yyextra yyg->yyextra_r
125 #define yyleng yyg->yyleng_r
126 #define yytext yyg->yytext_r
127 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
128 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
129 #define yy_flex_debug yyg->yy_flex_debug_r
131 int libconfig_yylex_init (yyscan_t* scanner);
133 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
134 #define YY_TYPEDEF_YY_BUFFER_STATE
135 typedef struct yy_buffer_state *YY_BUFFER_STATE;
138 /* The following is because we cannot portably get our hands on size_t
139 * (without autoconf's help, which isn't available because we want
140 * flex-generated scanners to compile on their own).
143 #ifndef YY_TYPEDEF_YY_SIZE_T
144 #define YY_TYPEDEF_YY_SIZE_T
145 typedef unsigned int yy_size_t;
148 #ifndef YY_STRUCT_YY_BUFFER_STATE
149 #define YY_STRUCT_YY_BUFFER_STATE
150 struct yy_buffer_state
154 char *yy_ch_buf; /* input buffer */
155 char *yy_buf_pos; /* current position in input buffer */
157 /* Size of input buffer in bytes, not including room for EOB
160 yy_size_t yy_buf_size;
162 /* Number of characters read into yy_ch_buf, not including EOB
167 /* Whether we "own" the buffer - i.e., we know we created it,
168 * and can realloc() it to grow it, and should free() it to
171 int yy_is_our_buffer;
173 /* Whether this is an "interactive" input source; if so, and
174 * if we're using stdio for input, then we want to use getc()
175 * instead of fread(), to make sure we stop fetching input after
178 int yy_is_interactive;
180 /* Whether we're considered to be at the beginning of a line.
181 * If so, '^' rules will be active on the next match, otherwise
186 int yy_bs_lineno; /**< The line count. */
187 int yy_bs_column; /**< The column count. */
189 /* Whether to try to fill the input buffer when we reach the
194 int yy_buffer_status;
197 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
199 void libconfig_yyrestart (FILE *input_file ,yyscan_t yyscanner );
200 void libconfig_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
201 YY_BUFFER_STATE libconfig_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
202 void libconfig_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
203 void libconfig_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
204 void libconfig_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
205 void libconfig_yypop_buffer_state (yyscan_t yyscanner );
207 YY_BUFFER_STATE libconfig_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
208 YY_BUFFER_STATE libconfig_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
209 YY_BUFFER_STATE libconfig_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
211 void *libconfig_yyalloc (yy_size_t ,yyscan_t yyscanner );
212 void *libconfig_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
213 void libconfig_yyfree (void * ,yyscan_t yyscanner );
215 #define libconfig_yywrap(n) 1
216 #define YY_SKIP_YYWRAP
218 #define yytext_ptr yytext_r
220 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
226 #ifndef YY_EXTRA_TYPE
227 #define YY_EXTRA_TYPE void *
230 /* Accessor methods to globals.
231 These are made visible to non-reentrant scanners for convenience. */
233 int libconfig_yylex_destroy (yyscan_t yyscanner );
235 int libconfig_yyget_debug (yyscan_t yyscanner );
237 void libconfig_yyset_debug (int debug_flag ,yyscan_t yyscanner );
239 YY_EXTRA_TYPE libconfig_yyget_extra (yyscan_t yyscanner );
241 void libconfig_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
243 FILE *libconfig_yyget_in (yyscan_t yyscanner );
245 void libconfig_yyset_in (FILE * in_str ,yyscan_t yyscanner );
247 FILE *libconfig_yyget_out (yyscan_t yyscanner );
249 void libconfig_yyset_out (FILE * out_str ,yyscan_t yyscanner );
251 int libconfig_yyget_leng (yyscan_t yyscanner );
253 char *libconfig_yyget_text (yyscan_t yyscanner );
255 int libconfig_yyget_lineno (yyscan_t yyscanner );
257 void libconfig_yyset_lineno (int line_number ,yyscan_t yyscanner );
259 YYSTYPE * libconfig_yyget_lval (yyscan_t yyscanner );
261 void libconfig_yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
263 /* Macros after this point can all be overridden by user definitions in
267 #ifndef YY_SKIP_YYWRAP
269 extern "C" int libconfig_yywrap (yyscan_t yyscanner );
271 extern int libconfig_yywrap (yyscan_t yyscanner );
276 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
279 #ifdef YY_NEED_STRLEN
280 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
287 /* Amount of stuff to slurp up with each read. */
288 #ifndef YY_READ_BUF_SIZE
289 #define YY_READ_BUF_SIZE 8192
292 /* Number of entries by which start-condition stack grows. */
293 #ifndef YY_START_STACK_INCR
294 #define YY_START_STACK_INCR 25
297 /* Default declaration of generated scanner - a define so the user can
298 * easily add parameters.
301 #define YY_DECL_IS_OURS 1
303 extern int libconfig_yylex (YYSTYPE * yylval_param ,yyscan_t yyscanner);
305 #define YY_DECL int libconfig_yylex (YYSTYPE * yylval_param , yyscan_t yyscanner)
306 #endif /* !YY_DECL */
308 /* yy_get_previous_state - get the state just before the EOB char was reached */
311 #undef YY_FLUSH_BUFFER
314 #undef yy_set_interactive
315 #undef YY_DO_BEFORE_ACTION
317 #ifdef YY_DECL_IS_OURS
318 #undef YY_DECL_IS_OURS
322 #line 130 "scanner.l"
324 #line 325 "scanner.h"
325 #undef libconfig_yyIN_HEADER
326 #endif /* libconfig_yyHEADER_H */