parse.c_shipped 71.3 KB
Newer Older
S
Sam Ravnborg 已提交
1
/* A Bison parser, made by GNU Bison 2.3.  */
L
Linus Torvalds 已提交
2

S
Sam Ravnborg 已提交
3 4 5 6
/* 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.
L
Linus Torvalds 已提交
7

8 9 10 11 12 13 14 15 16 17 18 19
   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
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
S
Sam Ravnborg 已提交
20 21 22 23 24 25 26 27 28 29 30 31
   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.
32

S
Sam Ravnborg 已提交
33 34
   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */
35

S
Sam Ravnborg 已提交
36 37
/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */
38 39 40 41 42 43 44 45 46 47 48

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output.  */
#define YYBISON 1

S
Sam Ravnborg 已提交
49 50 51
/* Bison version.  */
#define YYBISON_VERSION "2.3"

52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Using locations.  */
#define YYLSP_NEEDED 0



/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     ASM_KEYW = 258,
     ATTRIBUTE_KEYW = 259,
     AUTO_KEYW = 260,
     BOOL_KEYW = 261,
     CHAR_KEYW = 262,
     CONST_KEYW = 263,
     DOUBLE_KEYW = 264,
     ENUM_KEYW = 265,
     EXTERN_KEYW = 266,
S
Sam Ravnborg 已提交
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
     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
110 111
   };
#endif
S
Sam Ravnborg 已提交
112
/* Tokens.  */
113 114 115 116 117 118 119 120 121
#define ASM_KEYW 258
#define ATTRIBUTE_KEYW 259
#define AUTO_KEYW 260
#define BOOL_KEYW 261
#define CHAR_KEYW 262
#define CONST_KEYW 263
#define DOUBLE_KEYW 264
#define ENUM_KEYW 265
#define EXTERN_KEYW 266
S
Sam Ravnborg 已提交
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
#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
154 155 156 157 158




/* Copy the first part of user declarations.  */
L
Linus Torvalds 已提交
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
#line 24 "scripts/genksyms/parse.y"


#include <assert.h>
#include <malloc.h>
#include "genksyms.h"

static int is_typedef;
static int is_extern;
static char *current_name;
static struct string_list *decl_spec;

static void yyerror(const char *);

static inline void
remove_node(struct string_list **p)
{
  struct string_list *node = *p;
  *p = node->next;
  free_node(node);
}

static inline void
remove_list(struct string_list **pb, struct string_list **pe)
{
  struct string_list *b = *pb, *e = *pe;
  *pb = e;
  free_list(b, e);
}

189 190 191


/* Enabling traces.  */
L
Linus Torvalds 已提交
192
#ifndef YYDEBUG
193
# define YYDEBUG 1
L
Linus Torvalds 已提交
194 195
#endif

196 197 198 199 200 201
/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
L
Linus Torvalds 已提交
202
#endif
203

S
Sam Ravnborg 已提交
204 205 206 207 208 209
/* Enabling the token table.  */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif

#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
210 211 212 213
typedef int YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
L
Linus Torvalds 已提交
214 215 216 217
#endif



218
/* Copy the second part of user declarations.  */
L
Linus Torvalds 已提交
219 220


S
Sam Ravnborg 已提交
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
/* 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
L
Linus Torvalds 已提交
268

S
Sam Ravnborg 已提交
269
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
L
Linus Torvalds 已提交
270

S
Sam Ravnborg 已提交
271 272 273 274 275 276
#ifndef YY_
# if YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(msgid) dgettext ("bison-runtime", msgid)
#  endif
277
# endif
S
Sam Ravnborg 已提交
278 279
# ifndef YY_
#  define YY_(msgid) msgid
280
# endif
S
Sam Ravnborg 已提交
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308
#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
L
Linus Torvalds 已提交
309

310 311 312 313 314 315
/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
S
Sam Ravnborg 已提交
316 317 318 319 320 321 322
#   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
323 324
#   else
#    define YYSTACK_ALLOC alloca
S
Sam Ravnborg 已提交
325 326 327 328 329 330 331
#    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
332 333 334 335 336
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
S
Sam Ravnborg 已提交
337 338 339 340 341 342 343 344
   /* 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 */
345
#  endif
S
Sam Ravnborg 已提交
346
# else
347 348
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
S
Sam Ravnborg 已提交
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373
#  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
374
# endif
S
Sam Ravnborg 已提交
375
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
376 377


S
Sam Ravnborg 已提交
378 379 380
#if (! defined yyoverflow \
     && (! defined __cplusplus \
	 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
381 382 383 384

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
S
Sam Ravnborg 已提交
385
  yytype_int16 yyss;
386 387 388 389 390 391 392 393 394
  YYSTYPE yyvs;
  };

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
S
Sam Ravnborg 已提交
395
     ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
396 397 398 399 400
      + YYSTACK_GAP_MAXIMUM)

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
S
Sam Ravnborg 已提交
401
#  if defined __GNUC__ && 1 < __GNUC__
402 403 404 405 406 407
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
S
Sam Ravnborg 已提交
408
	  YYSIZE_T yyi;				\
409 410 411
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];		\
	}					\
S
Sam Ravnborg 已提交
412
      while (YYID (0))
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
#  endif
# endif

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack)					\
    do									\
      {									\
	YYSIZE_T yynewbytes;						\
	YYCOPY (&yyptr->Stack, Stack, yysize);				\
	Stack = &yyptr->Stack;						\
	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
	yyptr += yynewbytes / sizeof (*yyptr);				\
      }									\
S
Sam Ravnborg 已提交
430
    while (YYID (0))
L
Linus Torvalds 已提交
431 432 433

#endif

S
Sam Ravnborg 已提交
434
/* YYFINAL -- State number of the termination state.  */
435 436
#define YYFINAL  4
/* YYLAST -- Last index in YYTABLE.  */
S
Sam Ravnborg 已提交
437
#define YYLAST   523
438

S
Sam Ravnborg 已提交
439 440 441 442 443 444 445 446
/* 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
447 448 449

/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
S
Sam Ravnborg 已提交
450
#define YYMAXUTOK   298
451

S
Sam Ravnborg 已提交
452
#define YYTRANSLATE(YYX)						\
453 454 455
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
S
Sam Ravnborg 已提交
456
static const yytype_uint8 yytranslate[] =
457 458 459 460 461
{
       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,
S
Sam Ravnborg 已提交
462 463 464
      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,
465 466 467 468 469
       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,
S
Sam Ravnborg 已提交
470
       2,     2,     2,    51,     2,    45,     2,     2,     2,     2,
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486
       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,     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,     2,     2,     2,     2,     1,     2,     3,     4,
       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,
S
Sam Ravnborg 已提交
487
      35,    36,    37,    38,    39,    40,    41,    42,    43
L
Linus Torvalds 已提交
488 489
};

490 491 492
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
S
Sam Ravnborg 已提交
493
static const yytype_uint16 yyprhs[] =
494
{
S
Sam Ravnborg 已提交
495 496 497 498 499 500 501 502 503 504 505 506 507
       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
L
Linus Torvalds 已提交
508 509
};

S
Sam Ravnborg 已提交
510 511
/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
static const yytype_int8 yyrhs[] =
512
{
S
Sam Ravnborg 已提交
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547
      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
L
Linus Torvalds 已提交
548 549
};

550
/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
S
Sam Ravnborg 已提交
551
static const yytype_uint16 yyrline[] =
552
{
S
Sam Ravnborg 已提交
553 554 555 556 557 558 559 560 561 562 563 564 565
       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
L
Linus Torvalds 已提交
566
};
567
#endif
L
Linus Torvalds 已提交
568

S
Sam Ravnborg 已提交
569 570 571
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
572 573 574 575
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "ASM_KEYW", "ATTRIBUTE_KEYW",
  "AUTO_KEYW", "BOOL_KEYW", "CHAR_KEYW", "CONST_KEYW", "DOUBLE_KEYW",
S
Sam Ravnborg 已提交
576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596
  "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",
597 598 599
  "member_declarator_list_opt", "member_declarator_list",
  "member_declarator", "member_bitfield_declarator", "attribute_opt",
  "asm_definition", "asm_phrase_opt", "export_definition", 0
L
Linus Torvalds 已提交
600
};
601
#endif
L
Linus Torvalds 已提交
602

603 604 605
# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
S
Sam Ravnborg 已提交
606
static const yytype_uint16 yytoknum[] =
607 608 609 610 611
{
       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,
S
Sam Ravnborg 已提交
612 613
     295,   296,   297,   298,    59,   125,    44,    40,    42,    41,
      61,   123,    58
L
Linus Torvalds 已提交
614
};
615
# endif
L
Linus Torvalds 已提交
616

617
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
S
Sam Ravnborg 已提交
618
static const yytype_uint8 yyr1[] =
619
{
S
Sam Ravnborg 已提交
620 621 622 623 624 625 626 627 628 629 630 631 632
       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
633
};
L
Linus Torvalds 已提交
634

635
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
S
Sam Ravnborg 已提交
636
static const yytype_uint8 yyr2[] =
637
{
S
Sam Ravnborg 已提交
638 639 640 641 642 643 644 645 646 647 648 649 650
       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
L
Linus Torvalds 已提交
651 652
};

653 654 655
/* 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.  */
S
Sam Ravnborg 已提交
656
static const yytype_uint8 yydefact[] =
657
{
S
Sam Ravnborg 已提交
658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675
       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
L
Linus Torvalds 已提交
676 677
};

