571360b2a6b5dc918d1547383b136950a2b7e300
[awesomized/libmemcached] / libmemcached / csl / scanner.h
1 #ifndef config_HEADER_H
2 #define config_HEADER_H 1
3 #define config_IN_HEADER 1
4
5 #line 6 "libmemcached/csl/scanner.h"
6 #line 39 "libmemcached/csl/scanner.l"
7
8 #include <libmemcached/csl/common.h>
9 #include <libmemcached/csl/context.h>
10 #include <libmemcached/csl/parser.h>
11 #include <libmemcached/csl/symbol.h>
12
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"
20 #endif
21
22 #ifdef __clang__
23 #pragma GCC diagnostic ignored "-Wshorten-64-to-32"
24 #endif
25
26 #ifndef __INTEL_COMPILER
27 #ifndef __clang__
28 #pragma GCC diagnostic ignored "-Wlogical-op"
29 #endif
30 #endif
31
32 #define YY_EXTRA_TYPE Context*
33
34
35
36
37 #line 38 "libmemcached/csl/scanner.h"
38
39 #define YY_INT_ALIGNED short int
40
41 /* A lexical scanner generated by flex */
42
43 #define FLEX_SCANNER
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
48 #define FLEX_BETA
49 #endif
50
51 /* First, we deal with platform-specific or compiler-specific issues. */
52
53 /* begin standard C headers. */
54 #include <stdio.h>
55 #include <string.h>
56 #include <errno.h>
57 #include <stdlib.h>
58
59 /* end standard C headers. */
60
61 /* flex integer type definitions */
62
63 #ifndef FLEXINT_H
64 #define FLEXINT_H
65
66 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
67
68 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
69
70 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
71 * if you want the limit (max/min) macros for int types.
72 */
73 #ifndef __STDC_LIMIT_MACROS
74 #define __STDC_LIMIT_MACROS 1
75 #endif
76
77 #include <inttypes.h>
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;
84 typedef uint64_t flex_uint64_t;
85 #else
86 typedef signed char flex_int8_t;
87 typedef short int flex_int16_t;
88 typedef int flex_int32_t;
89 typedef unsigned char flex_uint8_t;
90 typedef unsigned short int flex_uint16_t;
91 typedef unsigned int flex_uint32_t;
92 #endif /* ! C99 */
93
94 /* Limits of integral types. */
95 #ifndef INT8_MIN
96 #define INT8_MIN (-128)
97 #endif
98 #ifndef INT16_MIN
99 #define INT16_MIN (-32767-1)
100 #endif
101 #ifndef INT32_MIN
102 #define INT32_MIN (-2147483647-1)
103 #endif
104 #ifndef INT8_MAX
105 #define INT8_MAX (127)
106 #endif
107 #ifndef INT16_MAX
108 #define INT16_MAX (32767)
109 #endif
110 #ifndef INT32_MAX
111 #define INT32_MAX (2147483647)
112 #endif
113 #ifndef UINT8_MAX
114 #define UINT8_MAX (255U)
115 #endif
116 #ifndef UINT16_MAX
117 #define UINT16_MAX (65535U)
118 #endif
119 #ifndef UINT32_MAX
120 #define UINT32_MAX (4294967295U)
121 #endif
122
123 #endif /* ! FLEXINT_H */
124
125 #ifdef __cplusplus
126
127 /* The "const" storage-class-modifier is valid. */
128 #define YY_USE_CONST
129
130 #else /* ! __cplusplus */
131
132 /* C99 requires __STDC__ to be defined as 1. */
133 #if defined (__STDC__)
134
135 #define YY_USE_CONST
136
137 #endif /* defined (__STDC__) */
138 #endif /* ! __cplusplus */
139
140 #ifdef YY_USE_CONST
141 #define yyconst const
142 #else
143 #define yyconst
144 #endif
145
146 /* An opaque pointer. */
147 #ifndef YY_TYPEDEF_YY_SCANNER_T
148 #define YY_TYPEDEF_YY_SCANNER_T
149 typedef void* yyscan_t;
150 #endif
151
152 /* For convenience, these vars (plus the bison vars far below)
153 are macros in the reentrant scanner. */
154 #define yyin yyg->yyin_r
155 #define yyout yyg->yyout_r
156 #define yyextra yyg->yyextra_r
157 #define yyleng yyg->yyleng_r
158 #define yytext yyg->yytext_r
159 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
160 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
161 #define yy_flex_debug yyg->yy_flex_debug_r
162
163 /* Size of default input buffer. */
164 #ifndef YY_BUF_SIZE
165 #define YY_BUF_SIZE 16384
166 #endif
167
168 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
169 #define YY_TYPEDEF_YY_BUFFER_STATE
170 typedef struct yy_buffer_state *YY_BUFFER_STATE;
171 #endif
172
173 #ifndef YY_TYPEDEF_YY_SIZE_T
174 #define YY_TYPEDEF_YY_SIZE_T
175 typedef size_t yy_size_t;
176 #endif
177
178 #ifndef YY_STRUCT_YY_BUFFER_STATE
179 #define YY_STRUCT_YY_BUFFER_STATE
180 struct yy_buffer_state
181 {
182 FILE *yy_input_file;
183
184 char *yy_ch_buf; /* input buffer */
185 char *yy_buf_pos; /* current position in input buffer */
186
187 /* Size of input buffer in bytes, not including room for EOB
188 * characters.
189 */
190 yy_size_t yy_buf_size;
191
192 /* Number of characters read into yy_ch_buf, not including EOB
193 * characters.
194 */
195 yy_size_t yy_n_chars;
196
197 /* Whether we "own" the buffer - i.e., we know we created it,
198 * and can realloc() it to grow it, and should free() it to
199 * delete it.
200 */
201 int yy_is_our_buffer;
202
203 /* Whether this is an "interactive" input source; if so, and
204 * if we're using stdio for input, then we want to use getc()
205 * instead of fread(), to make sure we stop fetching input after
206 * each newline.
207 */
208 int yy_is_interactive;
209
210 /* Whether we're considered to be at the beginning of a line.
211 * If so, '^' rules will be active on the next match, otherwise
212 * not.
213 */
214 int yy_at_bol;
215
216 int yy_bs_lineno; /**< The line count. */
217 int yy_bs_column; /**< The column count. */
218
219 /* Whether to try to fill the input buffer when we reach the
220 * end of it.
221 */
222 int yy_fill_buffer;
223
224 int yy_buffer_status;
225
226 };
227 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
228
229 void config_restart (FILE *input_file ,yyscan_t yyscanner );
230 void config__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
231 YY_BUFFER_STATE config__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
232 void config__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
233 void config__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
234 void config_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
235 void config_pop_buffer_state (yyscan_t yyscanner );
236
237 YY_BUFFER_STATE config__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
238 YY_BUFFER_STATE config__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
239 YY_BUFFER_STATE config__scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
240
241 void *config_alloc (yy_size_t ,yyscan_t yyscanner );
242 void *config_realloc (void *,yy_size_t ,yyscan_t yyscanner );
243 void config_free (void * ,yyscan_t yyscanner );
244
245 /* Begin user sect3 */
246
247 #define config_wrap(n) 1
248 #define YY_SKIP_YYWRAP
249
250 #define yytext_ptr yytext_r
251
252 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
253 #define INITIAL 0
254
255 #endif
256
257 #ifndef YY_NO_UNISTD_H
258 /* Special case for "unistd.h", since it is non-ANSI. We include it way
259 * down here because we want the user's section 1 to have been scanned first.
260 * The user has a chance to override it with an option.
261 */
262 #include <unistd.h>
263 #endif
264
265 #ifndef YY_EXTRA_TYPE
266 #define YY_EXTRA_TYPE void *
267 #endif
268
269 int config_lex_init (yyscan_t* scanner);
270
271 int config_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
272
273 /* Accessor methods to globals.
274 These are made visible to non-reentrant scanners for convenience. */
275
276 int config_lex_destroy (yyscan_t yyscanner );
277
278 int config_get_debug (yyscan_t yyscanner );
279
280 void config_set_debug (int debug_flag ,yyscan_t yyscanner );
281
282 YY_EXTRA_TYPE config_get_extra (yyscan_t yyscanner );
283
284 void config_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
285
286 FILE *config_get_in (yyscan_t yyscanner );
287
288 void config_set_in (FILE * in_str ,yyscan_t yyscanner );
289
290 FILE *config_get_out (yyscan_t yyscanner );
291
292 void config_set_out (FILE * out_str ,yyscan_t yyscanner );
293
294 yy_size_t config_get_leng (yyscan_t yyscanner );
295
296 char *config_get_text (yyscan_t yyscanner );
297
298 int config_get_lineno (yyscan_t yyscanner );
299
300 void config_set_lineno (int line_number ,yyscan_t yyscanner );
301
302 YYSTYPE * config_get_lval (yyscan_t yyscanner );
303
304 void config_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
305
306 /* Macros after this point can all be overridden by user definitions in
307 * section 1.
308 */
309
310 #ifndef YY_SKIP_YYWRAP
311 #ifdef __cplusplus
312 extern "C" int config_wrap (yyscan_t yyscanner );
313 #else
314 extern int config_wrap (yyscan_t yyscanner );
315 #endif
316 #endif
317
318 #ifndef yytext_ptr
319 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
320 #endif
321
322 #ifdef YY_NEED_STRLEN
323 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
324 #endif
325
326 #ifndef YY_NO_INPUT
327
328 #endif
329
330 /* Amount of stuff to slurp up with each read. */
331 #ifndef YY_READ_BUF_SIZE
332 #define YY_READ_BUF_SIZE 8192
333 #endif
334
335 /* Number of entries by which start-condition stack grows. */
336 #ifndef YY_START_STACK_INCR
337 #define YY_START_STACK_INCR 25
338 #endif
339
340 /* Default declaration of generated scanner - a define so the user can
341 * easily add parameters.
342 */
343 #ifndef YY_DECL
344 #define YY_DECL_IS_OURS 1
345
346 extern int config_lex \
347 (YYSTYPE * yylval_param ,yyscan_t yyscanner);
348
349 #define YY_DECL int config_lex \
350 (YYSTYPE * yylval_param , yyscan_t yyscanner)
351 #endif /* !YY_DECL */
352
353 /* yy_get_previous_state - get the state just before the EOB char was reached */
354
355 #undef YY_NEW_FILE
356 #undef YY_FLUSH_BUFFER
357 #undef yy_set_bol
358 #undef yy_new_buffer
359 #undef yy_set_interactive
360 #undef YY_DO_BEFORE_ACTION
361
362 #ifdef YY_DECL_IS_OURS
363 #undef YY_DECL_IS_OURS
364 #undef YY_DECL
365 #endif
366
367 #line 229 "libmemcached/csl/scanner.l"
368
369
370 #line 371 "libmemcached/csl/scanner.h"
371 #undef config_IN_HEADER
372 #endif /* config_HEADER_H */