diff options
| author | Arnaud Lacombe <lacombar@gmail.com> | 2011-05-23 03:01:31 -0400 |
|---|---|---|
| committer | Arnaud Lacombe <lacombar@gmail.com> | 2011-06-09 14:04:47 -0400 |
| commit | edfc86aadad371b76d95b11d0bc8eb36c2376d1e (patch) | |
| tree | 1e6c83e796aee31877380afd6cc8bec6df96cee4 /scripts/dtc | |
| parent | 95abef888a3173539c0f12d0c1055e6eb6ffbc89 (diff) | |
dtc: regen parser
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Diffstat (limited to 'scripts/dtc')
| -rw-r--r-- | scripts/dtc/dtc-lexer.lex.c_shipped | 59 | ||||
| -rw-r--r-- | scripts/dtc/dtc-parser.tab.c_shipped | 116 | ||||
| -rw-r--r-- | scripts/dtc/dtc-parser.tab.h_shipped | 11 |
3 files changed, 25 insertions, 161 deletions
diff --git a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped index 50c4420b4b2c..8bbe12817050 100644 --- a/scripts/dtc/dtc-lexer.lex.c_shipped +++ b/scripts/dtc/dtc-lexer.lex.c_shipped | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #line 2 "dtc-lexer.lex.c" | ||
| 2 | 1 | ||
| 3 | #line 4 "dtc-lexer.lex.c" | 2 | #line 3 "scripts/dtc/dtc-lexer.lex.c_shipped" |
| 4 | 3 | ||
| 5 | #define YY_INT_ALIGNED short int | 4 | #define YY_INT_ALIGNED short int |
| 6 | 5 | ||
| @@ -54,6 +53,7 @@ typedef int flex_int32_t; | |||
| 54 | typedef unsigned char flex_uint8_t; | 53 | typedef unsigned char flex_uint8_t; |
| 55 | typedef unsigned short int flex_uint16_t; | 54 | typedef unsigned short int flex_uint16_t; |
| 56 | typedef unsigned int flex_uint32_t; | 55 | typedef unsigned int flex_uint32_t; |
| 56 | #endif /* ! C99 */ | ||
| 57 | 57 | ||
| 58 | /* Limits of integral types. */ | 58 | /* Limits of integral types. */ |
| 59 | #ifndef INT8_MIN | 59 | #ifndef INT8_MIN |
| @@ -84,8 +84,6 @@ typedef unsigned int flex_uint32_t; | |||
| 84 | #define UINT32_MAX (4294967295U) | 84 | #define UINT32_MAX (4294967295U) |
| 85 | #endif | 85 | #endif |
| 86 | 86 | ||
| 87 | #endif /* ! C99 */ | ||
| 88 | |||
| 89 | #endif /* ! FLEXINT_H */ | 87 | #endif /* ! FLEXINT_H */ |
| 90 | 88 | ||
| 91 | #ifdef __cplusplus | 89 | #ifdef __cplusplus |
| @@ -142,15 +140,7 @@ typedef unsigned int flex_uint32_t; | |||
| 142 | 140 | ||
| 143 | /* Size of default input buffer. */ | 141 | /* Size of default input buffer. */ |
| 144 | #ifndef YY_BUF_SIZE | 142 | #ifndef YY_BUF_SIZE |
| 145 | #ifdef __ia64__ | ||
| 146 | /* On IA-64, the buffer size is 16k, not 8k. | ||
| 147 | * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. | ||
| 148 | * Ditto for the __ia64__ case accordingly. | ||
| 149 | */ | ||
| 150 | #define YY_BUF_SIZE 32768 | ||
| 151 | #else | ||
| 152 | #define YY_BUF_SIZE 16384 | 143 | #define YY_BUF_SIZE 16384 |
| 153 | #endif /* __ia64__ */ | ||
| 154 | #endif | 144 | #endif |
| 155 | 145 | ||
| 156 | /* The state buf must be large enough to hold one state per character in the main buffer. | 146 | /* The state buf must be large enough to hold one state per character in the main buffer. |
| @@ -550,7 +540,6 @@ int yy_flex_debug = 0; | |||
| 550 | #define YY_MORE_ADJ 0 | 540 | #define YY_MORE_ADJ 0 |
| 551 | #define YY_RESTORE_YY_MORE_OFFSET | 541 | #define YY_RESTORE_YY_MORE_OFFSET |
| 552 | char *yytext; | 542 | char *yytext; |
| 553 | #line 1 "dtc-lexer.l" | ||
| 554 | /* | 543 | /* |
| 555 | * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. | 544 | * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005. |
| 556 | * | 545 | * |
| @@ -572,10 +561,6 @@ char *yytext; | |||
| 572 | */ | 561 | */ |
| 573 | #define YY_NO_INPUT 1 | 562 | #define YY_NO_INPUT 1 |
| 574 | 563 | ||
| 575 | |||
| 576 | |||
| 577 | |||
| 578 | #line 37 "dtc-lexer.l" | ||
| 579 | #include "dtc.h" | 564 | #include "dtc.h" |
| 580 | #include "srcpos.h" | 565 | #include "srcpos.h" |
| 581 | #include "dtc-parser.tab.h" | 566 | #include "dtc-parser.tab.h" |
| @@ -603,7 +588,6 @@ static int dts_version = 1; | |||
| 603 | 588 | ||
| 604 | static void push_input_file(const char *filename); | 589 | static void push_input_file(const char *filename); |
| 605 | static int pop_input_file(void); | 590 | static int pop_input_file(void); |
| 606 | #line 607 "dtc-lexer.lex.c" | ||
| 607 | 591 | ||
| 608 | #define INITIAL 0 | 592 | #define INITIAL 0 |
| 609 | #define INCLUDE 1 | 593 | #define INCLUDE 1 |
| @@ -686,12 +670,7 @@ static int input (void ); | |||
| 686 | 670 | ||
| 687 | /* Amount of stuff to slurp up with each read. */ | 671 | /* Amount of stuff to slurp up with each read. */ |
| 688 | #ifndef YY_READ_BUF_SIZE | 672 | #ifndef YY_READ_BUF_SIZE |
| 689 | #ifdef __ia64__ | ||
| 690 | /* On IA-64, the buffer size is 16k, not 8k */ | ||
| 691 | #define YY_READ_BUF_SIZE 16384 | ||
| 692 | #else | ||
| 693 | #define YY_READ_BUF_SIZE 8192 | 673 | #define YY_READ_BUF_SIZE 8192 |
| 694 | #endif /* __ia64__ */ | ||
| 695 | #endif | 674 | #endif |
| 696 | 675 | ||
| 697 | /* Copy whatever the last rule matched to the standard output. */ | 676 | /* Copy whatever the last rule matched to the standard output. */ |
| @@ -710,7 +689,7 @@ static int input (void ); | |||
| 710 | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ | 689 | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
| 711 | { \ | 690 | { \ |
| 712 | int c = '*'; \ | 691 | int c = '*'; \ |
| 713 | size_t n; \ | 692 | unsigned n; \ |
| 714 | for ( n = 0; n < max_size && \ | 693 | for ( n = 0; n < max_size && \ |
| 715 | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ | 694 | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
| 716 | buf[n] = (char) c; \ | 695 | buf[n] = (char) c; \ |
| @@ -792,10 +771,6 @@ YY_DECL | |||
| 792 | register char *yy_cp, *yy_bp; | 771 | register char *yy_cp, *yy_bp; |
| 793 | register int yy_act; | 772 | register int yy_act; |
| 794 | 773 | ||
| 795 | #line 66 "dtc-lexer.l" | ||
| 796 | |||
| 797 | #line 798 "dtc-lexer.lex.c" | ||
| 798 | |||
| 799 | if ( !(yy_init) ) | 774 | if ( !(yy_init) ) |
| 800 | { | 775 | { |
| 801 | (yy_init) = 1; | 776 | (yy_init) = 1; |
| @@ -876,7 +851,6 @@ do_action: /* This label is used only to access EOF actions. */ | |||
| 876 | case 1: | 851 | case 1: |
| 877 | /* rule 1 can match eol */ | 852 | /* rule 1 can match eol */ |
| 878 | YY_RULE_SETUP | 853 | YY_RULE_SETUP |
| 879 | #line 67 "dtc-lexer.l" | ||
| 880 | { | 854 | { |
| 881 | char *name = strchr(yytext, '\"') + 1; | 855 | char *name = strchr(yytext, '\"') + 1; |
| 882 | yytext[yyleng-1] = '\0'; | 856 | yytext[yyleng-1] = '\0'; |
| @@ -888,7 +862,6 @@ case YY_STATE_EOF(INCLUDE): | |||
| 888 | case YY_STATE_EOF(BYTESTRING): | 862 | case YY_STATE_EOF(BYTESTRING): |
| 889 | case YY_STATE_EOF(PROPNODENAME): | 863 | case YY_STATE_EOF(PROPNODENAME): |
| 890 | case YY_STATE_EOF(V1): | 864 | case YY_STATE_EOF(V1): |
| 891 | #line 73 "dtc-lexer.l" | ||
| 892 | { | 865 | { |
| 893 | if (!pop_input_file()) { | 866 | if (!pop_input_file()) { |
| 894 | yyterminate(); | 867 | yyterminate(); |
| @@ -898,7 +871,6 @@ case YY_STATE_EOF(V1): | |||
| 898 | case 2: | 871 | case 2: |
| 899 | /* rule 2 can match eol */ | 872 | /* rule 2 can match eol */ |
| 900 | YY_RULE_SETUP | 873 | YY_RULE_SETUP |
| 901 | #line 79 "dtc-lexer.l" | ||
| 902 | { | 874 | { |
| 903 | DPRINT("String: %s\n", yytext); | 875 | DPRINT("String: %s\n", yytext); |
| 904 | yylval.data = data_copy_escape_string(yytext+1, | 876 | yylval.data = data_copy_escape_string(yytext+1, |
| @@ -908,7 +880,6 @@ YY_RULE_SETUP | |||
| 908 | YY_BREAK | 880 | YY_BREAK |
| 909 | case 3: | 881 | case 3: |
| 910 | YY_RULE_SETUP | 882 | YY_RULE_SETUP |
| 911 | #line 86 "dtc-lexer.l" | ||
| 912 | { | 883 | { |
| 913 | DPRINT("Keyword: /dts-v1/\n"); | 884 | DPRINT("Keyword: /dts-v1/\n"); |
| 914 | dts_version = 1; | 885 | dts_version = 1; |
| @@ -918,7 +889,6 @@ YY_RULE_SETUP | |||
| 918 | YY_BREAK | 889 | YY_BREAK |
| 919 | case 4: | 890 | case 4: |
| 920 | YY_RULE_SETUP | 891 | YY_RULE_SETUP |
| 921 | #line 93 "dtc-lexer.l" | ||
| 922 | { | 892 | { |
| 923 | DPRINT("Keyword: /memreserve/\n"); | 893 | DPRINT("Keyword: /memreserve/\n"); |
| 924 | BEGIN_DEFAULT(); | 894 | BEGIN_DEFAULT(); |
| @@ -927,7 +897,6 @@ YY_RULE_SETUP | |||
| 927 | YY_BREAK | 897 | YY_BREAK |
| 928 | case 5: | 898 | case 5: |
| 929 | YY_RULE_SETUP | 899 | YY_RULE_SETUP |
| 930 | #line 99 "dtc-lexer.l" | ||
| 931 | { | 900 | { |
| 932 | DPRINT("Label: %s\n", yytext); | 901 | DPRINT("Label: %s\n", yytext); |
| 933 | yylval.labelref = xstrdup(yytext); | 902 | yylval.labelref = xstrdup(yytext); |
| @@ -937,7 +906,6 @@ YY_RULE_SETUP | |||
| 937 | YY_BREAK | 906 | YY_BREAK |
| 938 | case 6: | 907 | case 6: |
| 939 | YY_RULE_SETUP | 908 | YY_RULE_SETUP |
| 940 | #line 106 "dtc-lexer.l" | ||
| 941 | { | 909 | { |
| 942 | yylval.literal = xstrdup(yytext); | 910 | yylval.literal = xstrdup(yytext); |
| 943 | DPRINT("Literal: '%s'\n", yylval.literal); | 911 | DPRINT("Literal: '%s'\n", yylval.literal); |
| @@ -946,7 +914,6 @@ YY_RULE_SETUP | |||
| 946 | YY_BREAK | 914 | YY_BREAK |
| 947 | case 7: | ||