S
Sam Ravnborg 已提交
678 679
/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
680
{
S
Sam Ravnborg 已提交
681 682 683 684 685
      -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
686
};
L
Linus Torvalds 已提交
687

688 689
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
S
Sam Ravnborg 已提交
690 691
#define YYPACT_NINF -135
static const yytype_int16 yypact[] =
692
{
S
Sam Ravnborg 已提交
693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710
    -135,    11,  -135,   312,  -135,  -135,    24,  -135,  -135,  -135,
    -135,  -135,   -23,  -135,    -2,  -135,  -135,  -135,  -135,  -135,
    -135,  -135,  -135,  -135,   -17,  -135,   -11,  -135,  -135,  -135,
      -3,    16,    26,  -135,  -135,  -135,  -135,    34,   482,  -135,
    -135,  -135,  -135,  -135,  -135,  -135,  -135,  -135,  -135,  -135,
      -8,  -135,    22,    97,  -135,   482,    22,  -135,   482,    56,
    -135,  -135,    12,    10,    50,    49,  -135,    34,   -13,    15,
    -135,  -135,   482,  -135,    47,   -25,    51,   145,  -135,  -135,
      34,  -135,   356,    52,    71,    77,  -135,    10,  -135,  -135,
      34,  -135,  -135,  -135,    68,  -135,   193,  -135,  -135,  -135,
      48,  -135,     6,    93,    37,    68,    18,    85,    84,  -135,
    -135,  -135,    87,  -135,   102,    86,  -135,    89,  -135,  -135,
    -135,  -135,  -135,    90,    88,   401,    94,   100,   101,  -135,
    -135,    99,  -135,   108,  -135,  -135,  -135,  -135,   230,  -135,
     -25,  -135,  -135,   105,  -135,  -135,  -135,  -135,  -135,     9,
      42,  -135,    28,  -135,  -135,   445,  -135,  -135,   119,   125,
    -135,  -135,   126,  -135,   128,  -135,  -135,   267,  -135,  -135,
    -135,  -135,  -135,  -135,   129,   130,  -135,  -135
711
};
L
Linus Torvalds 已提交
712

713
/* YYPGOTO[NTERM-NUM].  */
S
Sam Ravnborg 已提交
714
static const yytype_int16 yypgoto[] =
715
{
S
Sam Ravnborg 已提交
716 717 718 719 720
    -135,  -135,   179,  -135,  -135,  -135,  -135,   -47,  -135,  -135,
      91,     0,   -58,   -37,  -135,  -135,  -135,   -73,  -135,  -135,
     -48,   -32,  -135,   -38,  -135,  -134,  -135,  -135,    29,   -63,
    -135,  -135,  -135,  -135,   -20,  -135,  -135,   106,  -135,  -135,
      45,    95,    82,  -135,  -135,  -135
721
};
L
Linus Torvalds 已提交
722

723 724 725 726
/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
S
Sam Ravnborg 已提交
727 728
#define YYTABLE_NINF -109
static const yytype_int16 yytable[] =
729
{
S
Sam Ravnborg 已提交
730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761
      82,    70,   104,    37,   159,    68,    57,   131,    79,    49,
     162,     4,   100,    84,    50,    88,   101,    92,    10,    93,
      52,    51,   102,    63,    71,    97,    56,   103,    20,   104,
      85,   104,    73,   175,    53,    91,    81,    29,   125,   120,
      53,    33,   -93,   132,    58,    70,   147,   101,    95,    61,
     163,   137,   150,   102,    63,    80,   149,    63,   -93,    62,
      63,   166,    96,    59,   133,   138,   135,   104,    47,    48,
      60,    61,    80,    53,   132,   167,   150,   150,   101,   147,
     125,    62,    63,   163,   102,    63,   164,   165,    70,   149,
      63,    98,    99,    83,    89,    90,   111,   125,    74,   122,
     103,   117,     7,     8,     9,    10,    11,    12,    13,   125,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
     118,    26,    27,    28,    29,    30,   119,   134,    33,   139,
     140,    98,    92,   142,   -22,   141,   154,   146,    34,   161,
     143,   -22,  -107,   153,   -22,   -22,   112,   155,   156,   -22,
       7,     8,     9,    10,    11,    12,    13,   157,    15,    16,
      17,    18,    19,    20,    21,    22,    23,    24,   170,    26,
      27,    28,    29,    30,   171,   172,    33,   173,   176,   177,
       5,   121,   -22,   113,   169,   160,    34,   136,     0,   -22,
    -108,     0,   -22,   -22,   124,   130,     0,   -22,     7,     8,
       9,    10,    11,    12,    13,     0,    15,    16,    17,    18,
      19,    20,    21,    22,    23,    24,     0,    26,    27,    28,
      29,    30,     0,     0,    33,     0,     0,     0,     0,   -86,
       0,   158,     0,     0,    34,     7,     8,     9,    10,    11,
      12,    13,   -86,    15,    16,    17,    18,    19,    20,    21,
      22,    23,    24,     0,    26,    27,    28,    29,    30,     0,
       0,    33,     0,     0,     0,     0,   -86,     0,   174,     0,
       0,    34,     7,     8,     9,    10,    11,    12,    13,   -86,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
       0,    26,    27,    28,    29,    30,     0,     0,    33,     0,
       0,     0,     0,   -86,     0,     0,     0,     0,    34,     0,
       0,     0,     0,     6,     0,     0,   -86,     7,     8,     9,
762
      10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
S
Sam Ravnborg 已提交
763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782
      20,    21,    22,    23,    24,    25,    26,    27,    28,    29,
      30,    31,    32,    33,     0,     0,     0,     0,     0,   -22,
       0,     0,     0,    34,     0,     0,   -22,     0,     0,   -22,
     -22,     7,     8,     9,    10,    11,    12,    13,     0,    15,
      16,    17,    18,    19,    20,    21,    22,    23,    24,     0,
      26,    27,    28,    29,    30,     0,     0,    33,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    34,     0,     0,
       0,     0,     0,     0,   115,   116,     7,     8,     9,    10,
      11,    12,    13,     0,    15,    16,    17,    18,    19,    20,
      21,    22,    23,    24,     0,    26,    27,    28,    29,    30,
       0,     0,    33,     0,     0,     0,     0,     0,   147,     0,
       0,     0,   148,     0,     0,     0,     0,     0,   149,    63,
       7,     8,     9,    10,    11,    12,    13,     0,    15,    16,
      17,    18,    19,    20,    21,    22,    23,    24,     0,    26,
      27,    28,    29,    30,     0,     0,    33,     0,     0,     0,
       0,   168,     0,     0,     0,     0,    34,     7,     8,     9,
      10,    11,    12,    13,     0,    15,    16,    17,    18,    19,
      20,    21,    22,    23,    24,     0,    26,    27,    28,    29,
      30,     0,     0,    33,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    34
783
};
L
Linus Torvalds 已提交
784

