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 22 "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"
21 #define YY_EXTRA_TYPE Context*
26 #line 27 "libmemcached/csl/scanner.h"
28 #define YY_INT_ALIGNED short int
30 /* A lexical scanner generated by flex */
35 #define YY_FLEX_MAJOR_VERSION 2
36 #define YY_FLEX_MINOR_VERSION 5
37 #define YY_FLEX_SUBMINOR_VERSION 35
38 #if YY_FLEX_SUBMINOR_VERSION > 0
53 /* First, we deal with platform-specific or compiler-specific issues. */
55 /* begin standard C headers. */
63 /* %if-tables-serialization */
65 /* end standard C headers. */
68 /* flex integer type definitions */
73 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
75 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
77 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
78 * if you want the limit (max/min) macros for int types.
80 #ifndef __STDC_LIMIT_MACROS
81 #define __STDC_LIMIT_MACROS 1
85 typedef int8_t flex_int8_t
;
86 typedef uint8_t flex_uint8_t
;
87 typedef int16_t flex_int16_t
;
88 typedef uint16_t flex_uint16_t
;
89 typedef int32_t flex_int32_t
;
90 typedef uint32_t flex_uint32_t
;
92 typedef signed char flex_int8_t
;
93 typedef short int flex_int16_t
;
94 typedef int flex_int32_t
;
95 typedef unsigned char flex_uint8_t
;
96 typedef unsigned short int flex_uint16_t
;
97 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)
129 #endif /* ! FLEXINT_H */
138 /* The "const" storage-class-modifier is valid. */
141 #else /* ! __cplusplus */
143 /* C99 requires __STDC__ to be defined as 1. */
144 #if defined (__STDC__)
148 #endif /* defined (__STDC__) */
149 #endif /* ! __cplusplus */
152 #define yyconst const
157 /* %not-for-header */
159 /* %not-for-header */
163 /* An opaque pointer. */
164 #ifndef YY_TYPEDEF_YY_SCANNER_T
165 #define YY_TYPEDEF_YY_SCANNER_T
166 typedef void* yyscan_t
;
169 /* For convenience, these vars (plus the bison vars far below)
170 are macros in the reentrant scanner. */
171 #define yyin yyg->yyin_r
172 #define yyout yyg->yyout_r
173 #define yyextra yyg->yyextra_r
174 #define yyleng yyg->yyleng_r
175 #define yytext yyg->yytext_r
176 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
177 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
178 #define yy_flex_debug yyg->yy_flex_debug_r
182 /* %if-not-reentrant */
185 /* Size of default input buffer. */
187 #define YY_BUF_SIZE 16384
190 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
191 #define YY_TYPEDEF_YY_BUFFER_STATE
192 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
195 /* %if-not-reentrant */
199 /* %if-not-reentrant */
203 #ifndef YY_TYPEDEF_YY_SIZE_T
204 #define YY_TYPEDEF_YY_SIZE_T
205 typedef size_t yy_size_t
;
208 #ifndef YY_STRUCT_YY_BUFFER_STATE
209 #define YY_STRUCT_YY_BUFFER_STATE
210 struct yy_buffer_state
219 char *yy_ch_buf
; /* input buffer */
220 char *yy_buf_pos
; /* current position in input buffer */
222 /* Size of input buffer in bytes, not including room for EOB
225 yy_size_t yy_buf_size
;
227 /* Number of characters read into yy_ch_buf, not including EOB
232 /* Whether we "own" the buffer - i.e., we know we created it,
233 * and can realloc() it to grow it, and should free() it to
236 int yy_is_our_buffer
;
238 /* Whether this is an "interactive" input source; if so, and
239 * if we're using stdio for input, then we want to use getc()
240 * instead of fread(), to make sure we stop fetching input after
243 int yy_is_interactive
;
245 /* Whether we're considered to be at the beginning of a line.
246 * If so, '^' rules will be active on the next match, otherwise
251 int yy_bs_lineno
; /**< The line count. */
252 int yy_bs_column
; /**< The column count. */
254 /* Whether to try to fill the input buffer when we reach the
259 int yy_buffer_status
;
262 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
264 /* %if-c-only Standard (non-C++) definition */
265 /* %not-for-header */
269 /* %if-c-only Standard (non-C++) definition */
271 /* %if-not-reentrant */
272 /* %not-for-header */
276 void config_restart (FILE *input_file
,yyscan_t yyscanner
);
277 void config__switch_to_buffer (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
278 YY_BUFFER_STATE
config__create_buffer (FILE *file
,int size
,yyscan_t yyscanner
);
279 void config__delete_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
280 void config__flush_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
281 void config_push_buffer_state (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
282 void config_pop_buffer_state (yyscan_t yyscanner
);
284 YY_BUFFER_STATE
config__scan_buffer (char *base
,yy_size_t size
,yyscan_t yyscanner
);
285 YY_BUFFER_STATE
config__scan_string (yyconst
char *yy_str
,yyscan_t yyscanner
);
286 YY_BUFFER_STATE
config__scan_bytes (yyconst
char *bytes
,int len
,yyscan_t yyscanner
);
290 void *config_alloc (yy_size_t
,yyscan_t yyscanner
);
291 void *config_realloc (void *,yy_size_t
,yyscan_t yyscanner
);
292 void config_free (void * ,yyscan_t yyscanner
);
294 /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
295 /* Begin user sect3 */
297 #define config_wrap(n) 1
298 #define YY_SKIP_YYWRAP
302 #define yytext_ptr yytext_r
304 /* %if-c-only Standard (non-C++) definition */
308 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
313 #ifndef YY_NO_UNISTD_H
314 /* Special case for "unistd.h", since it is non-ANSI. We include it way
315 * down here because we want the user's section 1 to have been scanned first.
316 * The user has a chance to override it with an option.
325 #ifndef YY_EXTRA_TYPE
326 #define YY_EXTRA_TYPE void *
329 /* %if-c-only Reentrant structure and macros (non-C++). */
338 int config_lex_init (yyscan_t
* scanner
);
340 int config_lex_init_extra (YY_EXTRA_TYPE user_defined
,yyscan_t
* scanner
);
344 /* %endif End reentrant structures and macros. */
346 /* Accessor methods to globals.
347 These are made visible to non-reentrant scanners for convenience. */
349 int config_lex_destroy (yyscan_t yyscanner
);
351 int config_get_debug (yyscan_t yyscanner
);
353 void config_set_debug (int debug_flag
,yyscan_t yyscanner
);
355 YY_EXTRA_TYPE
config_get_extra (yyscan_t yyscanner
);
357 void config_set_extra (YY_EXTRA_TYPE user_defined
,yyscan_t yyscanner
);
359 FILE *config_get_in (yyscan_t yyscanner
);
361 void config_set_in (FILE * in_str
,yyscan_t yyscanner
);
363 FILE *config_get_out (yyscan_t yyscanner
);
365 void config_set_out (FILE * out_str
,yyscan_t yyscanner
);
367 int config_get_leng (yyscan_t yyscanner
);
369 char *config_get_text (yyscan_t yyscanner
);
371 int config_get_lineno (yyscan_t yyscanner
);
373 void config_set_lineno (int line_number
,yyscan_t yyscanner
);
375 int config_get_column (yyscan_t yyscanner
);
377 void config_set_column (int column_no
,yyscan_t yyscanner
);
379 /* %if-bison-bridge */
381 YYSTYPE
* config_get_lval (yyscan_t yyscanner
);
383 void config_set_lval (YYSTYPE
* yylval_param
,yyscan_t yyscanner
);
387 /* Macros after this point can all be overridden by user definitions in
391 #ifndef YY_SKIP_YYWRAP
393 extern "C" int config_wrap (yyscan_t yyscanner
);
395 extern int config_wrap (yyscan_t yyscanner
);
399 /* %not-for-header */
404 static void yy_flex_strncpy (char *,yyconst
char *,int ,yyscan_t yyscanner
);
407 #ifdef YY_NEED_STRLEN
408 static int yy_flex_strlen (yyconst
char * ,yyscan_t yyscanner
);
412 /* %if-c-only Standard (non-C++) definition */
413 /* %not-for-header */
422 /* Amount of stuff to slurp up with each read. */
423 #ifndef YY_READ_BUF_SIZE
424 #define YY_READ_BUF_SIZE 8192
427 /* Number of entries by which start-condition stack grows. */
428 #ifndef YY_START_STACK_INCR
429 #define YY_START_STACK_INCR 25
432 /* %if-tables-serialization structures and prototypes */
433 /* %not-for-header */
435 /* %not-for-header */
437 /* Default declaration of generated scanner - a define so the user can
438 * easily add parameters.
441 #define YY_DECL_IS_OURS 1
442 /* %if-c-only Standard (non-C++) definition */
444 extern int config_lex \
445 (YYSTYPE
* yylval_param
,yyscan_t yyscanner
);
447 #define YY_DECL int config_lex \
448 (YYSTYPE * yylval_param , yyscan_t yyscanner)
450 /* %if-c++-only C++ definition */
452 #endif /* !YY_DECL */
454 /* %not-for-header */
457 /* %not-for-header */
461 /* yy_get_previous_state - get the state just before the EOB char was reached */
464 /* %not-for-header */
467 #undef YY_FLUSH_BUFFER
470 #undef yy_set_interactive
471 #undef YY_DO_BEFORE_ACTION
473 #ifdef YY_DECL_IS_OURS
474 #undef YY_DECL_IS_OURS
478 #line 203 "libmemcached/csl/scanner.l"
481 #line 482 "libmemcached/csl/scanner.h"
482 #undef config_IN_HEADER
483 #endif /* config_HEADER_H */