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