S
Sam Ravnborg 已提交
785
static const yytype_int16 yycheck[] =
786
{
S
Sam Ravnborg 已提交
787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818
      58,    38,    75,     3,   138,    37,    26,     1,    55,    32,
       1,     0,    37,     1,    37,    63,    41,    30,     8,    32,
      37,    23,    47,    48,    32,    72,    37,    52,    18,   102,
      62,   104,    52,   167,    51,    67,    56,    27,    96,    87,
      51,    31,    33,    37,    47,    82,    37,    41,    33,    37,
      41,    33,   125,    47,    48,    55,    47,    48,    49,    47,
      48,    33,    47,    47,   102,    47,   104,   140,    44,    45,
      44,    37,    72,    51,    37,    47,   149,   150,    41,    37,
     138,    47,    48,    41,    47,    48,   149,   150,   125,    47,
      48,    44,    45,    37,    44,    46,    45,   155,     1,    31,
      52,    49,     5,     6,     7,     8,     9,    10,    11,   167,
      13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
      49,    24,    25,    26,    27,    28,    49,    34,    31,    44,
      46,    44,    30,    44,    37,    49,    36,    49,    41,    34,
      50,    44,    45,    49,    47,    48,     1,    46,    49,    52,
       5,     6,     7,     8,     9,    10,    11,    49,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    49,    24,
      25,    26,    27,    28,    49,    49,    31,    49,    49,    49,
       1,    90,    37,    77,   155,   140,    41,   105,    -1,    44,
      45,    -1,    47,    48,     1,   100,    -1,    52,     5,     6,
       7,     8,     9,    10,    11,    -1,    13,    14,    15,    16,
      17,    18,    19,    20,    21,    22,    -1,    24,    25,    26,
      27,    28,    -1,    -1,    31,    -1,    -1,    -1,    -1,    36,
      -1,     1,    -1,    -1,    41,     5,     6,     7,     8,     9,
      10,    11,    49,    13,    14,    15,    16,    17,    18,    19,
      20,    21,    22,    -1,    24,    25,    26,    27,    28,    -1,
      -1,    31,    -1,    -1,    -1,    -1,    36,    -1,     1,    -1,
      -1,    41,     5,     6,     7,     8,     9,    10,    11,    49,
      13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
      -1,    24,    25,    26,    27,    28,    -1,    -1,    31,    -1,
      -1,    -1,    -1,    36,    -1,    -1,    -1,    -1,    41,    -1,
      -1,    -1,    -1,     1,    -1,    -1,    49,     5,     6,     7,
819
       8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
S
Sam Ravnborg 已提交
820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839
      18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
      28,    29,    30,    31,    -1,    -1,    -1,    -1,    -1,    37,
      -1,    -1,    -1,    41,    -1,    -1,    44,    -1,    -1,    47,
      48,     5,     6,     7,     8,     9,    10,    11,    -1,    13,
      14,    15,    16,    17,    18,    19,    20,    21,    22,    -1,
      24,    25,    26,    27,    28,    -1,    -1,    31,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    41,    -1,    -1,
      -1,    -1,    -1,    -1,    48,    49,     5,     6,     7,     8,
       9,    10,    11,    -1,    13,    14,    15,    16,    17,    18,
      19,    20,    21,    22,    -1,    24,    25,    26,    27,    28,
      -1,    -1,    31,    -1,    -1,    -1,    -1,    -1,    37,    -1,
      -1,    -1,    41,    -1,    -1,    -1,    -1,    -1,    47,    48,
       5,     6,     7,     8,     9,    10,    11,    -1,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    -1,    24,
      25,    26,    27,    28,    -1,    -1,    31,    -1,    -1,    -1,
      -1,    36,    -1,    -1,    -1,    -1,    41,     5,     6,     7,
       8,     9,    10,    11,    -1,    13,    14,    15,    16,    17,
      18,    19,    20,    21,    22,    -1,    24,    25,    26,    27,
      28,    -1,    -1,    31,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    41
840
};
L
Linus Torvalds 已提交
841

842 843
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
S
Sam Ravnborg 已提交
844
static const yytype_uint8 yystos[] =
845
{
S
Sam Ravnborg 已提交
846
       0,    54,    55,    56,     0,    55,     1,     5,     6,     7,
847 848
       8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
      18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
S
Sam Ravnborg 已提交
849 850 851 852 853 854 855 856 857 858 859 860 861 862 863
      28,    29,    30,    31,    41,    57,    60,    64,    65,    66,
      67,    68,    69,    73,    84,    96,    98,    44,    45,    32,
      37,    23,    37,    51,    87,    59,    37,    87,    47,    47,
      44,    37,    47,    48,    61,    62,    63,    70,    74,    75,
      66,    32,    58,    87,     1,    64,    88,    89,    90,    60,
      64,    87,    65,    37,     1,    74,    71,    72,    73,    44,
      46,    74,    30,    32,    97,    33,    47,    60,    44,    45,
      37,    41,    47,    52,    70,    76,    77,    91,    92,    93,
      94,    45,     1,    90,    74,    48,    49,    49,    49,    49,
      73,    63,    31,    95,     1,    65,    78,    79,    80,    81,
      94,     1,    37,    76,    34,    76,    95,    33,    47,    44,
      46,    49,    44,    50,    85,    86,    49,    37,    41,    47,
      70,    82,    83,    49,    36,    46,    49,    49,     1,    78,
      93,    34,     1,    41,    82,    82,    33,    47,    36,    81,
      49,    49,    49,    49,     1,    78,    49,    49
864
};
L
Linus Torvalds 已提交
865 866 867

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
868
#define YYEMPTY		(-2)
L
Linus Torvalds 已提交
869
#define YYEOF		0
870

L
Linus Torvalds 已提交
871
#define YYACCEPT	goto yyacceptlab
872 873 874 875 876 877
#define YYABORT		goto yyabortlab
#define YYERROR		goto yyerrorlab


/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
L
Linus Torvalds 已提交
878
   Once GCC version 2 has supplanted version 1, this can go.  */
879

L
Linus Torvalds 已提交
880
#define YYFAIL		goto yyerrlab
881

L
Linus Torvalds 已提交
882
#define YYRECOVERING()  (!!yyerrstatus)
883 884

#define YYBACKUP(Token, Value)					\
L
Linus Torvalds 已提交
885 886
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
887 888 889 890
    {								\
      yychar = (Token);						\
      yylval = (Value);						\
      yytoken = YYTRANSLATE (yychar);				\
S
Sam Ravnborg 已提交
891
      YYPOPSTACK (1);						\
L
Linus Torvalds 已提交
892 893 894
      goto yybackup;						\
    }								\
  else								\
S
Sam Ravnborg 已提交
895 896
    {								\
      yyerror (YY_("syntax error: cannot back up")); \
897 898
      YYERROR;							\
    }								\
S
Sam Ravnborg 已提交
899
while (YYID (0))
L
Linus Torvalds 已提交
900

901

L
Linus Torvalds 已提交
902 903 904
#define YYTERROR	1
#define YYERRCODE	256

905 906 907 908 909 910 911 912 913

/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
   If N is 0, then set CURRENT to the empty location which ends
   the previous symbol: RHS[0] (always defined).  */

#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)				\
    do									\
S
Sam Ravnborg 已提交
914
      if (YYID (N))                                                    \
915 916 917 918 919 920 921 922 923 924 925 926 927
	{								\
	  (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;	\
	  (Current).first_column = YYRHSLOC (Rhs, 1).first_column;	\
	  (Current).last_line    = YYRHSLOC (Rhs, N).last_line;		\
	  (Current).last_column  = YYRHSLOC (Rhs, N).last_column;	\
	}								\
      else								\
	{								\
	  (Current).first_line   = (Current).last_line   =		\
	    YYRHSLOC (Rhs, 0).last_line;				\
	  (Current).first_column = (Current).last_column =		\
	    YYRHSLOC (Rhs, 0).last_column;				\
	}								\
S
Sam Ravnborg 已提交
928
    while (YYID (0))
L
Linus Torvalds 已提交
929 930
#endif

931 932 933 934 935 936 937 938 939

/* YY_LOCATION_PRINT -- Print the location on the stream.
   This macro was not mandated originally: define only if we know
   we won't break user code: when these are the locations we know.  */

#ifndef YY_LOCATION_PRINT
# if YYLTYPE_IS_TRIVIAL
#  define YY_LOCATION_PRINT(File, Loc)			\
     fprintf (File, "%d.%d-%d.%d",			\
S
Sam Ravnborg 已提交
940 941
	      (Loc).first_line, (Loc).first_column,	\
	      (Loc).last_line,  (Loc).last_column)
942 943 944
# else
#  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
L
Linus Torvalds 已提交
945
#endif
946 947 948 949


/* YYLEX -- calling `yylex' with the right arguments.  */

L
Linus Torvalds 已提交
950
#ifdef YYLEX_PARAM
951
# define YYLEX yylex (YYLEX_PARAM)
L
Linus Torvalds 已提交
952
#else
953
# define YYLEX yylex ()
L
Linus Torvalds 已提交
954
#endif
955 956 957 958 959 960 961 962 963 964 965 966 967

/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)			\
do {						\
  if (yydebug)					\
    YYFPRINTF Args;				\
S
Sam Ravnborg 已提交
968 969 970 971 972 973 974 975 976 977 978 979
} while (YYID (0))

# define YY_SYMBOL_PRINT(Title, Type, Value, Location)			  \
do {									  \
  if (yydebug)								  \
    {									  \
      YYFPRINTF (stderr, "%s ", Title);					  \
      yy_symbol_print (stderr,						  \
		  Type, Value); \
      YYFPRINTF (stderr, "\n");						  \
    }									  \
} while (YYID (0))
980

S
Sam Ravnborg 已提交
981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038

