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