diff options
| author | Grant Likely <grant.likely@linaro.org> | 2013-06-13 08:00:43 -0400 |
|---|---|---|
| committer | Grant Likely <grant.likely@linaro.org> | 2013-06-13 17:12:14 -0400 |
| commit | 2a6a08ca5e3561e17346f8f87ce8dc88c0a8e42d (patch) | |
| tree | 6e5bfd471ac7daafe28690aa04a4e36e1fd545b1 /scripts | |
| parent | d25d86949b6799c35d78f4910498c2b65a3f0841 (diff) | |
dtc: Update generated files to output from Bison 2.5
This patch merely updates the generated dtc parser and lexer files to
the output generated by Bison 2.5. The previous versions were generated
from version 2.4.1. The only reason for this commit is to minimize the
diff on the next commit which fixes a bug in the DTC #line directive
parsing. Otherwise the Bison changes would be intermingled with the
functional changes.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/dtc/dtc-parser.tab.c_shipped | 715 | ||||
| -rw-r--r-- | scripts/dtc/dtc-parser.tab.h_shipped | 14 |
2 files changed, 388 insertions, 341 deletions
diff --git a/scripts/dtc/dtc-parser.tab.c_shipped b/scripts/dtc/dtc-parser.tab.c_shipped index 4af55900a15b..ee1d8c3042fb 100644 --- a/scripts/dtc/dtc-parser.tab.c_shipped +++ b/scripts/dtc/dtc-parser.tab.c_shipped | |||
| @@ -1,10 +1,8 @@ | |||
| 1 | /* A Bison parser, made by GNU Bison 2.5. */ | ||
| 1 | 2 | ||
| 2 | /* A Bison parser, made by GNU Bison 2.4.1. */ | 3 | /* Bison implementation for Yacc-like parsers in C |
| 3 | |||
| 4 | /* Skeleton implementation for Bison's Yacc-like parsers in C | ||
| 5 | 4 | ||
| 6 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 | 5 | Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. |
| 7 | Free Software Foundation, Inc. | ||
| 8 | 6 | ||
| 9 | This program is free software: you can redistribute it and/or modify | 7 | This program is free software: you can redistribute it and/or modify |
| 10 | it under the terms of the GNU General Public License as published by | 8 | it under the terms of the GNU General Public License as published by |
| @@ -46,7 +44,7 @@ | |||
| 46 | #define YYBISON 1 | 44 | #define YYBISON 1 |
| 47 | 45 | ||
| 48 | /* Bison version. */ | 46 | /* Bison version. */ |
| 49 | #define YYBISON_VERSION "2.4.1" | 47 | #define YYBISON_VERSION "2.5" |
| 50 | 48 | ||
| 51 | /* Skeleton name. */ | 49 | /* Skeleton name. */ |
| 52 | #define YYSKELETON_NAME "yacc.c" | 50 | #define YYSKELETON_NAME "yacc.c" |
| @@ -67,7 +65,7 @@ | |||
| 67 | 65 | ||
| 68 | /* Copy the first part of user declarations. */ | 66 | /* Copy the first part of user declarations. */ |
| 69 | 67 | ||
| 70 | /* Line 189 of yacc.c */ | 68 | /* Line 268 of yacc.c */ |
| 71 | #line 21 "dtc-parser.y" | 69 | #line 21 "dtc-parser.y" |
| 72 | 70 | ||
| 73 | #include <stdio.h> | 71 | #include <stdio.h> |
| @@ -88,8 +86,8 @@ static unsigned long long eval_literal(const char *s, int base, int bits); | |||
| 88 | static unsigned char eval_char_literal(const char *s); | 86 | static unsigned char eval_char_literal(const char *s); |
| 89 | 87 | ||
| 90 | 88 | ||
| 91 | /* Line 189 of yacc.c */ | 89 | /* Line 268 of yacc.c */ |
| 92 | #line 93 "dtc-parser.tab.c" | 90 | #line 91 "dtc-parser.tab.c" |
| 93 | 91 | ||
| 94 | /* Enabling traces. */ | 92 | /* Enabling traces. */ |
| 95 | #ifndef YYDEBUG | 93 | #ifndef YYDEBUG |
| @@ -147,7 +145,7 @@ static unsigned char eval_char_literal(const char *s); | |||
| 147 | typedef union YYSTYPE | 145 | typedef union YYSTYPE |
| 148 | { | 146 | { |
| 149 | 147 | ||
| 150 | /* Line 214 of yacc.c */ | 148 | /* Line 293 of yacc.c */ |
| 151 | #line 40 "dtc-parser.y" | 149 | #line 40 "dtc-parser.y" |
| 152 | 150 | ||
| 153 | char *propnodename; | 151 | char *propnodename; |
| @@ -171,8 +169,8 @@ typedef union YYSTYPE | |||
| 171 | 169 | ||
| 172 | 170 | ||
| 173 | 171 | ||
| 174 | /* Line 214 of yacc.c */ | 172 | /* Line 293 of yacc.c */ |
| 175 | #line 176 "dtc-parser.tab.c" | 173 | #line 174 "dtc-parser.tab.c" |
| 176 | } YYSTYPE; | 174 | } YYSTYPE; |
| 177 | # define YYSTYPE_IS_TRIVIAL 1 | 175 | # define YYSTYPE_IS_TRIVIAL 1 |
| 178 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ | 176 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| @@ -183,8 +181,8 @@ typedef union YYSTYPE | |||
| 183 | /* Copy the second part of user declarations. */ | 181 | /* Copy the second part of user declarations. */ |
| 184 | 182 | ||
| 185 | 183 | ||
| 186 | /* Line 264 of yacc.c */ | 184 | /* Line 343 of yacc.c */ |
| 187 | #line 188 "dtc-parser.tab.c" | 185 | #line 186 "dtc-parser.tab.c" |
| 188 | 186 | ||
| 189 | #ifdef short | 187 | #ifdef short |
| 190 | # undef short | 188 | # undef short |
| @@ -234,7 +232,7 @@ typedef short int yytype_int16; | |||
| 234 | #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) | 232 | #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
| 235 | 233 | ||
| 236 | #ifndef YY_ | 234 | #ifndef YY_ |
| 237 | # if YYENABLE_NLS | 235 | # if defined YYENABLE_NLS && YYENABLE_NLS |
| 238 | # if ENABLE_NLS | 236 | # if ENABLE_NLS |
| 239 | # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ | 237 | # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
| 240 | # define YY_(msgid) dgettext ("bison-runtime", msgid) | 238 | # define YY_(msgid) dgettext ("bison-runtime", msgid) |
| @@ -287,11 +285,11 @@ YYID (yyi) | |||
| 287 | # define alloca _alloca | 285 | # define alloca _alloca |
| 288 | # else | 286 | # else |
| 289 | # define YYSTACK_ALLOC alloca | 287 | # define YYSTACK_ALLOC alloca |
| 290 | # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ | 288 | # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
| 291 | || defined __cplusplus || defined _MSC_VER) | 289 | || defined __cplusplus || defined _MSC_VER) |
| 292 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ | 290 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 293 | # ifndef _STDLIB_H | 291 | # ifndef EXIT_SUCCESS |
| 294 | # define _STDLIB_H 1 | 292 | # define EXIT_SUCCESS 0 |
| 295 | # endif | 293 | # endif |
| 296 | # endif | 294 | # endif |
| 297 | # endif | 295 | # endif |
| @@ -314,24 +312,24 @@ YYID (yyi) | |||
| 314 | # ifndef YYSTACK_ALLOC_MAXIMUM | 312 | # ifndef YYSTACK_ALLOC_MAXIMUM |
| 315 | # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM | 313 | # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
| 316 | # endif | 314 | # endif |
| 317 | # if (defined __cplusplus && ! defined _STDLIB_H \ | 315 | # if (defined __cplusplus && ! defined EXIT_SUCCESS \ |
| 318 | && ! ((defined YYMALLOC || defined malloc) \ | 316 | && ! ((defined YYMALLOC || defined malloc) \ |
| 319 | && (defined YYFREE || defined free))) | 317 | && (defined YYFREE || defined free))) |
| 320 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ | 318 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 321 | # ifndef _STDLIB_H | 319 | # ifndef EXIT_SUCCESS |
| 322 | # define _STDLIB_H 1 | 320 | # define EXIT_SUCCESS 0 |
| 323 | # endif | 321 | # endif |
| 324 | # endif | 322 | # endif |
| 325 | # ifndef YYMALLOC | 323 | # ifndef YYMALLOC |
| 326 | # define YYMALLOC malloc | 324 | # define YYMALLOC malloc |
| 327 | # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ | 325 | # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
| 328 | || defined __cplusplus || defined _MSC_VER) | 326 | || defined __cplusplus || defined _MSC_VER) |
| 329 | void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ | 327 | void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
| 330 | # endif | 328 | # endif |
| 331 | # endif | 329 | # endif |
| 332 | # ifndef YYFREE | 330 | # ifndef YYFREE |
| 333 | # define YYFREE free | 331 | # define YYFREE free |
| 334 | # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ | 332 | # if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
| 335 | || defined __cplusplus || defined _MSC_VER) | 333 | || defined __cplusplus || defined _MSC_VER) |
| 336 | void free (void *); /* INFRINGES ON USER NAME SPACE */ | 334 | void free (void *); /* INFRINGES ON USER NAME SPACE */ |
| 337 | # endif | 335 | # endif |
| @@ -360,23 +358,7 @@ union yyalloc | |||
| 360 | ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ | 358 | ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ |
| 361 | + YYSTACK_GAP_MAXIMUM) | 359 | + YYSTACK_GAP_MAXIMUM) |
| 362 | 360 | ||
| 363 | /* Copy COUNT objects from FROM to TO. The source and destination do | 361 | # define YYCOPY_NEEDED 1 |
| 364 | not overlap. */ | ||
| 365 | # ifndef YYCOPY | ||
| 366 | # if defined __GNUC__ && 1 < __GNUC__ | ||
| 367 | # define YYCOPY(To, From, Count) \ | ||
| 368 | __builtin_memcpy (To, From, (Count) * sizeof (*(From))) | ||
| 369 | # else | ||
| 370 | # define YYCOPY(To, From, Count) \ | ||
| 371 | do \ | ||
| 372 | { \ | ||
| 373 | YYSIZE_T yyi; \ | ||
| 374 | for (yyi = 0; yyi < (Count); yyi++) \ | ||
| 375 | (To)[yyi] = (From)[yyi]; \ | ||
| 376 | } \ | ||
| 377 | while (YYID (0)) | ||
| 378 | # endif | ||
| 379 | # endif | ||
| 380 | 362 | ||
| 381 | /* Relocate STACK from its old location to the new one. The | ||