/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_value_print (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
#endif
{
  if (!yyvaluep)
    return;
# ifdef YYPRINT
  if (yytype < YYNTOKENS)
    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
  YYUSE (yyoutput);
# endif
  switch (yytype)
    {
      default:
	break;
    }
}


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_print (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
#endif
{
  if (yytype < YYNTOKENS)
    YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  yy_symbol_value_print (yyoutput, yytype, yyvaluep);
  YYFPRINTF (yyoutput, ")");
}
1039 1040 1041 1042 1043 1044

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

S
Sam Ravnborg 已提交
1045 1046
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
1047
static void
S
Sam Ravnborg 已提交
1048
yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
1049 1050 1051
#else
static void
yy_stack_print (bottom, top)
S
Sam Ravnborg 已提交
1052 1053
    yytype_int16 *bottom;
    yytype_int16 *top;
L
Linus Torvalds 已提交
1054
#endif
1055 1056
{
  YYFPRINTF (stderr, "Stack now");
S
Sam Ravnborg 已提交
1057
  for (; bottom <= top; ++bottom)
1058 1059 1060
    YYFPRINTF (stderr, " %d", *bottom);
  YYFPRINTF (stderr, "\n");
}
L
Linus Torvalds 已提交
1061

1062 1063 1064 1065
# define YY_STACK_PRINT(Bottom, Top)				\
do {								\
  if (yydebug)							\
    yy_stack_print ((Bottom), (Top));				\
S
Sam Ravnborg 已提交
1066
} while (YYID (0))
L
Linus Torvalds 已提交
1067 1068


1069 1070 1071
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/
L
Linus Torvalds 已提交
1072

S
Sam Ravnborg 已提交
1073 1074
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
1075
static void
S
Sam Ravnborg 已提交
1076
yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
1077 1078
#else
static void
S
Sam Ravnborg 已提交
1079 1080
yy_reduce_print (yyvsp, yyrule)
    YYSTYPE *yyvsp;
1081
    int yyrule;
L
Linus Torvalds 已提交
1082
#endif
1083
{
S
Sam Ravnborg 已提交
1084
  int yynrhs = yyr2[yyrule];
1085
  int yyi;
S
Sam Ravnborg 已提交
1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097
  unsigned long int yylno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
	     yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      fprintf (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
		       &(yyvsp[(yyi + 1) - (yynrhs)])
		       		       );
      fprintf (stderr, "\n");
    }
1098
}
L
Linus Torvalds 已提交
1099

1100 1101 1102
# define YY_REDUCE_PRINT(Rule)		\
do {					\
  if (yydebug)				\
S
Sam Ravnborg 已提交
1103 1104
    yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))
L
Linus Torvalds 已提交
1105

1106 1107 1108 1109 1110 1111 1112 1113 1114
/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */
L
Linus Torvalds 已提交
1115 1116


1117
/* YYINITDEPTH -- initial size of the parser's stacks.  */
L
Linus Torvalds 已提交
1118
#ifndef	YYINITDEPTH
1119
# define YYINITDEPTH 200
L
Linus Torvalds 已提交
1120 1121
#endif

1122 1123
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).
L
Linus Torvalds 已提交
1124

1125
   Do not make this value too large; the results are undefined if
S
Sam Ravnborg 已提交
1126
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1127
   evaluated with infinite-precision integer arithmetic.  */
L
Linus Torvalds 已提交
1128 1129

#ifndef YYMAXDEPTH
1130
# define YYMAXDEPTH 10000
L
Linus Torvalds 已提交
1131
#endif
1132

L
Linus Torvalds 已提交
1133

1134 1135 1136 1137

#if YYERROR_VERBOSE

# ifndef yystrlen
S
Sam Ravnborg 已提交
1138
#  if defined __GLIBC__ && defined _STRING_H
1139 1140 1141
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
S
Sam Ravnborg 已提交
1142 1143
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
1144 1145
static YYSIZE_T
yystrlen (const char *yystr)
S
Sam Ravnborg 已提交
1146 1147
#else
static YYSIZE_T
1148
yystrlen (yystr)
S
Sam Ravnborg 已提交
1149 1150
    const char *yystr;
#endif
1151
{
S
Sam Ravnborg 已提交
1152 1153
  YYSIZE_T yylen;
  for (yylen = 0; yystr[yylen]; yylen++)
1154
    continue;
S
Sam Ravnborg 已提交
1155
  return yylen;
1156 1157 1158 1159 1160
}
#  endif
# endif

# ifndef yystpcpy
S
Sam Ravnborg 已提交
1161
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1162 1163 1164 1165
#   define yystpcpy stpcpy
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
S
Sam Ravnborg 已提交
1166 1167
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
1168 1169
static char *
yystpcpy (char *yydest, const char *yysrc)
S
Sam Ravnborg 已提交
1170 1171
#else
static char *
1172
yystpcpy (yydest, yysrc)
S
Sam Ravnborg 已提交
1173 1174 1175
    char *yydest;
    const char *yysrc;
#endif
L
Linus Torvalds 已提交
1176
{
S
Sam Ravnborg 已提交
1177 1178
  char *yyd = yydest;
  const char *yys = yysrc;
L
Linus Torvalds 已提交
1179

1180 1181 1182 1183
  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
L
Linus Torvalds 已提交
1184
}
1185 1186 1187
#  endif
# endif

S
Sam Ravnborg 已提交
1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227
# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
  if (*yystr == '"')
    {
      YYSIZE_T yyn = 0;
      char const *yyp = yystr;

      for (;;)
	switch (*++yyp)
	  {
	  case '\'':
	  case ',':
	    goto do_not_strip_quotes;

	  case '\\':
	    if (*++yyp != '\\')
	      goto do_not_strip_quotes;
	    /* Fall through.  */
	  default:
	    if (yyres)
	      yyres[yyn] = *yyp;
	    yyn++;
	    break;

	  case '"':
	    if (yyres)
	      yyres[yyn] = '\0';
	    return yyn;
	  }
    do_not_strip_quotes: ;
    }
L
Linus Torvalds 已提交
1228

S
Sam Ravnborg 已提交
1229 1230
  if (! yyres)
    return yystrlen (yystr);
1231

S
Sam Ravnborg 已提交
1232 1233 1234
  return yystpcpy (yyres, yystr) - yyres;
}
# endif
L
Linus Torvalds 已提交
1235

S
Sam Ravnborg 已提交
1236 1237 1238 1239 1240 1241 1242 1243 1244
/* Copy into YYRESULT an error message about the unexpected token
   YYCHAR while in state YYSTATE.  Return the number of bytes copied,
   including the terminating null byte.  If YYRESULT is null, do not
   copy anything; just return the number of bytes that would be
   copied.  As a special case, return 0 if an ordinary "syntax error"
   message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
   size calculation.  */
static YYSIZE_T
yysyntax_error (char *yyresult, int yystate, int yychar)
L
Linus Torvalds 已提交
1245
{
S
Sam Ravnborg 已提交
1246
  int yyn = yypact[yystate];
L
Linus Torvalds 已提交
1247

S
Sam Ravnborg 已提交
1248 1249
  if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
    return 0;
1250 1251
  else
    {
S
Sam Ravnborg 已提交
1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340
      int yytype = YYTRANSLATE (yychar);
      YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
      YYSIZE_T yysize = yysize0;
      YYSIZE_T yysize1;
      int yysize_overflow = 0;
      enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
      char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
      int yyx;

# if 0
      /* This is so xgettext sees the translatable formats that are
	 constructed on the fly.  */
      YY_("syntax error, unexpected %s");
      YY_("syntax error, unexpected %s, expecting %s");
      YY_("syntax error, unexpected %s, expecting %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
# endif
      char *yyfmt;
      char const *yyf;
      static char const yyunexpected[] = "syntax error, unexpected %s";
      static char const yyexpecting[] = ", expecting %s";
      static char const yyor[] = " or %s";
      char yyformat[sizeof yyunexpected
		    + sizeof yyexpecting - 1
		    + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
		       * (sizeof yyor - 1))];
      char const *yyprefix = yyexpecting;

      /* Start YYX at -YYN if negative to avoid negative indexes in
	 YYCHECK.  */
      int yyxbegin = yyn < 0 ? -yyn : 0;

      /* Stay within bounds of both yycheck and yytname.  */
      int yychecklim = YYLAST - yyn + 1;
      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
      int yycount = 1;

      yyarg[0] = yytname[yytype];
      yyfmt = yystpcpy (yyformat, yyunexpected);

      for (yyx = yyxbegin; yyx < yyxend; ++yyx)
	if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
	  {
	    if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
	      {
		yycount = 1;
		yysize = yysize0;
		yyformat[sizeof yyunexpected - 1] = '\0';
		break;
	      }
	    yyarg[yycount++] = yytname[yyx];
	    yysize1 = yysize + yytnamerr (0, yytname[yyx]);
	    yysize_overflow |= (yysize1 < yysize);
	    yysize = yysize1;
	    yyfmt = yystpcpy (yyfmt, yyprefix);
	    yyprefix = yyor;
	  }

      yyf = YY_(yyformat);
      yysize1 = yysize + yystrlen (yyf);
      yysize_overflow |= (yysize1 < yysize);
      yysize = yysize1;

      if (yysize_overflow)
	return YYSIZE_MAXIMUM;

      if (yyresult)
	{
	  /* Avoid sprintf, as that infringes on the user's name space.
	     Don't have undefined behavior even if the translation
	     produced a string with the wrong number of "%s"s.  */
	  char *yyp = yyresult;
	  int yyi = 0;
	  while ((*yyp = *yyf) != '\0')
	    {
	      if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
		{
		  yyp += yytnamerr (yyp, yyarg[yyi++]);
		  yyf += 2;
		}
	      else
		{
		  yyp++;
		  yyf++;
		}
	    }
	}
      return yysize;
1341
    }
L
Linus Torvalds 已提交
1342
}
S
Sam Ravnborg 已提交
1343 1344
#endif /* YYERROR_VERBOSE */

