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