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