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 #pragma GCC diagnostic ignored "-Wold-style-cast"
14 #pragma GCC diagnostic ignored "-Wsign-compare"
15 #pragma GCC diagnostic ignored "-Wunused-parameter"
17 #define YY_EXTRA_TYPE Context*
22 #line 23 "libmemcached/csl/scanner.h"
24 #define YY_INT_ALIGNED short int
26 /* A lexical scanner generated by flex */
31 #define YY_FLEX_MAJOR_VERSION 2
32 #define YY_FLEX_MINOR_VERSION 5
33 #define YY_FLEX_SUBMINOR_VERSION 35
34 #if YY_FLEX_SUBMINOR_VERSION > 0
49 /* First, we deal with platform-specific or compiler-specific issues. */
51 /* begin standard C headers. */
59 /* %if-tables-serialization */
61 /* end standard C headers. */
64 /* flex integer type definitions */
69 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
71 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
73 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
74 * if you want the limit (max/min) macros for int types.
76 #ifndef __STDC_LIMIT_MACROS
77 #define __STDC_LIMIT_MACROS 1
81 typedef int8_t flex_int8_t
;
82 typedef uint8_t flex_uint8_t
;
83 typedef int16_t flex_int16_t
;
84 typedef uint16_t flex_uint16_t
;
85 typedef int32_t flex_int32_t
;
86 typedef uint32_t flex_uint32_t
;
88 typedef signed char flex_int8_t
;
89 typedef short int flex_int16_t
;
90 typedef int flex_int32_t
;
91 typedef unsigned char flex_uint8_t
;
92 typedef unsigned short int flex_uint16_t
;
93 typedef unsigned int flex_uint32_t
;
96 /* Limits of integral types. */
98 #define INT8_MIN (-128)
101 #define INT16_MIN (-32767-1)
104 #define INT32_MIN (-2147483647-1)
107 #define INT8_MAX (127)
110 #define INT16_MAX (32767)
113 #define INT32_MAX (2147483647)
116 #define UINT8_MAX (255U)
119 #define UINT16_MAX (65535U)
122 #define UINT32_MAX (4294967295U)
125 #endif /* ! FLEXINT_H */
134 /* The "const" storage-class-modifier is valid. */
137 #else /* ! __cplusplus */
139 /* C99 requires __STDC__ to be defined as 1. */
140 #if defined (__STDC__)
144 #endif /* defined (__STDC__) */
145 #endif /* ! __cplusplus */
148 #define yyconst const
153 /* %not-for-header */
155 /* %not-for-header */
159 /* An opaque pointer. */
160 #ifndef YY_TYPEDEF_YY_SCANNER_T
161 #define YY_TYPEDEF_YY_SCANNER_T
162 typedef void* yyscan_t
;
165 /* For convenience, these vars (plus the bison vars far below)
166 are macros in the reentrant scanner. */
167 #define yyin yyg->yyin_r
168 #define yyout yyg->yyout_r
169 #define yyextra yyg->yyextra_r
170 #define yyleng yyg->yyleng_r
171 #define yytext yyg->yytext_r
172 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
173 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
174 #define yy_flex_debug yyg->yy_flex_debug_r
178 /* %if-not-reentrant */
181 /* Size of default input buffer. */
183 #define YY_BUF_SIZE 16384
186 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
187 #define YY_TYPEDEF_YY_BUFFER_STATE
188 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
191 /* %if-not-reentrant */
195 /* %if-not-reentrant */
199 #ifndef YY_TYPEDEF_YY_SIZE_T
200 #define YY_TYPEDEF_YY_SIZE_T
201 typedef size_t yy_size_t
;
204 #ifndef YY_STRUCT_YY_BUFFER_STATE
205 #define YY_STRUCT_YY_BUFFER_STATE
206 struct yy_buffer_state
215 char *yy_ch_buf
; /* input buffer */
216 char *yy_buf_pos
; /* current position in input buffer */
218 /* Size of input buffer in bytes, not including room for EOB
221 yy_size_t yy_buf_size
;
223 /* Number of characters read into yy_ch_buf, not including EOB
228 /* Whether we "own" the buffer - i.e., we know we created it,
229 * and can realloc() it to grow it, and should free() it to
232 int yy_is_our_buffer
;
234 /* Whether this is an "interactive" input source; if so, and
235 * if we're using stdio for input, then we want to use getc()
236 * instead of fread(), to make sure we stop fetching input after
239 int yy_is_interactive
;
241 /* Whether we're considered to be at the beginning of a line.
242 * If so, '^' rules will be active on the next match, otherwise
247 int yy_bs_lineno
; /**< The line count. */
248 int yy_bs_column
; /**< The column count. */
250 /* Whether to try to fill the input buffer when we reach the
255 int yy_buffer_status
;
258 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
260 /* %if-c-only Standard (non-C++) definition */
261 /* %not-for-header */
265 /* %if-c-only Standard (non-C++) definition */
267 /* %if-not-reentrant */
268 /* %not-for-header */
272 void config_restart (FILE *input_file
,yyscan_t yyscanner
);
273 void config__switch_to_buffer (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
274 YY_BUFFER_STATE
config__create_buffer (FILE *file
,int size
,yyscan_t yyscanner
);
275 void config__delete_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
276 void config__flush_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
277 void config_push_buffer_state (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
278 void config_pop_buffer_state (yyscan_t yyscanner
);
280 YY_BUFFER_STATE
config__scan_buffer (char *base
,yy_size_t size
,yyscan_t yyscanner
);
281 YY_BUFFER_STATE
config__scan_string (yyconst
char *yy_str
,yyscan_t yyscanner
);
282 YY_BUFFER_STATE
config__scan_bytes (yyconst
char *bytes
,int len
,yyscan_t yyscanner
);
286 void *config_alloc (yy_size_t
,yyscan_t yyscanner
);
287 void *config_realloc (void *,yy_size_t
,yyscan_t yyscanner
);
288 void config_free (void * ,yyscan_t yyscanner
);
290 /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
291 /* Begin user sect3 */
293 #define config_wrap(n) 1
294 #define YY_SKIP_YYWRAP
298 #define yytext_ptr yytext_r
300 /* %if-c-only Standard (non-C++) definition */
304 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
309 #ifndef YY_NO_UNISTD_H
310 /* Special case for "unistd.h", since it is non-ANSI. We include it way
311 * down here because we want the user's section 1 to have been scanned first.
312 * The user has a chance to override it with an option.
321 #ifndef YY_EXTRA_TYPE
322 #define YY_EXTRA_TYPE void *
325 /* %if-c-only Reentrant structure and macros (non-C++). */
334 int config_lex_init (yyscan_t
* scanner
);
336 int config_lex_init_extra (YY_EXTRA_TYPE user_defined
,yyscan_t
* scanner
);
340 /* %endif End reentrant structures and macros. */
342 /* Accessor methods to globals.
343 These are made visible to non-reentrant scanners for convenience. */
345 int config_lex_destroy (yyscan_t yyscanner
);
347 int config_get_debug (yyscan_t yyscanner
);
349 void config_set_debug (int debug_flag
,yyscan_t yyscanner
);
351 YY_EXTRA_TYPE
config_get_extra (yyscan_t yyscanner
);
353 void config_set_extra (YY_EXTRA_TYPE user_defined
,yyscan_t yyscanner
);
355 FILE *config_get_in (yyscan_t yyscanner
);
357 void config_set_in (FILE * in_str
,yyscan_t yyscanner
);
359 FILE *config_get_out (yyscan_t yyscanner
);
361 void config_set_out (FILE * out_str
,yyscan_t yyscanner
);
363 int config_get_leng (yyscan_t yyscanner
);
365 char *config_get_text (yyscan_t yyscanner
);
367 int config_get_lineno (yyscan_t yyscanner
);
369 void config_set_lineno (int line_number
,yyscan_t yyscanner
);
371 int config_get_column (yyscan_t yyscanner
);
373 void config_set_column (int column_no
,yyscan_t yyscanner
);
375 /* %if-bison-bridge */
377 YYSTYPE
* config_get_lval (yyscan_t yyscanner
);
379 void config_set_lval (YYSTYPE
* yylval_param
,yyscan_t yyscanner
);
383 /* Macros after this point can all be overridden by user definitions in
387 #ifndef YY_SKIP_YYWRAP
389 extern "C" int config_wrap (yyscan_t yyscanner
);
391 extern int config_wrap (yyscan_t yyscanner
);
395 /* %not-for-header */
400 static void yy_flex_strncpy (char *,yyconst
char *,int ,yyscan_t yyscanner
);
403 #ifdef YY_NEED_STRLEN
404 static int yy_flex_strlen (yyconst
char * ,yyscan_t yyscanner
);
408 /* %if-c-only Standard (non-C++) definition */
409 /* %not-for-header */
418 /* Amount of stuff to slurp up with each read. */
419 #ifndef YY_READ_BUF_SIZE
420 #define YY_READ_BUF_SIZE 8192
423 /* Number of entries by which start-condition stack grows. */
424 #ifndef YY_START_STACK_INCR
425 #define YY_START_STACK_INCR 25
428 /* %if-tables-serialization structures and prototypes */
429 /* %not-for-header */
431 /* %not-for-header */
433 /* Default declaration of generated scanner - a define so the user can
434 * easily add parameters.
437 #define YY_DECL_IS_OURS 1
438 /* %if-c-only Standard (non-C++) definition */
440 extern int config_lex \
441 (YYSTYPE
* yylval_param
,yyscan_t yyscanner
);
443 #define YY_DECL int config_lex \
444 (YYSTYPE * yylval_param , yyscan_t yyscanner)
446 /* %if-c++-only C++ definition */
448 #endif /* !YY_DECL */
450 /* %not-for-header */
453 /* %not-for-header */
457 /* yy_get_previous_state - get the state just before the EOB char was reached */
460 /* %not-for-header */
463 #undef YY_FLUSH_BUFFER
466 #undef yy_set_interactive
467 #undef YY_DO_BEFORE_ACTION
469 #ifdef YY_DECL_IS_OURS
470 #undef YY_DECL_IS_OURS
474 #line 199 "libmemcached/csl/scanner.l"
477 #line 478 "libmemcached/csl/scanner.h"
478 #undef config_IN_HEADER
479 #endif /* config_HEADER_H */