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