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