diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-09-01 10:26:32 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@neptun.(none)> | 2007-10-12 21:15:31 +0200 |
commit | 70f75246cf37a97da5e80e98c3ebb64db1f12b35 (patch) | |
tree | c11eb46935caca196c7908f58743a7b56f158823 /scripts/genksyms/parse.c_shipped | |
parent | 3550a516d07dda4786c63e86f64f4f440db58782 (diff) |
kbuild: apply genksyms changes
This patch updates the _shipped files for genksyms.
See previous patch for actual functional changes.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/genksyms/parse.c_shipped')
-rw-r--r-- | scripts/genksyms/parse.c_shipped | 2088 |
1 files changed, 1195 insertions, 893 deletions
diff --git a/scripts/genksyms/parse.c_shipped b/scripts/genksyms/parse.c_shipped index 99d7c258696..3e6079f36b9 100644 --- a/scripts/genksyms/parse.c_shipped +++ b/scripts/genksyms/parse.c_shipped @@ -1,7 +1,9 @@ -/* A Bison parser, made by GNU Bison 2.0. */ +/* A Bison parser, made by GNU Bison 2.3. */ -/* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +/* Skeleton implementation for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,16 +17,24 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ -/* Written by Richard Stallman by simplifying the original so called - ``semantic'' parser. */ +/* C LALR(1) parser skeleton written by Richard Stallman, by + simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local @@ -36,6 +46,9 @@ /* Identify Bison output. */ #define YYBISON 1 +/* Bison version. */ +#define YYBISON_VERSION "2.3" + /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -62,39 +75,41 @@ DOUBLE_KEYW = 264, ENUM_KEYW = 265, EXTERN_KEYW = 266, - FLOAT_KEYW = 267, - INLINE_KEYW = 268, - INT_KEYW = 269, - LONG_KEYW = 270, - REGISTER_KEYW = 271, - RESTRICT_KEYW = 272, - SHORT_KEYW = 273, - SIGNED_KEYW = 274, - STATIC_KEYW = 275, - STRUCT_KEYW = 276, - TYPEDEF_KEYW = 277, - UNION_KEYW = 278, - UNSIGNED_KEYW = 279, - VOID_KEYW = 280, - VOLATILE_KEYW = 281, - TYPEOF_KEYW = 282, - EXPORT_SYMBOL_KEYW = 283, - ASM_PHRASE = 284, - ATTRIBUTE_PHRASE = 285, - BRACE_PHRASE = 286, - BRACKET_PHRASE = 287, - EXPRESSION_PHRASE = 288, - CHAR = 289, - DOTS = 290, - IDENT = 291, - INT = 292, - REAL = 293, - STRING = 294, - TYPE = 295, - OTHER = 296, - FILENAME = 297 + EXTENSION_KEYW = 267, + FLOAT_KEYW = 268, + INLINE_KEYW = 269, + INT_KEYW = 270, + LONG_KEYW = 271, + REGISTER_KEYW = 272, + RESTRICT_KEYW = 273, + SHORT_KEYW = 274, + SIGNED_KEYW = 275, + STATIC_KEYW = 276, + STRUCT_KEYW = 277, + TYPEDEF_KEYW = 278, + UNION_KEYW = 279, + UNSIGNED_KEYW = 280, + VOID_KEYW = 281, + VOLATILE_KEYW = 282, + TYPEOF_KEYW = 283, + EXPORT_SYMBOL_KEYW = 284, + ASM_PHRASE = 285, + ATTRIBUTE_PHRASE = 286, + BRACE_PHRASE = 287, + BRACKET_PHRASE = 288, + EXPRESSION_PHRASE = 289, + CHAR = 290, + DOTS = 291, + IDENT = 292, + INT = 293, + REAL = 294, + STRING = 295, + TYPE = 296, + OTHER = 297, + FILENAME = 298 }; #endif +/* Tokens. */ #define ASM_KEYW 258 #define ATTRIBUTE_KEYW 259 #define AUTO_KEYW 260 @@ -104,37 +119,38 @@ #define DOUBLE_KEYW 264 #define ENUM_KEYW 265 #define EXTERN_KEYW 266 -#define FLOAT_KEYW 267 -#define INLINE_KEYW 268 -#define INT_KEYW 269 -#define LONG_KEYW 270 -#define REGISTER_KEYW 271 -#define RESTRICT_KEYW 272 -#define SHORT_KEYW 273 -#define SIGNED_KEYW 274 -#define STATIC_KEYW 275 -#define STRUCT_KEYW 276 -#define TYPEDEF_KEYW 277 -#define UNION_KEYW 278 -#define UNSIGNED_KEYW 279 -#define VOID_KEYW 280 -#define VOLATILE_KEYW 281 -#define TYPEOF_KEYW 282 -#define EXPORT_SYMBOL_KEYW 283 -#define ASM_PHRASE 284 -#define ATTRIBUTE_PHRASE 285 -#define BRACE_PHRASE 286 -#define BRACKET_PHRASE 287 -#define EXPRESSION_PHRASE 288 -#define CHAR 289 -#define DOTS 290 -#define IDENT 291 -#define INT 292 -#define REAL 293 -#define STRING 294 -#define TYPE 295 -#define OTHER 296 -#define FILENAME 297 +#define EXTENSION_KEYW 267 +#define FLOAT_KEYW 268 +#define INLINE_KEYW 269 +#define INT_KEYW 270 +#define LONG_KEYW 271 +#define REGISTER_KEYW 272 +#define RESTRICT_KEYW 273 +#define SHORT_KEYW 274 +#define SIGNED_KEYW 275 +#define STATIC_KEYW 276 +#define STRUCT_KEYW 277 +#define TYPEDEF_KEYW 278 +#define UNION_KEYW 279 +#define UNSIGNED_KEYW 280 +#define VOID_KEYW 281 +#define VOLATILE_KEYW 282 +#define TYPEOF_KEYW 283 +#define EXPORT_SYMBOL_KEYW 284 +#define ASM_PHRASE 285 +#define ATTRIBUTE_PHRASE 286 +#define BRACE_PHRASE 287 +#define BRACKET_PHRASE 288 +#define EXPRESSION_PHRASE 289 +#define CHAR 290 +#define DOTS 291 +#define IDENT 292 +#define INT 293 +#define REAL 294 +#define STRING 295 +#define TYPE 296 +#define OTHER 297 +#define FILENAME 298 @@ -185,7 +201,12 @@ remove_list(struct string_list **pb, struct string_list **pe) # define YYERROR_VERBOSE 0 #endif -#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) +/* Enabling the token table. */ +#ifndef YYTOKEN_TABLE +# define YYTOKEN_TABLE 0 +#endif + +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 @@ -197,17 +218,94 @@ typedef int YYSTYPE; /* Copy the second part of user declarations. */ -/* Line 213 of yacc.c. */ -#line 202 "scripts/genksyms/parse.c" +/* Line 216 of yacc.c. */ +#line 223 "scripts/genksyms/parse.c" + +#ifdef short +# undef short +#endif + +#ifdef YYTYPE_UINT8 +typedef YYTYPE_UINT8 yytype_uint8; +#else +typedef unsigned char yytype_uint8; +#endif + +#ifdef YYTYPE_INT8 +typedef YYTYPE_INT8 yytype_int8; +#elif (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +typedef signed char yytype_int8; +#else +typedef short int yytype_int8; +#endif + +#ifdef YYTYPE_UINT16 +typedef YYTYPE_UINT16 yytype_uint16; +#else +typedef unsigned short int yytype_uint16; +#endif + +#ifdef YYTYPE_INT16 +typedef YYTYPE_INT16 yytype_int16; +#else +typedef short int yytype_int16; +#endif + +#ifndef YYSIZE_T +# ifdef __SIZE_TYPE__ +# define YYSIZE_T __SIZE_TYPE__ +# elif defined size_t +# define YYSIZE_T size_t +# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# else +# define YYSIZE_T unsigned int +# endif +#endif -#if ! defined (yyoverflow) || YYERROR_VERBOSE +#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) -# ifndef YYFREE -# define YYFREE free +#ifndef YY_ +# if YYENABLE_NLS +# if ENABLE_NLS +# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ +# define YY_(msgid) dgettext ("bison-runtime", msgid) +# endif # endif -# ifndef YYMALLOC -# define YYMALLOC malloc +# ifndef YY_ +# define YY_(msgid) msgid # endif +#endif + +/* Suppress unused-variable warnings by "using" E. */ +#if ! defined lint || defined __GNUC__ +# define YYUSE(e) ((void) (e)) +#else +# define YYUSE(e) /* empty */ +#endif + +/* Identity function, used to suppress warnings about constant conditions. */ +#ifndef lint +# define YYID(n) (n) +#else +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static int +YYID (int i) +#else +static int +YYID (i) + int i; +#endif +{ + return i; +} +#endif + +#if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ @@ -215,34 +313,76 @@ typedef int YYSTYPE; # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca +# elif defined __BUILTIN_VA_ARG_INCR +# include <alloca.h> /* INFRINGES ON USER NAME SPACE */ +# elif defined _AIX +# define YYSTACK_ALLOC __alloca +# elif defined _MSC_VER +# include <malloc.h> /* INFRINGES ON USER NAME SPACE */ +# define alloca _alloca # else # define YYSTACK_ALLOC alloca +# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ +# ifndef _STDLIB_H +# define _STDLIB_H 1 +# endif +# endif # endif # endif # endif # ifdef YYSTACK_ALLOC - /* Pacify GCC's `empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) -# else -# if defined (__STDC__) || defined (__cplusplus) -# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) +# ifndef YYSTACK_ALLOC_MAXIMUM + /* The OS might guarantee only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number + to allow for a few compiler-allocated temporary stack slots. */ +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif +# else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM +# endif +# if (defined __cplusplus && ! defined _STDLIB_H \ + && ! ((defined YYMALLOC || defined malloc) \ + && (defined YYFREE || defined free))) +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ +# ifndef _STDLIB_H +# define _STDLIB_H 1 +# endif +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +void free (void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif # endif -#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ +#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ -#if (! defined (yyoverflow) \ - && (! defined (__cplusplus) \ - || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL))) +#if (! defined yyoverflow \ + && (! defined __cplusplus \ + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { - short int yyss; + yytype_int16 yyss; YYSTYPE yyvs; }; @@ -252,24 +392,24 @@ union yyalloc /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ - ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \ + ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY -# if defined (__GNUC__) && 1 < __GNUC__ +# if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ - register YYSIZE_T yyi; \ + YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ - while (0) + while (YYID (0)) # endif # endif @@ -287,53 +427,47 @@ union yyalloc yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ - while (0) + while (YYID (0)) #endif -#if defined (__STDC__) || defined (__cplusplus) - typedef signed char yysigned_char; -#else - typedef short int yysigned_char; -#endif - -/* YYFINAL -- State number of the termination state. */ +/* YYFINAL -- State number of the termination state. */ #define YYFINAL 4 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 535 +#define YYLAST 523 -/* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 52 -/* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 45 -/* YYNRULES -- Number of rules. */ -#define YYNRULES 124 -/* YYNRULES -- Number of states. */ -#define YYNSTATES 174 +/* YYNTOKENS -- Number of terminals. */ +#define YYNTOKENS 53 +/* YYNNTS -- Number of nonterminals. */ +#define YYNNTS 46 +/* YYNRULES -- Number of rules. */ +#define YYNRULES 126 +/* YYNRULES -- Number of states. */ +#define YYNSTATES 178 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 -#define YYMAXUTOK 297 +#define YYMAXUTOK 298 -#define YYTRANSLATE(YYX) \ +#define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ -static const unsigned char yytranslate[] = +static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 46, 48, 47, 2, 45, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 51, 43, - 2, 49, 2, 2, 2, 2, 2, 2, 2, 2, + 47, 49, 48, 2, 46, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 52, 44, + 2, 50, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 50, 2, 44, 2, 2, 2, 2, + 2, 2, 2, 51, 2, 45, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -350,114 +484,116 @@ static const unsigned char yytranslate[] = 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42 + 35, 36, 37, 38, 39, 40, 41, 42, 43 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ -static const unsigned short int yyprhs[] = +static const yytype_uint16 yyprhs[] = { - 0, 0, 3, 5, 8, 9, 12, 13, 17, 19, - 21, 23, 25, 28, 31, 35, 36, 38, 40, 44, - 49, 50, 52, 54, 57, 59, 61, 63, 65, 67, - 69, 71, 73, 75, 81, 86, 89, 92, 95, 99, - 103, 107, 110, 113, 116, 118, 120, 122, 124, 126, - 128, 130, 132, 134, 136, 138, 141, 142, 144, 146, - 149, 151, 153, 155, 157, 160, 162, 164, 169, 174, - 177, 181, 185, 188, 190, 192, 194, 199, 204, 207, - 211, 215, 218, 220, 224, 225, 227, 229, 233, 236, - 239, 241, 242, 244, 246, 251, 256, 259, 263, 267, - 271, 272, 274, 277, 281, 285, 286, 288, 290, 293, - 297, 300, 301, 303, 305, 309, 312, 315, 317, 320, - 321, 323, 326, 327, 329 + 0, 0, 3, 5, 8, 9, 12, 13, 18, 19, + 23, 25, 27, 29, 31, 34, 37, 41, 42, 44, + 46, 50, 55, 56, 58, 60, 63, 65, 67, 69, + 71, 73, 75, 77, 79, 81, 87, 92, 95, 98, + 101, 105, 109, 113, 116, 119, 122, 124, 126, 128, + 130, 132, 134, 136, 138, 140, 142, 144, 147, 148, + 150, 152, 155, 157, 159, 161, 163, 166, 168, 170, + 175, 180, 183, 187, 191, 194, 196, 198, 200, 205, + 210, 213, 217, 221, 224, 226, 230, 231, 233, 235, + 239, 242, 245, 247, 248, 250, 252, 257, 262, 265, + 269, 273, 277, 278, 280, 283, 287, 291, 292, 294, + 296, 299, 303, 306, 307, 309, 311, 315, 318, 321, + 323, 326, 327, 329, 332, 333, 335 }; -/* YYRHS -- A `-1'-separated list of the rules' RHS. */ -static const yysigned_char yyrhs[] = +/* YYRHS -- A `-1'-separated list of the rules' RHS. */ +static const yytype_int8 yyrhs[] = { - 53, 0, -1, 54, -1, 53, 54, -1, -1, 55, - 56, -1, -1, 22, 57, 58, -1, 58, -1, 82, - -1, 94, -1, 96, -1, 1, 43, -1, 1, 44, - -1, 62, 59, 43, -1, -1, 60, -1, 61, -1, - 60, 45, 61, -1, 72, 95, 93, 83, -1, -1, - 63, -1, 64, -1, 63, 64, -1, 65, -1, 66, - -1, 5, -1, 16, -1, 20, -1, 11, -1, 13, - -1, 67, -1, 71, -1, 27, 46, 63, 47, 48, - -1, 27, 46, 63, 48, -1, 21, 36, -1, 23, - 36, -1, 10, 36, -1, 21, 36, 85, -1, 23, - 36, 85, -1, 10, 36, 31, -1, 10, 31, -1, - 21, 85, -1, 23, 85, -1, 7, -1, 18, -1, - 14, -1, 15, -1, 19, -1, 24, -1, 12, -1, - 9, -1, 25, -1, 6, -1, 40, -1, 47, 69, - -1, -1, 70, -1, 71, -1, 70, 71, -1, 8, - -1, 26, -1, 30, -1, 17, -1, 68, 72, -1, - 73, -1, 36, -1, 73, 46, 76, 48, -1, 73, - 46, 1, 48, -1, 73, 32, -1, 46, 72, 48, - -1, 46, 1, 48, -1, 68, 74, -1, 75, -1, - 36, -1, 40, -1, 75, 46, 76, 48, -1, 75, - 46, 1, 48, -1, 75, 32, -1, 46, 74, 48, - -1, 46, 1, 48, -1, 77, 35, -1, 77, -1, - 78, 45, 35, -1, -1, 78, -1, 79, -1, 78, - 45, 79, -1, 63, 80, -1, 68, 80, -1, 81, - -1, -1, 36, -1, 40, -1, 81, 46, 76, 48, - -1, 81, 46, 1, 48, -1, 81, 32, -1, 46, - 80, 48, -1, 46, 1, 48, -1, 62, 72, 31, - -1, -1, 84, -1, 49, 33, -1, 50, 86, 44, - -1, 50, 1, 44, -1, -1, 87, -1, 88, -1, - 87, 88, -1, 62, 89, 43, -1, 1, 43, -1, - -1, 90, -1, 91, -1, 90, 45, 91, -1, 74, - 93, -1, 36, 92, -1, 92, -1, 51, 33, -1, - -1, 30, -1, 29, 43, -1, -1, 29, -1, 28, - 46, 36, 48, 43, -1 + 54, 0, -1, 55, -1, 54, 55, -1, -1, 56, + 57, -1, -1, 12, 23, 58, 60, -1, -1, 23, + 59, 60, -1, 60, -1, 84, -1, 96, -1, 98, + -1, 1, 44, -1, 1, 45, -1, 64, 61, 44, + -1, -1, 62, -1, 63, -1, 62, 46, 63, -1, + 74, 97, 95, 85, -1, -1, 65, -1, 66, -1, + 65, 66, -1, 67, -1, 68, -1, 5, -1, 17, + -1, 21, -1, 11, -1, 14, -1, 69, -1, 73, + -1, 28, 47, 65, 48, 49, -1, 28, 47, 65, + 49, -1, 22, 37, -1, 24, 37, -1, 10, 37, + -1, 22, 37, 87, -1, 24, 37, 87, -1, 10, + 37, 32, -1, 10, 32, -1, 22, 87, -1, 24, + 87, -1, 7, -1, 19, -1, 15, -1, 16, -1, + 20, -1, 25, -1, 13, -1, 9, -1, 26, -1, + 6, -1, 41, -1, 48, 71, -1, -1, 72, -1, + 73, -1, 72, 73, -1, 8, -1, 27, -1, 31, + -1, 18, -1, 70, 74, -1, 75, -1, 37, -1, + 75, 47, 78, 49, -1, 75, 47, 1, 49, -1, + 75, 33, -1, 47, 74, 49, -1, 47, 1, 49, + -1, 70, 76, -1, 77, -1, 37, -1, 41, -1, + 77, 47, 78, 49, -1, 77, 47, 1, 49, -1, + 77, 33, -1, 47, 76, 49, -1, 47, 1, 49, + -1, 79, 36, -1, 79, -1, 80, 46, 36, -1, + -1, 80, -1, 81, -1, 80, 46, 81, -1, 65, + 82, -1, 70, 82, -1, 83, -1, -1, 37, -1, + 41, -1, 83, 47, 78, 49, -1, 83, 47, 1, + 49, -1, 83, 33, -1, 47, 82, 49, -1, 47, + 1, 49, -1, 64, 74, 32, -1, -1, 86, -1, + 50, 34, -1, 51, 88, 45, -1, 51, 1, 45, + -1, -1, 89, -1, 90, -1, 89, 90, -1, 64, + 91, 44, -1, 1, 44, -1, -1, 92, -1, 93, + -1, 92, 46, 93, -1, 76, 95, -1, 37, 94, + -1, 94, -1, 52, 34, -1, -1, 31, -1, 30, + 44, -1, -1, 30, -1, 29, 47, 37, 49, 44, + -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ -static const unsigned short int yyrline[] = +static const yytype_uint16 yyrline[] = { - 0, 102, 102, 103, 107, 107, 113, 113, 115, 116, - 117, 118, 119, 120, 124, 138, 139, 143, 151, 164, - 170, 171, 175, 176, 180, 186, 190, 191, 192, 193, - 194, 198, 199, 200, 201, 205, 207, 209, 213, 220, - 227, 236, 237, 238, 242, 243, 244, 245, 246, 247, - 248, 249, 250, 251, 252, 256, 261, 262, 266, 267, - 271, 271, 271, 272, 280, 281, 285, 294, 296, 298, - 300, 302, 309, 310, 314, 315, 316, 318, 320, 322, - 324, 329, 330, 331, 335, 336, 340, 341, 346, 351, - 353, 357, 358, 366, 370, 372, 374, 376, 378, 383, - 392, 393, 398, 403, 404, 408, 409, 413, 414, 418, - 420, 425, 426, 430, 431, 435, 436, 437, 441, 445, - 446, 450, 454, 455, 459 + 0, 103, 103, 104, 108, 108, 114, 114, 116, 116, + 118, 119, 120, 121, 122, 123, 127, 141, 142, 146, + 154, 167, 173, 174, 178, 179, 183, 189, 193, 194, + 195, 196, 197, 201, 202, 203, 204, 208, 210, 212, + 216, 223, 230, 239, 240, 241, 245, 246, 247, 248, + 249, 250, 251, 252, 253, 254, 255, 259, 264, 265, + 269, 270, 274, 274, 274, 275, 283, 284, 288, 297, + 299, 301, 303, 305, 312, 313, 317, 318, 319, 321, + 323, 325, 327, 332, 333, 334, 338, 339, 343, 344, + 349, 354, 356, 360, 361, 369, 373, 375, 377, 379, + 381, 386, 395, 396, 401, 406, 407, 411, 412, 416, + 417, 421, 423, 428, 429, 433, 434, 438, 439, 440, + 444, 448, 449, 453, 457, 458, 462 }; #endif -#if YYDEBUG || YYERROR_VERBOSE -/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. - First, the terminals, then, starting at YYNTOKENS, nonterminals. */ +#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE +/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. + First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "ASM_KEYW", "ATTRIBUTE_KEYW", "AUTO_KEYW", "BOOL_KEYW", "CHAR_KEYW", "CONST_KEYW", "DOUBLE_KEYW", - "ENUM_KEYW", "EXTERN_KEYW", "FLOAT_KEYW", "INLINE_KEYW", "INT_KEYW", - "LONG_KEYW", "REGISTER_KEYW", "RESTRICT_KEYW", "SHORT_KEYW", - "SIGNED_KEYW", "STATIC_KEYW", "STRUCT_KEYW", "TYPEDEF_KEYW", - "UNION_KEYW", "UNSIGNED_KEYW", "VOID_KEYW", "VOLATILE_KEYW", - "TYPEOF_KEYW", "EXPORT_SYMBOL_KEYW", "ASM_PHRASE", "ATTRIBUTE_PHRASE", - "BRACE_PHRASE", "BRACKET_PHRASE", "EXPRESSION_PHRASE", "CHAR", "DOTS", - "IDENT", "INT", "REAL", "STRING", "TYPE", "OTHER", "FILENAME", "';'", - "'}'", "','", "'('", "'*'", "')'", "'='", "'{'", "':'", "$accept", - "declaration_seq", "declaration", "@1", "declaration1", "@2", - "simple_declaration", "init_declarator_list_opt", "init_declarator_list", - "init_declarator", "decl_specifier_seq_opt", "decl_specifier_seq", - "decl_specifier", "storage_class_specifier", "type_specifier", - "simple_type_specifier", "ptr_operator", "cvar_qualifier_seq_opt", - "cvar_qualifier_seq", "cvar_qualifier", "declarator", - "direct_declarator", "nested_declarator", "direct_nested_declarator", - "parameter_declaration_clause", "parameter_declaration_list_opt", - "parameter_declaration_list", "parameter_declaration", - "m_abstract_declarator", "direct_m_abstract_declarator", - "function_definition", "initializer_opt", "initializer", "class_body", - "member_specification_opt", "member_specification", "member_declaration", + "ENUM_KEYW", "EXTERN_KEYW", "EXTENSION_KEYW", "FLOAT_KEYW", + "INLINE_KEYW", "INT_KEYW", "LONG_KEYW", "REGISTER_KEYW", "RESTRICT_KEYW", + "SHORT_KEYW", "SIGNED_KEYW", "STATIC_KEYW", "STRUCT_KEYW", + "TYPEDEF_KEYW", "UNION_KEYW", "UNSIGNED_KEYW", "VOID_KEYW", + "VOLATILE_KEYW", "TYPEOF_KEYW", "EXPORT_SYMBOL_KEYW", "ASM_PHRASE", + "ATTRIBUTE_PHRASE", "BRACE_PHRASE", "BRACKET_PHRASE", + "EXPRESSION_PHRASE", "CHAR", "DOTS", "IDENT", "INT", "REAL", "STRING", + "TYPE", "OTHER", "FILENAME", "';'", "'}'", "','", "'('", "'*'", "')'", + "'='", "'{'", "':'", "$accept", "declaration_seq", "declaration", "@1", + "declaration1", "@2", "@3", "simple_declaration", + "init_declarator_list_opt", "init_declarator_list", "init_declarator", + "decl_specifier_seq_opt", "decl_specifier_seq", "decl_specifier", + "storage_class_specifier", "type_specifier", "simple_type_specifier", + "ptr_operator", "cvar_qualifier_seq_opt", "cvar_qualifier_seq", + "cvar_qualifier", "declarator", "direct_declarator", "nested_declarator", + "direct_nested_declarator", "parameter_declaration_clause", + "parameter_declaration_list_opt", "parameter_declaration_list", + "parameter_declaration", "m_abstract_declarator", + "direct_m_abstract_declarator", "function_definition", "initializer_opt", + "initializer", "class_body", "member_specification_opt", + "member_specification", "member_declaration", "member_declarator_list_opt", "member_declarator_list", "member_declarator", "member_bitfield_declarator", "attribute_opt", "asm_definition", "asm_phrase_opt", "export_definition", 0 @@ -467,284 +603,266 @@ static const char *const yytname[] = # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ -static const unsigned short int yytoknum[] = +static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, - 295, 296, 297, 59, 125, 44, 40, 42, 41, 61, - 123, 58 + 295, 296, 297, 298, 59, 125, 44, 40, 42, 41, + 61, 123, 58 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const unsigned char yyr1[] = +static const yytype_uint8 yyr1[] = { - 0, 52, 53, 53, 55, 54, 57, 56, 56, 56, - 56, 56, 56, 56, 58, 59, 59, 60, 60, 61, - 62, 62, 63, 63, 64, 64, 65, 65, 65, 65, - 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, - 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, - 67, 67, 67, 67, 67, 68, 69, 69, 70, 70, - 71, 71, 71, 71, 72, 72, 73, 73, 73, 73, - 73, 73, 74, 74, 75, 75, 75, 75, 75, 75, - 75, 76, 76, 76, 77, 77, 78, 78, 79, 80, - 80, 81, 81, 81, 81, 81, 81, 81, 81, 82, - 83, 83, 84, 85, 85, 86, 86, 87, 87, 88, - 88, 89, 89, 90, 90, 91, 91, 91, 92, 93, - 93, 94, 95, 95, 96 + 0, 53, 54, 54, 56, 55, 58, 57, 59, 57, + 57, 57, 57, 57, 57, 57, 60, 61, 61, 62, + 62, 63, 64, 64, 65, 65, 66, 66, 67, 67, + 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, + 68, 68, 68, 68, 68, 68, 69, 69, 69, 69, + 69, 69, 69, 69, 69, 69, 69, 70, 71, 71, + 72, 72, 73, 73, 73, 73, 74, 74, 75, 75, + 75, 75, 75, 75, 76, 76, 77, 77, 77, 77, + 77, 77, 77, 78, 78, 78, 79, 79, 80, 80, + 81, 82, 82, 83, 83, 83, 83, 83, 83, 83, + 83, 84, 85, 85, 86, 87, 87, 88, 88, 89, + 89, 90, 90, 91, 91, 92, 92, 93, 93, 93, + 94, 95, 95, 96, 97, 97, 98 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ -static const unsigned char yyr2[] = +static const yytype_uint8 yyr2[] = { - 0, 2, 1, 2, 0, 2, 0, 3, 1, 1, - 1, 1, 2, 2, 3, 0, 1, 1, 3, 4, - 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 5, 4, 2, 2, 2, 3, 3, - 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 2, 0, 1, 1, 2, - 1, 1, 1, 1, 2, 1, 1, 4, 4, 2, - 3, 3, 2, 1, 1, 1, 4, 4, 2, 3, - 3, 2, 1, 3, 0, 1, 1, 3, 2, 2, - 1, 0, 1, 1, 4, 4, 2, 3, 3, 3, - 0, 1, 2, 3, 3, 0, 1, 1, 2, 3, - 2, 0, 1, 1, 3, 2, 2, 1, 2, 0, - 1, 2, 0, 1, 5 + 0, 2, 1, 2, 0, 2, 0, 4, 0, 3, + 1, 1, 1, 1, 2, 2, 3, 0, 1, 1, + 3, 4, 0, 1, 1, 2, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 5, 4, 2, 2, 2, + 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 2, 0, 1, + 1, 2, 1, 1, 1, 1, 2, 1, 1, 4, + 4, 2, 3, 3, 2, 1, 1, 1, 4, 4, + 2, 3, 3, 2, 1, 3, 0, 1, 1, 3, + 2, 2, 1, 0, 1, 1, 4, 4, 2, 3, + 3, 3, 0, 1, 2, 3, 3, 0, 1, 1, + 2, 3, 2, 0, 1, 1, 3, 2, 2, 1, + 2, 0, 1, 2, 0, 1, 5 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ -static const unsigned char yydefact[] = +static const yytype_uint8 yydefact[] = { - 4, 4, 2, 0, 1, 3, 0, 26, 53, 44, - 60, 51, 0, 29, 50, 30, 46, 47, 27, 63, - 45, 48, 28, 0, 6, 0, 49, 52, 61, 0, - 0, 0, 62, 54, 5, 8, 15, 21, 22, 24, - 25, 31, 32, 9, 10, 11, 12, 13, 41, 37, - 35, 0, 42, 20, 36, 43, 0, 0, 121, 66, - 0, 56, 0, 16, 17, 0, 122, 65, 23, 40, - 38, 0, 111, 0, 0, 107, 7, 15, 39, 0, - 0, 0, 0, 55, 57, 58, 14, 0, 64, 123, - 99, 119, 69, 0, 110, 104, 74, 75, 0, 0, - 0, 119, 73, 0, 112, 113, 117, 103, 0, 108, - 122, 0, 34, 0, 71, 70, 59, 18, 120, 100, - 0, 91, 0, 82, 85, 86, 116, 0, 74, 0, - 118, 72, 115, 78, 0, 109, 0, 33, 124, 0, - 19, 101, 68, 92, 54, 0, 91, 88, 90, 67, - 81, 0, 80, 79, 0, 0, 114, 102, 0, 93, - 0, 89, 96, 0, 83, 87, 77, 76, 98, 97, - 0, 0, 95, 94 + 4, 4, 2, 0, 1, 3, 0, 28, 55, 46, + 62, 53, 0, 31, 0, 52, 32, 48, 49, 29, + 65, 47, 50, 30, 0, 8, 0, 51, 54, 63, + 0, 0, 0, 64, 56, 5, 10, 17, 23, 24, + 26, 27, 33, 34, 11, 12, 13, 14, 15, 43, + 39, 6, 37, 0, 44, 22, 38, 45, 0, 0, + 123, 68, 0, 58, 0, 18, 19, 0, 124, 67, + 25, 42, 22, 40, 0, 113, 0, 0, 109, 9, + 17, 41, 0, 0, 0, 0, 57, 59, 60, 16, + 0, 66, 125, 101, 121, 71, 0, 7, 112, 106, + 76, 77, 0, 0, 0, 121, 75, 0, 114, 115, + 119, 105, 0, 110, 124, 0, 36, 0, 73, 72, + 61, 20, 122, 102, 0, 93, 0, 84, 87, 88, + 118, 0, 76, 0, 120, 74, 117, 80, 0, 111, + 0, 35, 126, 0, 21, 103, 70, 94, 56, 0, + 93, 90, 92, 69, 83, 0, 82, 81, 0, 0, + 116, 104, 0, 95, 0, 91, 98, 0, 85, 89, + 79, 78, 100, 99, 0, 0, 97, 96 }; -/* YYDEFGOTO[NTERM-NUM]. */ -static const short int yydefgoto[] = +/* YYDEFGOTO[NTERM-NUM]. */ +static const yytype_int16 yydefgoto[] = { - -1, 1, 2, 3, 34, 53, 35, 62, 63, 64, - 72, 37, 38, 39, 40, 41, 65, 83, 84, 42, - 110, 67, 101, 102, 122, 123, 124, 125, 147, 148, - 43, 140, 141, 52, 73, 74, 75, 103, 104, 105, - 106, 119, 44, 91, 45 + -1, 1, 2, 3, 35, 72, 55, 36, 64, 65, + 66, 75, 38, 39, 40, 41, 42, 67, 86, 87, + 43, 114, 69, 105, 106, 126, 127, 128, 129, 151, + 152, 44, 144, 145, 54, 76, 77, 78, 107, 108, + 109, 110, 123, 45, 94, 46 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ -#define YYPACT_NINF -128 -static const short int yypact[] = +#define YYPACT_NINF -135 +static const yytype_int16 yypact[] = { - -128, 13, -128, 329, -128, -128, 36, -128, -128, -128, - -128, -128, -16, -128, -128, -128, -128, -128, -128, -128, - -128, -128, -128, -25, -128, -24, -128, -128, -128, -29, - -4, -22, -128, -128, -128, -128, -28, 495, -128, -128, - -128, -128, -128, -128, -128, -128, -128, -128, -128, 16, - -23, 103, -128, 495, -23, -128, 495, 35, -128, -128, - 3, 15, 9, 17, -128, -28, -15, -8, -128, -128, - -128, 47, 23, 44, 150, -128, -128, -28, -128, 372, - 33, 48, 49, -128, 15, -128, -128, -28, -128, -128, - -128, 64, -128, 197, -128, -128, 50, -128, 21, 65, - 37, 64, 14, 56, 55, -128, -128, -128, 59, -128, - 74, 57, -128, 63, -128, -128, -128, -128, -128, 76, - 83, 416, 84, 99, 90, -128, -128, 88, -128, 89, - -128, -128, -128, -128, 241, -128, 23, -128, -128, 105, - -128, -128, -128, -128, -128, 8, 46, -128, 26, -128, - -128, 459, -128, -128, 92, 93, -128, -128, 94, -128, - 96, -128, -128, 285, -128, -128, -128, -128, -128, -128, - 97, 100, -128, -128 |