L
Linus Torvalds 已提交
1345

1346 1347 1348 1349
/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

S
Sam Ravnborg 已提交
1350 1351 1352
/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
1353 1354 1355 1356 1357 1358 1359 1360
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
#else
static void
yydestruct (yymsg, yytype, yyvaluep)
    const char *yymsg;
    int yytype;
    YYSTYPE *yyvaluep;
L
Linus Torvalds 已提交
1361
#endif
1362
{
S
Sam Ravnborg 已提交
1363
  YYUSE (yyvaluep);
1364 1365 1366 1367 1368 1369 1370 1371 1372

  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  switch (yytype)
    {

      default:
S
Sam Ravnborg 已提交
1373
	break;
1374 1375
    }
}
L
Linus Torvalds 已提交
1376 1377


1378
/* Prevent warnings from -Wmissing-prototypes.  */
L
Linus Torvalds 已提交
1379 1380

#ifdef YYPARSE_PARAM
S
Sam Ravnborg 已提交
1381
#if defined __STDC__ || defined __cplusplus
1382
int yyparse (void *YYPARSE_PARAM);
S
Sam Ravnborg 已提交
1383
#else
1384
int yyparse ();
S
Sam Ravnborg 已提交
1385
#endif
1386
#else /* ! YYPARSE_PARAM */
S
Sam Ravnborg 已提交
1387
#if defined __STDC__ || defined __cplusplus
L
Linus Torvalds 已提交
1388
int yyparse (void);
1389 1390
#else
int yyparse ();
L
Linus Torvalds 已提交
1391
#endif
1392 1393 1394 1395 1396 1397
#endif /* ! YYPARSE_PARAM */



/* The look-ahead symbol.  */
int yychar;
L
Linus Torvalds 已提交
1398

1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411
/* The semantic value of the look-ahead symbol.  */
YYSTYPE yylval;

/* Number of syntax errors so far.  */
int yynerrs;



/*----------.
| yyparse.  |
`----------*/

#ifdef YYPARSE_PARAM
S
Sam Ravnborg 已提交
1412 1413 1414 1415 1416 1417 1418 1419 1420
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void *YYPARSE_PARAM)
#else
int
yyparse (YYPARSE_PARAM)
    void *YYPARSE_PARAM;
#endif
1421
#else /* ! YYPARSE_PARAM */
S
Sam Ravnborg 已提交
1422 1423
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
1424 1425 1426
int
yyparse (void)
#else
L
Linus Torvalds 已提交
1427
int
1428 1429 1430 1431
yyparse ()

#endif
#endif
L
Linus Torvalds 已提交
1432
{
1433
  
S
Sam Ravnborg 已提交
1434 1435
  int yystate;
  int yyn;
1436 1437 1438 1439 1440
  int yyresult;
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  /* Look-ahead token as an internal (translated) token number.  */
  int yytoken = 0;
S
Sam Ravnborg 已提交
1441 1442 1443 1444 1445 1446
#if YYERROR_VERBOSE
  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif
1447 1448 1449 1450 1451 1452 1453 1454 1455 1456

  /* Three stacks and their tools:
     `yyss': related to states,
     `yyvs': related to semantic values,
     `yyls': related to locations.

     Refer to the stacks thru separate pointers, to allow yyoverflow
     to reallocate them elsewhere.  */

  /* The state stack.  */
S
Sam Ravnborg 已提交
1457 1458 1459
  yytype_int16 yyssa[YYINITDEPTH];
  yytype_int16 *yyss = yyssa;
  yytype_int16 *yyssp;
1460 1461 1462 1463

  /* The semantic value stack.  */
  YYSTYPE yyvsa[YYINITDEPTH];
  YYSTYPE *yyvs = yyvsa;
S
Sam Ravnborg 已提交
1464
  YYSTYPE *yyvsp;
L
Linus Torvalds 已提交
1465 1466 1467



S
Sam Ravnborg 已提交
1468
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
L
Linus Torvalds 已提交
1469

1470
  YYSIZE_T yystacksize = YYINITDEPTH;
L
Linus Torvalds 已提交
1471

1472 1473 1474
  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;
L
Linus Torvalds 已提交
1475 1476


S
Sam Ravnborg 已提交
1477 1478 1479
  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;
L
Linus Torvalds 已提交
1480

1481
  YYDPRINTF ((stderr, "Starting parse\n"));
L
Linus Torvalds 已提交
1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY;		/* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */

1493
  yyssp = yyss;
L
Linus Torvalds 已提交
1494 1495
  yyvsp = yyvs;

1496
  goto yysetstate;
L
Linus Torvalds 已提交
1497

1498 1499 1500 1501 1502
/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
 yynewstate:
  /* In all cases, when you get here, the value and location stacks
S
Sam Ravnborg 已提交
1503
     have just been pushed.  So pushing a state here evens the stacks.  */
1504 1505 1506 1507 1508 1509 1510
  yyssp++;

 yysetstate:
  *yyssp = yystate;

  if (yyss + yystacksize - 1 <= yyssp)
    {
L
Linus Torvalds 已提交
1511
      /* Get the current used size of the three stacks, in elements.  */
1512
      YYSIZE_T yysize = yyssp - yyss + 1;
L
Linus Torvalds 已提交
1513 1514

#ifdef yyoverflow
1515
      {
S
Sam Ravnborg 已提交
1516
	/* Give user a chance to reallocate the stack.  Use copies of
1517 1518 1519
	   these so that the &'s don't force the real ones into
	   memory.  */
	YYSTYPE *yyvs1 = yyvs;
S
Sam Ravnborg 已提交
1520
	yytype_int16 *yyss1 = yyss;
1521 1522 1523 1524 1525 1526


	/* Each stack pointer address is followed by the size of the
	   data in use in that stack, in bytes.  This used to be a
	   conditional around just the two extra args, but that might
	   be undefined if yyoverflow is a macro.  */
S
Sam Ravnborg 已提交
1527
	yyoverflow (YY_("memory exhausted"),
1528 1529 1530 1531 1532 1533 1534 1535
		    &yyss1, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),

		    &yystacksize);

	yyss = yyss1;
	yyvs = yyvs1;
      }
L
Linus Torvalds 已提交
1536
#else /* no yyoverflow */
1537
# ifndef YYSTACK_RELOCATE
S
Sam Ravnborg 已提交
1538
      goto yyexhaustedlab;
1539
# else
L
Linus Torvalds 已提交
1540
      /* Extend the stack our own way.  */
1541
      if (YYMAXDEPTH <= yystacksize)
S
Sam Ravnborg 已提交
1542
	goto yyexhaustedlab;
L
Linus Torvalds 已提交
1543
      yystacksize *= 2;
1544
      if (YYMAXDEPTH < yystacksize)
L
Linus Torvalds 已提交
1545
	yystacksize = YYMAXDEPTH;
1546 1547

      {
S
Sam Ravnborg 已提交
1548
	yytype_int16 *yyss1 = yyss;
1549 1550 1551
	union yyalloc *yyptr =
	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
	if (! yyptr)
S
Sam Ravnborg 已提交
1552
	  goto yyexhaustedlab;
1553 1554 1555 1556 1557 1558 1559 1560
	YYSTACK_RELOCATE (yyss);
	YYSTACK_RELOCATE (yyvs);

#  undef YYSTACK_RELOCATE
	if (yyss1 != yyssa)
	  YYSTACK_FREE (yyss1);
      }
# endif
L
Linus Torvalds 已提交
1561 1562
#endif /* no yyoverflow */

1563 1564
      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;
L
Linus Torvalds 已提交
1565 1566


1567 1568 1569 1570
      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
		  (unsigned long int) yystacksize));

      if (yyss + yystacksize - 1 <= yyssp)
L
Linus Torvalds 已提交
1571 1572 1573
	YYABORT;
    }

1574
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
L
Linus Torvalds 已提交
1575 1576

  goto yybackup;
1577 1578 1579 1580 1581

/*-----------.
| yybackup.  |
`-----------*/
yybackup:
L
Linus Torvalds 已提交
1582

S
Sam Ravnborg 已提交
1583 1584
  /* Do appropriate processing given the current state.  Read a
     look-ahead token if we need one and don't already have one.  */
L
Linus Torvalds 已提交
1585

1586
  /* First try to decide what to do without reference to look-ahead token.  */
