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