1 #ifndef config_HEADER_H
2 #define config_HEADER_H 1
3 #define config_IN_HEADER 1
5 #line 6 "libmemcached/csl/scanner.h"
6 #line 39 "libmemcached/csl/scanner.l"
8 #include <libmemcached/csl/common.h>
9 #include <libmemcached/csl/context.h>
10 #include <libmemcached/csl/parser.h>
11 #include <libmemcached/csl/symbol.h>
13 #ifndef __INTEL_COMPILER
14 #pragma GCC diagnostic ignored "-Wold-style-cast"
15 #pragma GCC diagnostic ignored "-Wsign-compare"
16 #pragma GCC diagnostic ignored "-Wunused-parameter"
17 #pragma GCC diagnostic ignored "-Wmissing-declarations"
22 #define YY_EXTRA_TYPE Context*
27 #line 28 "libmemcached/csl/scanner.h"
29 #define YY_INT_ALIGNED short int
31 /* A lexical scanner generated by flex */
36 #define YY_FLEX_MAJOR_VERSION 2
37 #define YY_FLEX_MINOR_VERSION 5
38 #define YY_FLEX_SUBMINOR_VERSION 35
39 #if YY_FLEX_SUBMINOR_VERSION > 0
54 /* First, we deal with platform-specific or compiler-specific issues. */
56 /* begin standard C headers. */
64 /* %if-tables-serialization */
66 /* end standard C headers. */
69 /* flex integer type definitions */
74 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
76 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
78 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
79 * if you want the limit (max/min) macros for int types.
81 #ifndef __STDC_LIMIT_MACROS
82 #define __STDC_LIMIT_MACROS 1
86 typedef int8_t flex_int8_t
;
87 typedef uint8_t flex_uint8_t
;
88 typedef int16_t flex_int16_t
;
89 typedef uint16_t flex_uint16_t
;
90 typedef int32_t flex_int32_t
;
91 typedef uint32_t flex_uint32_t
;
93 typedef signed char flex_int8_t
;
94 typedef short int flex_int16_t
;
95 typedef int flex_int32_t
;
96 typedef unsigned char flex_uint8_t
;
97 typedef unsigned short int flex_uint16_t
;
98 typedef unsigned int flex_uint32_t
;
100 /* Limits of integral types. */
102 #define INT8_MIN (-128)
105 #define INT16_MIN (-32767-1)
108 #define INT32_MIN (-2147483647-1)
111 #define INT8_MAX (127)
114 #define INT16_MAX (32767)
117 #define INT32_MAX (2147483647)
120 #define UINT8_MAX (255U)
123 #define UINT16_MAX (65535U)
126 #define UINT32_MAX (4294967295U)
131 #endif /* ! FLEXINT_H */
140 /* The "const" storage-class-modifier is valid. */
143 #else /* ! __cplusplus */
145 /* C99 requires __STDC__ to be defined as 1. */
146 #if defined (__STDC__)
150 #endif /* defined (__STDC__) */
151 #endif /* ! __cplusplus */
154 #define yyconst const
159 /* %not-for-header */
161 /* %not-for-header */
165 /* An opaque pointer. */
166 #ifndef YY_TYPEDEF_YY_SCANNER_T
167 #define YY_TYPEDEF_YY_SCANNER_T
168 typedef void* yyscan_t
;
171 /* For convenience, these vars (plus the bison vars far below)
172 are macros in the reentrant scanner. */
173 #define yyin yyg->yyin_r
174 #define yyout yyg->yyout_r
175 #define yyextra yyg->yyextra_r
176 #define yyleng yyg->yyleng_r
177 #define yytext yyg->yytext_r
178 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
179 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
180 #define yy_flex_debug yyg->yy_flex_debug_r
184 /* %if-not-reentrant */
187 /* Size of default input buffer. */
190 /* On IA-64, the buffer size is 16k, not 8k.
191 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
192 * Ditto for the __ia64__ case accordingly.
194 #define YY_BUF_SIZE 32768
196 #define YY_BUF_SIZE 16384
197 #endif /* __ia64__ */
200 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
201 #define YY_TYPEDEF_YY_BUFFER_STATE
202 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
205 /* %if-not-reentrant */
209 /* %if-not-reentrant */
213 #ifndef YY_TYPEDEF_YY_SIZE_T
214 #define YY_TYPEDEF_YY_SIZE_T
215 typedef size_t yy_size_t
;
218 #ifndef YY_STRUCT_YY_BUFFER_STATE
219 #define YY_STRUCT_YY_BUFFER_STATE
220 struct yy_buffer_state
229 char *yy_ch_buf
; /* input buffer */
230 char *yy_buf_pos
; /* current position in input buffer */
232 /* Size of input buffer in bytes, not including room for EOB
235 yy_size_t yy_buf_size
;
237 /* Number of characters read into yy_ch_buf, not including EOB
242 /* Whether we "own" the buffer - i.e., we know we created it,
243 * and can realloc() it to grow it, and should free() it to
246 int yy_is_our_buffer
;
248 /* Whether this is an "interactive" input source; if so, and
249 * if we're using stdio for input, then we want to use getc()
250 * instead of fread(), to make sure we stop fetching input after
253 int yy_is_interactive
;
255 /* Whether we're considered to be at the beginning of a line.
256 * If so, '^' rules will be active on the next match, otherwise
261 int yy_bs_lineno
; /**< The line count. */
262 int yy_bs_column
; /**< The column count. */
264 /* Whether to try to fill the input buffer when we reach the
269 int yy_buffer_status
;
272 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
274 /* %if-c-only Standard (non-C++) definition */
275 /* %not-for-header */
279 /* %if-c-only Standard (non-C++) definition */
281 /* %if-not-reentrant */
282 /* %not-for-header */
286 void config_restart (FILE *input_file
,yyscan_t yyscanner
);
287 void config__switch_to_buffer (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
288 YY_BUFFER_STATE
config__create_buffer (FILE *file
,int size
,yyscan_t yyscanner
);
289 void config__delete_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
290 void config__flush_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
291 void config_push_buffer_state (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
292 void config_pop_buffer_state (yyscan_t yyscanner
);
294 YY_BUFFER_STATE
config__scan_buffer (char *base
,yy_size_t size
,yyscan_t yyscanner
);
295 YY_BUFFER_STATE
config__scan_string (yyconst
char *yy_str
,yyscan_t yyscanner
);
296 YY_BUFFER_STATE
config__scan_bytes (yyconst
char *bytes
,int len
,yyscan_t yyscanner
);
300 void *config_alloc (yy_size_t
,yyscan_t yyscanner
);
301 void *config_realloc (void *,yy_size_t
,yyscan_t yyscanner
);
302 void config_free (void * ,yyscan_t yyscanner
);
304 /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
305 /* Begin user sect3 */
307 #define config_wrap(n) 1
308 #define YY_SKIP_YYWRAP
312 #define yytext_ptr yytext_r
314 /* %if-c-only Standard (non-C++) definition */
318 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
323 #ifndef YY_NO_UNISTD_H
324 /* Special case for "unistd.h", since it is non-ANSI. We include it way
325 * down here because we want the user's section 1 to have been scanned first.
326 * The user has a chance to override it with an option.
335 #ifndef YY_EXTRA_TYPE
336 #define YY_EXTRA_TYPE void *
339 /* %if-c-only Reentrant structure and macros (non-C++). */
348 int config_lex_init (yyscan_t
* scanner
);
350 int config_lex_init_extra (YY_EXTRA_TYPE user_defined
,yyscan_t
* scanner
);
354 /* %endif End reentrant structures and macros. */
356 /* Accessor methods to globals.
357 These are made visible to non-reentrant scanners for convenience. */
359 int config_lex_destroy (yyscan_t yyscanner
);
361 int config_get_debug (yyscan_t yyscanner
);
363 void config_set_debug (int debug_flag
,yyscan_t yyscanner
);
365 YY_EXTRA_TYPE
config_get_extra (yyscan_t yyscanner
);
367 void config_set_extra (YY_EXTRA_TYPE user_defined
,yyscan_t yyscanner
);
369 FILE *config_get_in (yyscan_t yyscanner
);
371 void config_set_in (FILE * in_str
,yyscan_t yyscanner
);
373 FILE *config_get_out (yyscan_t yyscanner
);
375 void config_set_out (FILE * out_str
,yyscan_t yyscanner
);
377 int config_get_leng (yyscan_t yyscanner
);
379 char *config_get_text (yyscan_t yyscanner
);
381 int config_get_lineno (yyscan_t yyscanner
);
383 void config_set_lineno (int line_number
,yyscan_t yyscanner
);
385 /* %if-bison-bridge */
387 YYSTYPE
* config_get_lval (yyscan_t yyscanner
);
389 void config_set_lval (YYSTYPE
* yylval_param
,yyscan_t yyscanner
);
393 /* Macros after this point can all be overridden by user definitions in
397 #ifndef YY_SKIP_YYWRAP
399 extern "C" int config_wrap (yyscan_t yyscanner
);
401 extern int config_wrap (yyscan_t yyscanner
);
405 /* %not-for-header */
410 static void yy_flex_strncpy (char *,yyconst
char *,int ,yyscan_t yyscanner
);
413 #ifdef YY_NEED_STRLEN
414 static int yy_flex_strlen (yyconst
char * ,yyscan_t yyscanner
);
418 /* %if-c-only Standard (non-C++) definition */
419 /* %not-for-header */
428 /* Amount of stuff to slurp up with each read. */
429 #ifndef YY_READ_BUF_SIZE
431 /* On IA-64, the buffer size is 16k, not 8k */
432 #define YY_READ_BUF_SIZE 16384
434 #define YY_READ_BUF_SIZE 8192
435 #endif /* __ia64__ */
438 /* Number of entries by which start-condition stack grows. */
439 #ifndef YY_START_STACK_INCR
440 #define YY_START_STACK_INCR 25
443 /* %if-tables-serialization structures and prototypes */
444 /* %not-for-header */
446 /* %not-for-header */
448 /* Default declaration of generated scanner - a define so the user can
449 * easily add parameters.
452 #define YY_DECL_IS_OURS 1
453 /* %if-c-only Standard (non-C++) definition */
455 extern int config_lex \
456 (YYSTYPE
* yylval_param
,yyscan_t yyscanner
);
458 #define YY_DECL int config_lex \
459 (YYSTYPE * yylval_param , yyscan_t yyscanner)
461 /* %if-c++-only C++ definition */
463 #endif /* !YY_DECL */
465 /* %not-for-header */
468 /* %not-for-header */
472 /* yy_get_previous_state - get the state just before the EOB char was reached */
475 /* %not-for-header */
478 #undef YY_FLUSH_BUFFER
481 #undef yy_set_interactive
482 #undef YY_DO_BEFORE_ACTION
484 #ifdef YY_DECL_IS_OURS
485 #undef YY_DECL_IS_OURS
489 #line 223 "libmemcached/csl/scanner.l"
492 #line 493 "libmemcached/csl/scanner.h"
493 #undef config_IN_HEADER
494 #endif /* config_HEADER_H */