L
Linus Torvalds 已提交
1587
  yyn = yypact[yystate];
1588
  if (yyn == YYPACT_NINF)
L
Linus Torvalds 已提交
1589 1590
    goto yydefault;

1591
  /* Not known => get a look-ahead token if don't already have one.  */
L
Linus Torvalds 已提交
1592

1593
  /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol.  */
L
Linus Torvalds 已提交
1594 1595
  if (yychar == YYEMPTY)
    {
1596
      YYDPRINTF ((stderr, "Reading a token: "));
L
Linus Torvalds 已提交
1597 1598 1599
      yychar = YYLEX;
    }

1600
  if (yychar <= YYEOF)
L
Linus Torvalds 已提交
1601
    {
1602 1603
      yychar = yytoken = YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
L
Linus Torvalds 已提交
1604 1605 1606
    }
  else
    {
1607 1608
      yytoken = YYTRANSLATE (yychar);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
L
Linus Torvalds 已提交
1609 1610
    }

1611 1612 1613 1614
  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
L
Linus Torvalds 已提交
1615 1616
    goto yydefault;
  yyn = yytable[yyn];
1617
  if (yyn <= 0)
L
Linus Torvalds 已提交
1618
    {
1619
      if (yyn == 0 || yyn == YYTABLE_NINF)
L
Linus Torvalds 已提交
1620 1621 1622 1623 1624 1625 1626 1627
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  if (yyn == YYFINAL)
    YYACCEPT;

S
Sam Ravnborg 已提交
1628 1629 1630 1631 1632
  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

1633 1634
  /* Shift the look-ahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
L
Linus Torvalds 已提交
1635

S
Sam Ravnborg 已提交
1636
  /* Discard the shifted token unless it is eof.  */
L
Linus Torvalds 已提交
1637 1638 1639
  if (yychar != YYEOF)
    yychar = YYEMPTY;

S
Sam Ravnborg 已提交
1640
  yystate = yyn;
L
Linus Torvalds 已提交
1641 1642 1643 1644 1645
  *++yyvsp = yylval;

  goto yynewstate;


1646 1647 1648 1649
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
L
Linus Torvalds 已提交
1650 1651 1652
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
1653
  goto yyreduce;
L
Linus Torvalds 已提交
1654

1655 1656 1657 1658

/*-----------------------------.
| yyreduce -- Do a reduction.  |
`-----------------------------*/
L
Linus Torvalds 已提交
1659
yyreduce:
1660
  /* yyn is the number of a rule to reduce with.  */
L
Linus Torvalds 已提交
1661 1662
  yylen = yyr2[yyn];

1663 1664
  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ = $1'.
L
Linus Torvalds 已提交
1665

1666 1667 1668 1669 1670 1671
     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];
L
Linus Torvalds 已提交
1672 1673


1674 1675 1676 1677
  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
        case 4:
S
Sam Ravnborg 已提交
1678
#line 108 "scripts/genksyms/parse.y"
1679 1680 1681 1682
    { is_typedef = 0; is_extern = 0; current_name = NULL; decl_spec = NULL; ;}
    break;

  case 5:
S
Sam Ravnborg 已提交
1683 1684
#line 110 "scripts/genksyms/parse.y"
    { free_list(*(yyvsp[(2) - (2)]), NULL); *(yyvsp[(2) - (2)]) = NULL; ;}
1685 1686 1687
    break;

  case 6:
S
Sam Ravnborg 已提交
1688
#line 114 "scripts/genksyms/parse.y"
1689 1690 1691 1692
    { is_typedef = 1; ;}
    break;

  case 7:
S
Sam Ravnborg 已提交
1693 1694
#line 115 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(4) - (4)]); ;}
1695 1696
    break;

S
Sam Ravnborg 已提交
1697 1698 1699
  case 8:
#line 116 "scripts/genksyms/parse.y"
    { is_typedef = 1; ;}
1700 1701
    break;

S
Sam Ravnborg 已提交
1702 1703 1704
  case 9:
#line 117 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
1705 1706 1707
    break;

  case 14:
S
Sam Ravnborg 已提交
1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718
#line 122 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
    break;

  case 15:
#line 123 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
    break;

  case 16:
#line 128 "scripts/genksyms/parse.y"
1719
    { if (current_name) {
S
Sam Ravnborg 已提交
1720 1721
		    struct string_list *decl = (*(yyvsp[(3) - (3)]))->next;
		    (*(yyvsp[(3) - (3)]))->next = NULL;
L
Linus Torvalds 已提交
1722 1723 1724 1725 1726
		    add_symbol(current_name,
			       is_typedef ? SYM_TYPEDEF : SYM_NORMAL,
			       decl, is_extern);
		    current_name = NULL;
		  }
S
Sam Ravnborg 已提交
1727
		  (yyval) = (yyvsp[(3) - (3)]);
1728 1729 1730
		;}
    break;

S
Sam Ravnborg 已提交
1731 1732
  case 17:
#line 141 "scripts/genksyms/parse.y"
1733 1734 1735
    { (yyval) = NULL; ;}
    break;

S
Sam Ravnborg 已提交
1736 1737 1738 1739
  case 19:
#line 147 "scripts/genksyms/parse.y"
    { struct string_list *decl = *(yyvsp[(1) - (1)]);
		  *(yyvsp[(1) - (1)]) = NULL;
L
Linus Torvalds 已提交
1740 1741 1742
		  add_symbol(current_name,
			     is_typedef ? SYM_TYPEDEF : SYM_NORMAL, decl, is_extern);
		  current_name = NULL;
S
Sam Ravnborg 已提交
1743
		  (yyval) = (yyvsp[(1) - (1)]);
1744 1745 1746
		;}
    break;

S
Sam Ravnborg 已提交
1747 1748 1749 1750 1751 1752
  case 20:
#line 155 "scripts/genksyms/parse.y"
    { struct string_list *decl = *(yyvsp[(3) - (3)]);
		  *(yyvsp[(3) - (3)]) = NULL;
		  free_list(*(yyvsp[(2) - (3)]), NULL);
		  *(yyvsp[(2) - (3)]) = decl_spec;
L
Linus Torvalds 已提交
1753 1754 1755
		  add_symbol(current_name,
			     is_typedef ? SYM_TYPEDEF : SYM_NORMAL, decl, is_extern);
		  current_name = NULL;
S
Sam Ravnborg 已提交
1756
		  (yyval) = (yyvsp[(3) - (3)]);
1757 1758 1759
		;}
    break;

S
Sam Ravnborg 已提交
1760 1761 1762
  case 21:
#line 168 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(4) - (4)]) ? (yyvsp[(4) - (4)]) : (yyvsp[(3) - (4)]) ? (yyvsp[(3) - (4)]) : (yyvsp[(2) - (4)]) ? (yyvsp[(2) - (4)]) : (yyvsp[(1) - (4)]); ;}
1763 1764
    break;

S
Sam Ravnborg 已提交
1765 1766
  case 22:
#line 173 "scripts/genksyms/parse.y"
1767 1768 1769
    { decl_spec = NULL; ;}
    break;

S
Sam Ravnborg 已提交
1770 1771 1772
  case 24:
#line 178 "scripts/genksyms/parse.y"
    { decl_spec = *(yyvsp[(1) - (1)]); ;}
1773 1774
    break;

S
Sam Ravnborg 已提交
1775 1776 1777
  case 25:
#line 179 "scripts/genksyms/parse.y"
    { decl_spec = *(yyvsp[(2) - (2)]); ;}
1778 1779
    break;

S
Sam Ravnborg 已提交
1780 1781
  case 26:
#line 184 "scripts/genksyms/parse.y"
1782
    { /* Version 2 checksumming ignores storage class, as that
L
Linus Torvalds 已提交
1783
		     is really irrelevant to the linkage.  */
S
Sam Ravnborg 已提交
1784 1785
		  remove_node((yyvsp[(1) - (1)]));
		  (yyval) = (yyvsp[(1) - (1)]);
1786 1787 1788
		;}
    break;

S
Sam Ravnborg 已提交
1789 1790 1791
  case 31:
#line 196 "scripts/genksyms/parse.y"
    { is_extern = 1; (yyval) = (yyvsp[(1) - (1)]); ;}
1792 1793
    break;

S
Sam Ravnborg 已提交
1794 1795 1796
  case 32:
#line 197 "scripts/genksyms/parse.y"
    { is_extern = 0; (yyval) = (yyvsp[(1) - (1)]); ;}
1797 1798
    break;

S
Sam Ravnborg 已提交
1799 1800 1801
  case 37:
#line 209 "scripts/genksyms/parse.y"
    { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_STRUCT; (yyval) = (yyvsp[(2) - (2)]); ;}
1802 1803
    break;

S
Sam Ravnborg 已提交
1804 1805 1806
  case 38:
#line 211 "scripts/genksyms/parse.y"
    { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_UNION; (yyval) = (yyvsp[(2) - (2)]); ;}
