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"
18 #pragma GCC diagnostic ignored "-Wunused-result"
19 #pragma GCC diagnostic ignored "-Wmissing-noreturn"
23 #pragma GCC diagnostic ignored "-Wshorten-64-to-32"
26 #ifndef __INTEL_COMPILER
28 #pragma GCC diagnostic ignored "-Wlogical-op"
32 #define YY_EXTRA_TYPE Context*
37 #line 38 "libmemcached/csl/scanner.h"
39 #define YY_INT_ALIGNED short int
41 /* A lexical scanner generated by flex */
44 #define YY_FLEX_MAJOR_VERSION 2
45 #define YY_FLEX_MINOR_VERSION 5
46 #define YY_FLEX_SUBMINOR_VERSION 35
47 #if YY_FLEX_SUBMINOR_VERSION > 0
51 /* First, we deal with platform-specific or compiler-specific issues. */
53 /* begin standard C headers. */
59 /* end standard C headers. */
61 /* flex integer type definitions */
66 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
68 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
70 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
71 * if you want the limit (max/min) macros for int types.
73 #ifndef __STDC_LIMIT_MACROS
74 #define __STDC_LIMIT_MACROS 1
78 typedef int8_t flex_int8_t
;
79 typedef uint8_t flex_uint8_t
;
80 typedef int16_t flex_int16_t
;
81 typedef uint16_t flex_uint16_t
;
82 typedef int32_t flex_int32_t
;
83 typedef uint32_t flex_uint32_t
;
85 typedef signed char flex_int8_t
;
86 typedef short int flex_int16_t
;
87 typedef int flex_int32_t
;
88 typedef unsigned char flex_uint8_t
;
89 typedef unsigned short int flex_uint16_t
;
90 typedef unsigned int flex_uint32_t
;
93 /* Limits of integral types. */
95 #define INT8_MIN (-128)
98 #define INT16_MIN (-32767-1)
101 #define INT32_MIN (-2147483647-1)
104 #define INT8_MAX (127)
107 #define INT16_MAX (32767)
110 #define INT32_MAX (2147483647)
113 #define UINT8_MAX (255U)
116 #define UINT16_MAX (65535U)
119 #define UINT32_MAX (4294967295U)
122 #endif /* ! FLEXINT_H */
126 /* The "const" storage-class-modifier is valid. */
129 #else /* ! __cplusplus */
131 /* C99 requires __STDC__ to be defined as 1. */
132 #if defined (__STDC__)
136 #endif /* defined (__STDC__) */
137 #endif /* ! __cplusplus */
140 #define yyconst const
145 /* An opaque pointer. */
146 #ifndef YY_TYPEDEF_YY_SCANNER_T
147 #define YY_TYPEDEF_YY_SCANNER_T
148 typedef void* yyscan_t
;
151 /* For convenience, these vars (plus the bison vars far below)
152 are macros in the reentrant scanner. */
153 #define yyin yyg->yyin_r
154 #define yyout yyg->yyout_r
155 #define yyextra yyg->yyextra_r
156 #define yyleng yyg->yyleng_r
157 #define yytext yyg->yytext_r
158 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
159 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
160 #define yy_flex_debug yyg->yy_flex_debug_r
162 /* Size of default input buffer. */
164 #define YY_BUF_SIZE 16384
167 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
168 #define YY_TYPEDEF_YY_BUFFER_STATE
169 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
172 #ifndef YY_TYPEDEF_YY_SIZE_T
173 #define YY_TYPEDEF_YY_SIZE_T
174 typedef size_t yy_size_t
;
177 #ifndef YY_STRUCT_YY_BUFFER_STATE
178 #define YY_STRUCT_YY_BUFFER_STATE
179 struct yy_buffer_state
183 char *yy_ch_buf
; /* input buffer */
184 char *yy_buf_pos
; /* current position in input buffer */
186 /* Size of input buffer in bytes, not including room for EOB
189 yy_size_t yy_buf_size
;
191 /* Number of characters read into yy_ch_buf, not including EOB
196 /* Whether we "own" the buffer - i.e., we know we created it,
197 * and can realloc() it to grow it, and should free() it to
200 int yy_is_our_buffer
;
202 /* Whether this is an "interactive" input source; if so, and
203 * if we're using stdio for input, then we want to use getc()
204 * instead of fread(), to make sure we stop fetching input after
207 int yy_is_interactive
;
209 /* Whether we're considered to be at the beginning of a line.
210 * If so, '^' rules will be active on the next match, otherwise
215 int yy_bs_lineno
; /**< The line count. */
216 int yy_bs_column
; /**< The column count. */
218 /* Whether to try to fill the input buffer when we reach the
223 int yy_buffer_status
;
226 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
228 void config_restart (FILE *input_file
,yyscan_t yyscanner
);
229 void config__switch_to_buffer (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
230 YY_BUFFER_STATE
config__create_buffer (FILE *file
,int size
,yyscan_t yyscanner
);
231 void config__delete_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
232 void config__flush_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
233 void config_push_buffer_state (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
234 void config_pop_buffer_state (yyscan_t yyscanner
);
236 YY_BUFFER_STATE
config__scan_buffer (char *base
,yy_size_t size
,yyscan_t yyscanner
);
237 YY_BUFFER_STATE
config__scan_string (yyconst
char *yy_str
,yyscan_t yyscanner
);
238 YY_BUFFER_STATE
config__scan_bytes (yyconst
char *bytes
,int len
,yyscan_t yyscanner
);
240 void *config_alloc (yy_size_t
,yyscan_t yyscanner
);
241 void *config_realloc (void *,yy_size_t
,yyscan_t yyscanner
);
242 void config_free (void * ,yyscan_t yyscanner
);
244 /* Begin user sect3 */
246 #define config_wrap(n) 1
247 #define YY_SKIP_YYWRAP
249 #define yytext_ptr yytext_r
251 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
256 #ifndef YY_NO_UNISTD_H
257 /* Special case for "unistd.h", since it is non-ANSI. We include it way
258 * down here because we want the user's section 1 to have been scanned first.
259 * The user has a chance to override it with an option.
264 #ifndef YY_EXTRA_TYPE
265 #define YY_EXTRA_TYPE void *
268 int config_lex_init (yyscan_t
* scanner
);
270 int config_lex_init_extra (YY_EXTRA_TYPE user_defined
,yyscan_t
* scanner
);
272 /* Accessor methods to globals.
273 These are made visible to non-reentrant scanners for convenience. */
275 int config_lex_destroy (yyscan_t yyscanner
);
277 int config_get_debug (yyscan_t yyscanner
);
279 void config_set_debug (int debug_flag
,yyscan_t yyscanner
);
281 YY_EXTRA_TYPE
config_get_extra (yyscan_t yyscanner
);
283 void config_set_extra (YY_EXTRA_TYPE user_defined
,yyscan_t yyscanner
);
285 FILE *config_get_in (yyscan_t yyscanner
);
287 void config_set_in (FILE * in_str
,yyscan_t yyscanner
);
289 FILE *config_get_out (yyscan_t yyscanner
);
291 void config_set_out (FILE * out_str
,yyscan_t yyscanner
);
293 int config_get_leng (yyscan_t yyscanner
);
295 char *config_get_text (yyscan_t yyscanner
);
297 int config_get_lineno (yyscan_t yyscanner
);
299 void config_set_lineno (int line_number
,yyscan_t yyscanner
);
301 int config_get_column (yyscan_t yyscanner
);
303 void config_set_column (int column_no
,yyscan_t yyscanner
);
305 YYSTYPE
* config_get_lval (yyscan_t yyscanner
);
307 void config_set_lval (YYSTYPE
* yylval_param
,yyscan_t yyscanner
);
309 /* Macros after this point can all be overridden by user definitions in
313 #ifndef YY_SKIP_YYWRAP
315 extern "C" int config_wrap (yyscan_t yyscanner
);
317 extern int config_wrap (yyscan_t yyscanner
);
322 static void yy_flex_strncpy (char *,yyconst
char *,int ,yyscan_t yyscanner
);
325 #ifdef YY_NEED_STRLEN
326 static int yy_flex_strlen (yyconst
char * ,yyscan_t yyscanner
);
333 /* Amount of stuff to slurp up with each read. */
334 #ifndef YY_READ_BUF_SIZE
335 #define YY_READ_BUF_SIZE 8192
338 /* Number of entries by which start-condition stack grows. */
339 #ifndef YY_START_STACK_INCR
340 #define YY_START_STACK_INCR 25
343 /* Default declaration of generated scanner - a define so the user can
344 * easily add parameters.
347 #define YY_DECL_IS_OURS 1
349 extern int config_lex \
350 (YYSTYPE
* yylval_param
,yyscan_t yyscanner
);
352 #define YY_DECL int config_lex \
353 (YYSTYPE * yylval_param , yyscan_t yyscanner)
354 #endif /* !YY_DECL */
356 /* yy_get_previous_state - get the state just before the EOB char was reached */
359 #undef YY_FLUSH_BUFFER
362 #undef yy_set_interactive
363 #undef YY_DO_BEFORE_ACTION
365 #ifdef YY_DECL_IS_OURS
366 #undef YY_DECL_IS_OURS
370 #line 229 "libmemcached/csl/scanner.l"
373 #line 374 "libmemcached/csl/scanner.h"
374 #undef config_IN_HEADER
375 #endif /* config_HEADER_H */