diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/genksyms/lex.c_shipped | 133 | ||||
| -rw-r--r-- | scripts/genksyms/lex.l | 2 |
2 files changed, 88 insertions, 47 deletions
diff --git a/scripts/genksyms/lex.c_shipped b/scripts/genksyms/lex.c_shipped index 2a176988d468..2ac23bcca5b5 100644 --- a/scripts/genksyms/lex.c_shipped +++ b/scripts/genksyms/lex.c_shipped | |||
| @@ -6,10 +6,19 @@ | |||
| 6 | 6 | ||
| 7 | /* A lexical scanner generated by flex */ | 7 | /* A lexical scanner generated by flex */ |
| 8 | 8 | ||
| 9 | /* %not-for-header */ | ||
| 10 | |||
| 11 | /* %if-c-only */ | ||
| 12 | /* %if-not-reentrant */ | ||
| 13 | |||
| 14 | /* %endif */ | ||
| 15 | /* %endif */ | ||
| 16 | /* %ok-for-header */ | ||
| 17 | |||
| 9 | #define FLEX_SCANNER | 18 | #define FLEX_SCANNER |
| 10 | #define YY_FLEX_MAJOR_VERSION 2 | 19 | #define YY_FLEX_MAJOR_VERSION 2 |
| 11 | #define YY_FLEX_MINOR_VERSION 5 | 20 | #define YY_FLEX_MINOR_VERSION 5 |
| 12 | #define YY_FLEX_SUBMINOR_VERSION 33 | 21 | #define YY_FLEX_SUBMINOR_VERSION 35 |
| 13 | #if YY_FLEX_SUBMINOR_VERSION > 0 | 22 | #if YY_FLEX_SUBMINOR_VERSION > 0 |
| 14 | #define FLEX_BETA | 23 | #define FLEX_BETA |
| 15 | #endif | 24 | #endif |
| @@ -47,7 +56,7 @@ | |||
| 47 | 56 | ||
| 48 | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ | 57 | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
| 49 | 58 | ||
| 50 | #if __STDC_VERSION__ >= 199901L | 59 | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
| 51 | 60 | ||
| 52 | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, | 61 | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
| 53 | * if you want the limit (max/min) macros for int types. | 62 | * if you want the limit (max/min) macros for int types. |
| @@ -70,7 +79,6 @@ typedef int flex_int32_t; | |||
| 70 | typedef unsigned char flex_uint8_t; | 79 | typedef unsigned char flex_uint8_t; |
| 71 | typedef unsigned short int flex_uint16_t; | 80 | typedef unsigned short int flex_uint16_t; |
| 72 | typedef unsigned int flex_uint32_t; | 81 | typedef unsigned int flex_uint32_t; |
| 73 | #endif /* ! C99 */ | ||
| 74 | 82 | ||
| 75 | /* Limits of integral types. */ | 83 | /* Limits of integral types. */ |
| 76 | #ifndef INT8_MIN | 84 | #ifndef INT8_MIN |
| @@ -101,6 +109,8 @@ typedef unsigned int flex_uint32_t; | |||
| 101 | #define UINT32_MAX (4294967295U) | 109 | #define UINT32_MAX (4294967295U) |
| 102 | #endif | 110 | #endif |
| 103 | 111 | ||
| 112 | #endif /* ! C99 */ | ||
| 113 | |||
| 104 | #endif /* ! FLEXINT_H */ | 114 | #endif /* ! FLEXINT_H */ |
| 105 | 115 | ||
| 106 | /* %endif */ | 116 | /* %endif */ |
| @@ -115,11 +125,12 @@ typedef unsigned int flex_uint32_t; | |||
| 115 | 125 | ||
| 116 | #else /* ! __cplusplus */ | 126 | #else /* ! __cplusplus */ |
| 117 | 127 | ||
| 118 | #if __STDC__ | 128 | /* C99 requires __STDC__ to be defined as 1. */ |
| 129 | #if defined (__STDC__) | ||
| 119 | 130 | ||
| 120 | #define YY_USE_CONST | 131 | #define YY_USE_CONST |
| 121 | 132 | ||
| 122 | #endif /* __STDC__ */ | 133 | #endif /* defined (__STDC__) */ |
| 123 | #endif /* ! __cplusplus */ | 134 | #endif /* ! __cplusplus */ |
| 124 | 135 | ||
| 125 | #ifdef YY_USE_CONST | 136 | #ifdef YY_USE_CONST |
| @@ -218,14 +229,9 @@ extern FILE *yyin, *yyout; | |||
| 218 | 229 | ||
| 219 | #define unput(c) yyunput( c, (yytext_ptr) ) | 230 | #define unput(c) yyunput( c, (yytext_ptr) ) |
| 220 | 231 | ||
| 221 | /* The following is because we cannot portably get our hands on size_t | ||
| 222 | * (without autoconf's help, which isn't available because we want | ||
| 223 | * flex-generated scanners to compile on their own). | ||
| 224 | */ | ||
| 225 | |||
| 226 | #ifndef YY_TYPEDEF_YY_SIZE_T | 232 | #ifndef YY_TYPEDEF_YY_SIZE_T |
| 227 | #define YY_TYPEDEF_YY_SIZE_T | 233 | #define YY_TYPEDEF_YY_SIZE_T |
| 228 | typedef unsigned int yy_size_t; | 234 | typedef size_t yy_size_t; |
| 229 | #endif | 235 | #endif |
| 230 | 236 | ||
| 231 | #ifndef YY_STRUCT_YY_BUFFER_STATE | 237 | #ifndef YY_STRUCT_YY_BUFFER_STATE |
| @@ -401,7 +407,7 @@ void yyfree (void * ); | |||
| 401 | /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */ | 407 | /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */ |
| 402 | /* Begin user sect3 */ | 408 | /* Begin user sect3 */ |
| 403 | 409 | ||
| 404 | #define yywrap() 1 | 410 | #define yywrap(n) 1 |
| 405 | #define YY_SKIP_YYWRAP | 411 | #define YY_SKIP_YYWRAP |
| 406 | 412 | ||
| 407 | #define FLEX_DEBUG | 413 | #define FLEX_DEBUG |
| @@ -613,8 +619,8 @@ int yy_flex_debug = 1; | |||
| 613 | 619 | ||
| 614 | static yyconst flex_int16_t yy_rule_linenum[13] = | 620 | static yyconst flex_int16_t yy_rule_linenum[13] = |
| 615 | { 0, | 621 | { 0, |
| 616 | 69, 70, 71, 74, 77, 78, 79, 85, 86, 87, | 622 | 71, 72, 73, 76, 79, 80, 81, 87, 88, 89, |
| 617 | 89, 92 | 623 | 91, 94 |
| 618 | } ; | 624 | } ; |
| 619 | 625 | ||
| 620 | /* The intent behind this definition is that it'll catch | 626 | /* The intent behind this definition is that it'll catch |
| @@ -665,7 +671,8 @@ char *yytext; | |||
| 665 | quite so pedantic. */ | 671 | quite so pedantic. */ |
| 666 | 672 | ||
| 667 | /* We don't do multiple input files. */ | 673 | /* We don't do multiple input files. */ |
| 668 | #line 669 "scripts/genksyms/lex.c" | 674 | #define YY_NO_INPUT 1 |
| 675 | #line 676 "scripts/genksyms/lex.c" | ||
| 669 | 676 | ||
| 670 | #define INITIAL 0 | 677 | #define INITIAL 0 |
| 671 | #define V2_TOKENS 1 | 678 | #define V2_TOKENS 1 |
| @@ -695,9 +702,39 @@ static int yy_init_globals (void ); | |||
| 695 | /* %endif */ | 702 | /* %endif */ |
| 696 | /* %if-reentrant */ | 703 | /* %if-reentrant */ |
| 697 | /* %endif */ | 704 | /* %endif */ |
| 705 | /* %endif End reentrant structures and macros. */ | ||
| 706 | |||
| 707 | /* Accessor methods to globals. | ||
| 708 | These are made visible to non-reentrant scanners for convenience. */ | ||
| 709 | |||
| 710 | int yylex_destroy (void ); | ||
| 711 | |||
| 712 | int yyget_debug (void ); | ||
| 713 | |||
| 714 | void yyset_debug (int debug_flag ); | ||
| 715 | |||
| 716 | YY_EXTRA_TYPE yyget_extra (void ); | ||
| 717 | |||
| 718 | void yyset_extra (YY_EXTRA_TYPE user_defined ); | ||
| 719 | |||
| 720 | FILE *yyget_in (void ); | ||
| 721 | |||
| 722 | void yyset_in (FILE * in_str ); | ||
| 723 | |||
| 724 | FILE *yyget_out (void ); | ||
| 725 | |||
| 726 | void yyset_out (FILE * out_str ); | ||
| 727 | |||
| 728 | int yyget_leng (void ); | ||
| 729 | |||
| 730 | char *yyget_text (void ); | ||
| 731 | |||
| 732 | int yyget_lineno (void ); | ||
| 733 | |||
| 734 | void yyset_lineno (int line_number ); | ||
| 735 | |||
| 698 | /* %if-bison-bridge */ | 736 | /* %if-bison-bridge */ |
| 699 | /* %endif */ | 737 | /* %endif */ |
| 700 | /* %endif End reentrant structures and macros. */ | ||
| 701 | 738 | ||
| 702 | /* Macros after this point can all be overridden by user definitions in | 739 | /* Macros after this point can all be overridden by user definitions in |
| 703 | * section 1. | 740 | * section 1. |
| @@ -756,7 +793,7 @@ static int input (void ); | |||
| 756 | /* This used to be an fputs(), but since the string might contain NUL's, | 793 | /* This used to be an fputs(), but since the string might contain NUL's, |
| 757 | * we now use fwrite(). | 794 | * we now use fwrite(). |
| 758 | */ | 795 | */ |
| 759 | #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) | 796 | #define ECHO fwrite( yytext, yyleng, 1, yyout ) |
| 760 | /* %endif */ | 797 | /* %endif */ |
| 761 | /* %if-c++-only C++ definition */ | 798 | /* %if-c++-only C++ definition */ |
| 762 | /* %endif */ | 799 | /* %endif */ |
| @@ -881,12 +918,12 @@ YY_DECL | |||
| 881 | register int yy_act; | 918 | register int yy_act; |
| 882 | 919 | ||
| 883 | /* %% [7.0] user's declarations go here */ | 920 | /* %% [7.0] user's declarations go here */ |
| 884 | #line 65 "scripts/genksyms/lex.l" | 921 | #line 67 "scripts/genksyms/lex.l" |
| 885 | 922 | ||
| 886 | 923 | ||
| 887 | 924 | ||
| 888 | /* Keep track of our location in the original source files. */ | 925 | /* Keep track of our location in the original source files. */ |