1807 1808
    break;

S
Sam Ravnborg 已提交
1809 1810 1811
  case 39:
#line 213 "scripts/genksyms/parse.y"
    { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_ENUM; (yyval) = (yyvsp[(2) - (2)]); ;}
1812 1813
    break;

S
Sam Ravnborg 已提交
1814 1815 1816
  case 40:
#line 217 "scripts/genksyms/parse.y"
    { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
L
Linus Torvalds 已提交
1817
		  r = copy_node(i); r->tag = SYM_STRUCT;
S
Sam Ravnborg 已提交
1818
		  r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
L
Linus Torvalds 已提交
1819
		  add_symbol(i->string, SYM_STRUCT, s, is_extern);
S
Sam Ravnborg 已提交
1820
		  (yyval) = (yyvsp[(3) - (3)]);
1821 1822 1823
		;}
    break;

S
Sam Ravnborg 已提交
1824 1825 1826
  case 41:
#line 224 "scripts/genksyms/parse.y"
    { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
L
Linus Torvalds 已提交
1827
		  r = copy_node(i); r->tag = SYM_UNION;
S
Sam Ravnborg 已提交
1828
		  r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
L
Linus Torvalds 已提交
1829
		  add_symbol(i->string, SYM_UNION, s, is_extern);
S
Sam Ravnborg 已提交
1830
		  (yyval) = (yyvsp[(3) - (3)]);
1831 1832 1833
		;}
    break;

S
Sam Ravnborg 已提交
1834 1835 1836
  case 42:
#line 231 "scripts/genksyms/parse.y"
    { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
L
Linus Torvalds 已提交
1837
		  r = copy_node(i); r->tag = SYM_ENUM;
S
Sam Ravnborg 已提交
1838
		  r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
L
Linus Torvalds 已提交
1839
		  add_symbol(i->string, SYM_ENUM, s, is_extern);
S
Sam Ravnborg 已提交
1840
		  (yyval) = (yyvsp[(3) - (3)]);
1841 1842 1843
		;}
    break;

S
Sam Ravnborg 已提交
1844 1845 1846
  case 43:
#line 239 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
1847 1848
    break;

S
Sam Ravnborg 已提交
1849 1850 1851
  case 44:
#line 240 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
1852 1853
    break;

S
Sam Ravnborg 已提交
1854 1855 1856
  case 45:
#line 241 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
1857 1858
    break;

S
Sam Ravnborg 已提交
1859 1860 1861
  case 56:
#line 255 "scripts/genksyms/parse.y"
    { (*(yyvsp[(1) - (1)]))->tag = SYM_TYPEDEF; (yyval) = (yyvsp[(1) - (1)]); ;}
1862 1863
    break;

S
Sam Ravnborg 已提交
1864 1865 1866
  case 57:
#line 260 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
1867 1868
    break;

S
Sam Ravnborg 已提交
1869 1870
  case 58:
#line 264 "scripts/genksyms/parse.y"
1871 1872 1873
    { (yyval) = NULL; ;}
    break;

S
Sam Ravnborg 已提交
1874 1875 1876
  case 61:
#line 270 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
1877 1878
    break;

S
Sam Ravnborg 已提交
1879 1880
  case 65:
#line 276 "scripts/genksyms/parse.y"
1881
    { /* restrict has no effect in prototypes so ignore it */
S
Sam Ravnborg 已提交
1882 1883
		  remove_node((yyvsp[(1) - (1)]));
		  (yyval) = (yyvsp[(1) - (1)]);
1884 1885 1886
		;}
    break;

S
Sam Ravnborg 已提交
1887 1888 1889
  case 66:
#line 283 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
1890 1891
    break;

S
Sam Ravnborg 已提交
1892 1893
  case 68:
#line 289 "scripts/genksyms/parse.y"
1894
    { if (current_name != NULL) {
L
Linus Torvalds 已提交
1895 1896 1897
		    error_with_pos("unexpected second declaration name");
		    YYERROR;
		  } else {
S
Sam Ravnborg 已提交
1898 1899
		    current_name = (*(yyvsp[(1) - (1)]))->string;
		    (yyval) = (yyvsp[(1) - (1)]);
L
Linus Torvalds 已提交
1900
		  }
1901 1902 1903 1904
		;}
    break;

  case 69:
S
Sam Ravnborg 已提交
1905 1906
#line 298 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(4) - (4)]); ;}
1907 1908 1909
    break;

  case 70:
S
Sam Ravnborg 已提交
1910 1911
#line 300 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(4) - (4)]); ;}
1912 1913 1914
    break;

  case 71:
S
Sam Ravnborg 已提交
1915 1916
#line 302 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
1917 1918 1919
    break;

  case 72:
S
Sam Ravnborg 已提交
1920 1921
#line 304 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
1922 1923
    break;

S
Sam Ravnborg 已提交
1924 1925 1926
  case 73:
#line 306 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
1927 1928
    break;

S
Sam Ravnborg 已提交
1929 1930 1931
  case 74:
#line 312 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
1932 1933 1934
    break;

  case 78:
S
Sam Ravnborg 已提交
1935 1936
#line 320 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(4) - (4)]); ;}
1937 1938 1939
    break;

  case 79:
S
Sam Ravnborg 已提交
1940 1941
#line 322 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(4) - (4)]); ;}
1942 1943 1944
    break;

  case 80:
S
Sam Ravnborg 已提交
1945 1946
#line 324 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
1947 1948 1949
    break;

  case 81:
S
Sam Ravnborg 已提交
1950 1951
#line 326 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
1952 1953
    break;

S
Sam Ravnborg 已提交
1954 1955 1956
  case 82:
#line 328 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
1957 1958
    break;

S
Sam Ravnborg 已提交
1959 1960 1961
  case 83:
#line 332 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
1962 1963
    break;

S
Sam Ravnborg 已提交
1964 1965 1966
  case 85:
#line 334 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
1967 1968
    break;

S
Sam Ravnborg 已提交
1969 1970 1971
  case 86:
#line 338 "scripts/genksyms/parse.y"
    { (yyval) = NULL; ;}
1972 1973 1974
    break;

  case 89:
S
Sam Ravnborg 已提交
1975 1976
#line 345 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
1977 1978
    break;

S
Sam Ravnborg 已提交
1979 1980 1981
  case 90:
#line 350 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
1982 1983
    break;

S
Sam Ravnborg 已提交
1984 1985 1986
  case 91:
#line 355 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
1987 1988 1989
    break;

  case 93:
S
Sam Ravnborg 已提交
1990 1991
#line 360 "scripts/genksyms/parse.y"
    { (yyval) = NULL; ;}
1992 1993 1994
    break;

  case 94:
S
Sam Ravnborg 已提交
1995 1996 1997 1998 1999 2000
#line 362 "scripts/genksyms/parse.y"
    { /* For version 2 checksums, we don't want to remember
		     private parameter names.  */
		  remove_node((yyvsp[(1) - (1)]));
		  (yyval) = (yyvsp[(1) - (1)]);
		;}
2001 2002 2003
    break;

  case 95:
S
Sam Ravnborg 已提交
2004 2005 2006 2007
#line 370 "scripts/genksyms/parse.y"
    { remove_node((yyvsp[(1) - (1)]));
		  (yyval) = (yyvsp[(1) - (1)]);
		;}
2008 2009 2010
    break;

  case 96:
S
Sam Ravnborg 已提交
2011 2012
#line 374 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(4) - (4)]); ;}
2013 2014 2015
    break;

  case 97:
S
Sam Ravnborg 已提交
2016 2017
#line 376 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(4) - (4)]); ;}
2018 2019 2020
    break;

  case 98:
S
Sam Ravnborg 已提交
2021 2022
#line 378 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
2023 2024 2025
    break;

  case 99:
S
Sam Ravnborg 已提交
2026 2027
#line 380 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
2028 2029 2030
    break;

  case 100:
S
Sam Ravnborg 已提交
2031 2032
#line 382 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
2033 2034
    break;

S
Sam Ravnborg 已提交
2035 2036 2037 2038 2039 2040 2041
  case 101:
#line 387 "scripts/genksyms/parse.y"
    { struct string_list *decl = *(yyvsp[(2) - (3)]);
		  *(yyvsp[(2) - (3)]) = NULL;
		  add_symbol(current_name, SYM_NORMAL, decl, is_extern);
		  (yyval) = (yyvsp[(3) - (3)]);
		;}
2042 2043
    break;

S
Sam Ravnborg 已提交
2044 2045 2046
  case 102:
#line 395 "scripts/genksyms/parse.y"
    { (yyval) = NULL; ;}
2047 2048 2049
    break;

  case 104:
S
Sam Ravnborg 已提交
2050 2051
#line 402 "scripts/genksyms/parse.y"
    { remove_list((yyvsp[(2) - (2)]), &(*(yyvsp[(1) - (2)]))->next); (yyval) = (yyvsp[(2) - (2)]); ;}
