1 /***************************************************************************** 2 3 Copyright (c) 2010, 2021, Oracle and/or its affiliates. 4 5 This program is free software; you can redistribute it and/or modify it under 6 the terms of the GNU General Public License, version 2.0, as published by the 7 Free Software Foundation. 8 9 This program is also distributed with certain software (including but not 10 limited to OpenSSL) that is licensed under separate terms, as designated in a 11 particular file or component or in included license documentation. The authors 12 of MySQL hereby grant you an additional permission to link the program and 13 your derivative works with the separately licensed software that they have 14 included with MySQL. 15 16 This program is distributed in the hope that it will be useful, but WITHOUT 17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 18 FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0, 19 for more details. 20 21 You should have received a copy of the GNU General Public License along with 22 this program; if not, write to the Free Software Foundation, Inc., 23 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 24 25 *****************************************************************************/ 26 27 #ifndef fts0bHEADER_H 28 #define fts0bHEADER_H 1 29 #define fts0bIN_HEADER 1 30 31 #line 6 "../include/fts0blex.h" 32 33 #line 8 "../include/fts0blex.h" 34 35 #define YY_INT_ALIGNED short int 36 37 /* A lexical scanner generated by flex */ 38 39 #define FLEX_SCANNER 40 #define YY_FLEX_MAJOR_VERSION 2 41 #define YY_FLEX_MINOR_VERSION 5 42 #define YY_FLEX_SUBMINOR_VERSION 35 43 #if YY_FLEX_SUBMINOR_VERSION > 0 44 #define FLEX_BETA 45 #endif 46 47 /* First, we deal with platform-specific or compiler-specific issues. */ 48 49 /* begin standard C headers. */ 50 #include <stdio.h> 51 #include <string.h> 52 #include <errno.h> 53 #include <stdlib.h> 54 55 /* end standard C headers. */ 56 57 /* flex integer type definitions */ 58 59 #ifndef FLEXINT_H 60 #define FLEXINT_H 61 62 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ 63 64 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 65 66 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, 67 * if you want the limit (max/min) macros for int types. 68 */ 69 #ifndef __STDC_LIMIT_MACROS 70 #define __STDC_LIMIT_MACROS 1 71 #endif 72 73 #include <inttypes.h> 74 typedef int8_t flex_int8_t; 75 typedef uint8_t flex_uint8_t; 76 typedef int16_t flex_int16_t; 77 typedef uint16_t flex_uint16_t; 78 typedef int32_t flex_int32_t; 79 typedef uint32_t flex_uint32_t; 80 #else 81 typedef signed char flex_int8_t; 82 typedef short int flex_int16_t; 83 typedef int flex_int32_t; 84 typedef unsigned char flex_uint8_t; 85 typedef unsigned short int flex_uint16_t; 86 typedef unsigned int flex_uint32_t; 87 88 /* Limits of integral types. */ 89 #ifndef INT8_MIN 90 #define INT8_MIN (-128) 91 #endif 92 #ifndef INT16_MIN 93 #define INT16_MIN (-32767-1) 94 #endif 95 #ifndef INT32_MIN 96 #define INT32_MIN (-2147483647-1) 97 #endif 98 #ifndef INT8_MAX 99 #define INT8_MAX (127) 100 #endif 101 #ifndef INT16_MAX 102 #define INT16_MAX (32767) 103 #endif 104 #ifndef INT32_MAX 105 #define INT32_MAX (2147483647) 106 #endif 107 #ifndef UINT8_MAX 108 #define UINT8_MAX (255U) 109 #endif 110 #ifndef UINT16_MAX 111 #define UINT16_MAX (65535U) 112 #endif 113 #ifndef UINT32_MAX 114 #define UINT32_MAX (4294967295U) 115 #endif 116 117 #endif /* ! C99 */ 118 119 #endif /* ! FLEXINT_H */ 120 121 #ifdef __cplusplus 122 123 /* The "const" storage-class-modifier is valid. */ 124 #define YY_USE_CONST 125 126 #else /* ! __cplusplus */ 127 128 /* C99 requires __STDC__ to be defined as 1. */ 129 #if defined (__STDC__) 130 131 #define YY_USE_CONST 132 133 #endif /* defined (__STDC__) */ 134 #endif /* ! __cplusplus */ 135 136 #ifdef YY_USE_CONST 137 #define yyconst const 138 #else 139 #define yyconst 140 #endif 141 142 /* An opaque pointer. */ 143 #ifndef YY_TYPEDEF_YY_SCANNER_T 144 #define YY_TYPEDEF_YY_SCANNER_T 145 typedef void* yyscan_t; 146 #endif 147 148 /* For convenience, these vars (plus the bison vars far below) 149 are macros in the reentrant scanner. */ 150 #define yyin yyg->yyin_r 151 #define yyout yyg->yyout_r 152 #define yyextra yyg->yyextra_r 153 #define yyleng yyg->yyleng_r 154 #define yytext yyg->yytext_r 155 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) 156 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) 157 #define yy_flex_debug yyg->yy_flex_debug_r 158 159 /* Size of default input buffer. */ 160 #ifndef YY_BUF_SIZE 161 #ifdef __ia64__ 162 /* On IA-64, the buffer size is 16k, not 8k. 163 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. 164 * Ditto for the __ia64__ case accordingly. 165 */ 166 #define YY_BUF_SIZE 32768 167 #else 168 #define YY_BUF_SIZE 16384 169 #endif /* __ia64__ */ 170 #endif 171 172 #ifndef YY_TYPEDEF_YY_BUFFER_STATE 173 #define YY_TYPEDEF_YY_BUFFER_STATE 174 typedef struct yy_buffer_state *YY_BUFFER_STATE; 175 #endif 176 177 #ifndef YY_TYPEDEF_YY_SIZE_T 178 #define YY_TYPEDEF_YY_SIZE_T 179 typedef size_t yy_size_t; 180 #endif 181 182 #ifndef YY_STRUCT_YY_BUFFER_STATE 183 #define YY_STRUCT_YY_BUFFER_STATE 184 struct yy_buffer_state 185 { 186 FILE *yy_input_file; 187 188 char *yy_ch_buf; /* input buffer */ 189 char *yy_buf_pos; /* current position in input buffer */ 190 191 /* Size of input buffer in bytes, not including room for EOB 192 * characters. 193 */ 194 yy_size_t yy_buf_size; 195 196 /* Number of characters read into yy_ch_buf, not including EOB 197 * characters. 198 */ 199 int yy_n_chars; 200 201 /* Whether we "own" the buffer - i.e., we know we created it, 202 * and can realloc() it to grow it, and should free() it to 203 * delete it. 204 */ 205 int yy_is_our_buffer; 206 207 /* Whether this is an "interactive" input source; if so, and 208 * if we're using stdio for input, then we want to use getc() 209 * instead of fread(), to make sure we stop fetching input after 210 * each newline. 211 */ 212 int yy_is_interactive; 213 214 /* Whether we're considered to be at the beginning of a line. 215 * If so, '^' rules will be active on the next match, otherwise 216 * not. 217 */ 218 int yy_at_bol; 219 220 int yy_bs_lineno; /**< The line count. */ 221 int yy_bs_column; /**< The column count. */ 222 223 /* Whether to try to fill the input buffer when we reach the 224 * end of it. 225 */ 226 int yy_fill_buffer; 227 228 int yy_buffer_status; 229 230 }; 231 #endif /* !YY_STRUCT_YY_BUFFER_STATE */ 232 233 void fts0brestart (FILE *input_file ,yyscan_t yyscanner ); 234 void fts0b_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); 235 YY_BUFFER_STATE fts0b_create_buffer (FILE *file,int size ,yyscan_t yyscanner ); 236 void fts0b_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); 237 void fts0b_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); 238 void fts0bpush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); 239 void fts0bpop_buffer_state (yyscan_t yyscanner ); 240 241 YY_BUFFER_STATE fts0b_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); 242 YY_BUFFER_STATE fts0b_scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); 243 YY_BUFFER_STATE fts0b_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); 244 245 void *fts0balloc (yy_size_t ,yyscan_t yyscanner ); 246 void *fts0brealloc (void *,yy_size_t ,yyscan_t yyscanner ); 247 void fts0bfree (void * ,yyscan_t yyscanner ); 248 249 /* Begin user sect3 */ 250 251 #define fts0bwrap(n) 1 252 #define YY_SKIP_YYWRAP 253 254 #define yytext_ptr yytext_r 255 256 #ifdef YY_HEADER_EXPORT_START_CONDITIONS 257 #define INITIAL 0 258 259 #endif 260 261 #ifndef YY_NO_UNISTD_H 262 /* Special case for "unistd.h", since it is non-ANSI. We include it way 263 * down here because we want the user's section 1 to have been scanned first. 264 * The user has a chance to override it with an option. 265 */ 266 #include <unistd.h> 267 #endif 268 269 #ifndef YY_EXTRA_TYPE 270 #define YY_EXTRA_TYPE void * 271 #endif 272 273 int fts0blex_init (yyscan_t* scanner); 274 275 int fts0blex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); 276 277 /* Accessor methods to globals. 278 These are made visible to non-reentrant scanners for convenience. */ 279 280 int fts0blex_destroy (yyscan_t yyscanner ); 281 282 int fts0bget_debug (yyscan_t yyscanner ); 283 284 void fts0bset_debug (int debug_flag ,yyscan_t yyscanner ); 285 286 YY_EXTRA_TYPE fts0bget_extra (yyscan_t yyscanner ); 287 288 void fts0bset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); 289 290 FILE *fts0bget_in (yyscan_t yyscanner ); 291 292 void fts0bset_in (FILE * in_str ,yyscan_t yyscanner ); 293 294 FILE *fts0bget_out (yyscan_t yyscanner ); 295 296 void fts0bset_out (FILE * out_str ,yyscan_t yyscanner ); 297 298 int fts0bget_leng (yyscan_t yyscanner ); 299 300 char *fts0bget_text (yyscan_t yyscanner ); 301 302 int fts0bget_lineno (yyscan_t yyscanner ); 303 304 void fts0bset_lineno (int line_number ,yyscan_t yyscanner ); 305 306 /* Macros after this point can all be overridden by user definitions in 307 * section 1. 308 */ 309 310 #ifndef YY_SKIP_YYWRAP 311 #ifdef __cplusplus 312 extern "C" int fts0bwrap (yyscan_t yyscanner ); 313 #else 314 extern int fts0bwrap (yyscan_t yyscanner ); 315 #endif 316 #endif 317 318 #ifndef yytext_ptr 319 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); 320 #endif 321 322 #ifdef YY_NEED_STRLEN 323 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); 324 #endif 325 326 #ifndef YY_NO_INPUT 327 328 #endif 329 330 /* Amount of stuff to slurp up with each read. */ 331 #ifndef YY_READ_BUF_SIZE 332 #ifdef __ia64__ 333 /* On IA-64, the buffer size is 16k, not 8k */ 334 #define YY_READ_BUF_SIZE 16384 335 #else 336 #define YY_READ_BUF_SIZE 8192 337 #endif /* __ia64__ */ 338 #endif 339 340 /* Number of entries by which start-condition stack grows. */ 341 #ifndef YY_START_STACK_INCR 342 #define YY_START_STACK_INCR 25 343 #endif 344 345 /* Default declaration of generated scanner - a define so the user can 346 * easily add parameters. 347 */ 348 #ifndef YY_DECL 349 #define YY_DECL_IS_OURS 1 350 351 extern int fts0blex (yyscan_t yyscanner); 352 353 #define YY_DECL int fts0blex (yyscan_t yyscanner) 354 #endif /* !YY_DECL */ 355 356 /* yy_get_previous_state - get the state just before the EOB char was reached */ 357 358 #undef YY_NEW_FILE 359 #undef YY_FLUSH_BUFFER 360 #undef yy_set_bol 361 #undef yy_new_buffer 362 #undef yy_set_interactive 363 #undef YY_DO_BEFORE_ACTION 364 365 #ifdef YY_DECL_IS_OURS 366 #undef YY_DECL_IS_OURS 367 #undef YY_DECL 368 #endif 369 370 #line 74 "fts0blex.l" 371 372 373 #line 348 "../include/fts0blex.h" 374 #undef fts0bIN_HEADER 375 #endif /* fts0bHEADER_H */ 376