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