2052 2053 2054
    break;

  case 105:
S
Sam Ravnborg 已提交
2055 2056
#line 406 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
2057 2058
    break;

S
Sam Ravnborg 已提交
2059 2060 2061
  case 106:
#line 407 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
2062 2063
    break;

S
Sam Ravnborg 已提交
2064 2065 2066
  case 107:
#line 411 "scripts/genksyms/parse.y"
    { (yyval) = NULL; ;}
2067 2068 2069
    break;

  case 110:
S
Sam Ravnborg 已提交
2070 2071
#line 417 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
2072 2073 2074
    break;

  case 111:
S
Sam Ravnborg 已提交
2075 2076
#line 422 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
2077 2078
    break;

S
Sam Ravnborg 已提交
2079 2080 2081
  case 112:
#line 424 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
2082 2083
    break;

S
Sam Ravnborg 已提交
2084 2085 2086
  case 113:
#line 428 "scripts/genksyms/parse.y"
    { (yyval) = NULL; ;}
2087 2088 2089
    break;

  case 116:
S
Sam Ravnborg 已提交
2090 2091 2092 2093 2094 2095 2096
#line 434 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(3) - (3)]); ;}
    break;

  case 117:
#line 438 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
2097 2098 2099
    break;

  case 118:
S
Sam Ravnborg 已提交
2100 2101
#line 439 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
2102 2103
    break;

S
Sam Ravnborg 已提交
2104 2105 2106
  case 120:
#line 444 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
2107 2108 2109
    break;

  case 121:
S
Sam Ravnborg 已提交
2110 2111
#line 448 "scripts/genksyms/parse.y"
    { (yyval) = NULL; ;}
2112 2113
    break;

S
Sam Ravnborg 已提交
2114 2115 2116
  case 123:
#line 453 "scripts/genksyms/parse.y"
    { (yyval) = (yyvsp[(2) - (2)]); ;}
2117 2118 2119
    break;

  case 124:
S
Sam Ravnborg 已提交
2120 2121
#line 457 "scripts/genksyms/parse.y"
    { (yyval) = NULL; ;}
2122 2123
    break;

S
Sam Ravnborg 已提交
2124 2125 2126 2127
  case 126:
#line 463 "scripts/genksyms/parse.y"
    { export_symbol((*(yyvsp[(3) - (5)]))->string); (yyval) = (yyvsp[(5) - (5)]); ;}
    break;
2128

L
Linus Torvalds 已提交
2129

S
Sam Ravnborg 已提交
2130 2131 2132 2133 2134
/* Line 1267 of yacc.c.  */
#line 2132 "scripts/genksyms/parse.c"
      default: break;
    }
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
2135

S
Sam Ravnborg 已提交
2136 2137
  YYPOPSTACK (yylen);
  yylen = 0;
2138
  YY_STACK_PRINT (yyss, yyssp);
L
Linus Torvalds 已提交
2139 2140 2141 2142

  *++yyvsp = yyval;


2143 2144 2145
  /* Now `shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */
L
Linus Torvalds 已提交
2146 2147 2148

  yyn = yyr1[yyn];

2149 2150
  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
L
Linus Torvalds 已提交
2151 2152
    yystate = yytable[yystate];
  else
2153
    yystate = yydefgoto[yyn - YYNTOKENS];
L
Linus Torvalds 已提交
2154 2155 2156 2157

  goto yynewstate;


2158 2159 2160 2161 2162 2163
/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
L
Linus Torvalds 已提交
2164 2165
    {
      ++yynerrs;
S
Sam Ravnborg 已提交
2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181
#if ! YYERROR_VERBOSE
      yyerror (YY_("syntax error"));
#else
      {
	YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
	if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
	  {
	    YYSIZE_T yyalloc = 2 * yysize;
	    if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
	      yyalloc = YYSTACK_ALLOC_MAXIMUM;
	    if (yymsg != yymsgbuf)
	      YYSTACK_FREE (yymsg);
	    yymsg = (char *) YYSTACK_ALLOC (yyalloc);
	    if (yymsg)
	      yymsg_alloc = yyalloc;
	    else
2182
	      {
S
Sam Ravnborg 已提交
2183 2184
		yymsg = yymsgbuf;
		yymsg_alloc = sizeof yymsgbuf;
2185
	      }
S
Sam Ravnborg 已提交
2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200
	  }

	if (0 < yysize && yysize <= yymsg_alloc)
	  {
	    (void) yysyntax_error (yymsg, yystate, yychar);
	    yyerror (yymsg);
	  }
	else
	  {
	    yyerror (YY_("syntax error"));
	    if (yysize != 0)
	      goto yyexhaustedlab;
	  }
      }
#endif
L
Linus Torvalds 已提交
2201 2202
    }

2203

L
Linus Torvalds 已提交
2204 2205 2206

  if (yyerrstatus == 3)
    {
2207 2208 2209 2210
      /* If just tried and failed to reuse look-ahead token after an
	 error, discard it.  */

      if (yychar <= YYEOF)
S
Sam Ravnborg 已提交
2211 2212
	{
	  /* Return failure if at end of input.  */
2213
	  if (yychar == YYEOF)
S
Sam Ravnborg 已提交
2214 2215
	    YYABORT;
	}
2216 2217
      else
	{
S
Sam Ravnborg 已提交
2218 2219
	  yydestruct ("Error: discarding",
		      yytoken, &yylval);
2220 2221
	  yychar = YYEMPTY;
	}
L
Linus Torvalds 已提交
2222 2223
    }

2224 2225 2226
  /* Else will try to reuse look-ahead token after shifting the error
     token.  */
  goto yyerrlab1;
L
Linus Torvalds 已提交
2227 2228


2229 2230 2231 2232
/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:
L
Linus Torvalds 已提交
2233

S
Sam Ravnborg 已提交
2234 2235 2236 2237
  /* Pacify compilers like GCC when the user code never invokes
     YYERROR and the label yyerrorlab therefore never appears in user
     code.  */
  if (/*CONSTCOND*/ 0)
2238
     goto yyerrorlab;
L
Linus Torvalds 已提交
2239

S
Sam Ravnborg 已提交
2240 2241 2242 2243 2244
  /* Do not reclaim the symbols of the rule which action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
2245 2246 2247
  yystate = *yyssp;
  goto yyerrlab1;

L
Linus Torvalds 已提交
2248

2249 2250 2251 2252 2253
/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;	/* Each real token shifted decrements this.  */
L
Linus Torvalds 已提交
2254

2255
  for (;;)
L
Linus Torvalds 已提交
2256
    {
2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267
      yyn = yypact[yystate];
      if (yyn != YYPACT_NINF)
	{
	  yyn += YYTERROR;
	  if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
	    {
	      yyn = yytable[yyn];
	      if (0 < yyn)
		break;
	    }
	}
L
Linus Torvalds 已提交
2268

2269 2270 2271
      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
	YYABORT;
L
Linus Torvalds 已提交
2272 2273


S
Sam Ravnborg 已提交
2274 2275 2276
      yydestruct ("Error: popping",
		  yystos[yystate], yyvsp);
      YYPOPSTACK (1);
2277 2278
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
L
Linus Torvalds 已提交
2279 2280 2281 2282 2283 2284
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  *++yyvsp = yylval;
2285 2286


S
Sam Ravnborg 已提交
2287
  /* Shift the error token.  */
2288
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
L
Linus Torvalds 已提交
2289 2290 2291 2292

  yystate = yyn;
  goto yynewstate;

2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308

/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturn;

/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturn;

#ifndef yyoverflow
S
Sam Ravnborg 已提交
2309 2310 2311 2312 2313
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here.  |
`-------------------------------------------------*/
yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
2314 2315
  yyresult = 2;
  /* Fall through.  */
L
Linus Torvalds 已提交
2316 2317
#endif

2318
yyreturn:
S
Sam Ravnborg 已提交
2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331
  if (yychar != YYEOF && yychar != YYEMPTY)
     yydestruct ("Cleanup: discarding lookahead",
		 yytoken, &yylval);
  /* Do not reclaim the symbols of the rule which action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
		  yystos[*yyssp], yyvsp);
      YYPOPSTACK (1);
    }
2332 2333 2334
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
L
Linus Torvalds 已提交
2335
#endif
S
Sam Ravnborg 已提交
2336 2337 2338 2339 2340 2341
#if YYERROR_VERBOSE
  if (yymsg != yymsgbuf)
    YYSTACK_FREE (yymsg);
#endif
  /* Make sure YYID is used.  */
  return YYID (yyresult);
L
Linus Torvalds 已提交
2342
}
2343 2344


S
Sam Ravnborg 已提交
2345
#line 467 "scripts/genksyms/parse.y"
L
Linus Torvalds 已提交
2346 2347 2348 2349 2350 2351 2352


static void
yyerror(const char *e)
{
  error_with_pos("%s", e);
}
2353