Import binutils 2.18
[nacl-binutils.git] / binutils / rcparse.c
blobf620781654ffa621c50a2f757b9ee36a22a622e7
1 /* A Bison parser, made by GNU Bison 2.3. */
3 /* Skeleton implementation for Bison's Yacc-like parsers in C
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
23 /* As a special exception, you may create a larger work that contains
24 part or all of the Bison parser skeleton and distribute that work
25 under terms of your choice, so long as that work isn't itself a
26 parser generator using the skeleton or a modified version thereof
27 as a parser skeleton. Alternatively, if you modify or redistribute
28 the parser skeleton itself, you may (at your option) remove this
29 special exception, which will cause the skeleton and the resulting
30 Bison output files to be licensed under the GNU General Public
31 License without this special exception.
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
36 /* C LALR(1) parser skeleton written by Richard Stallman, by
37 simplifying the original so-called "semantic" parser. */
39 /* All symbols defined below should begin with yy or YY, to avoid
40 infringing on user name space. This should be done even for local
41 variables, as they might otherwise be expanded by user macros.
42 There are some unavoidable exceptions within include files to
43 define necessary library symbols; they are noted "INFRINGES ON
44 USER NAME SPACE" below. */
46 /* Identify Bison output. */
47 #define YYBISON 1
49 /* Bison version. */
50 #define YYBISON_VERSION "2.3"
52 /* Skeleton name. */
53 #define YYSKELETON_NAME "yacc.c"
55 /* Pure parsers. */
56 #define YYPURE 0
58 /* Using locations. */
59 #define YYLSP_NEEDED 0
63 /* Tokens. */
64 #ifndef YYTOKENTYPE
65 # define YYTOKENTYPE
66 /* Put the tokens into the symbol table, so that GDB and other debuggers
67 know about them. */
68 enum yytokentype {
69 BEG = 258,
70 END = 259,
71 ACCELERATORS = 260,
72 VIRTKEY = 261,
73 ASCII = 262,
74 NOINVERT = 263,
75 SHIFT = 264,
76 CONTROL = 265,
77 ALT = 266,
78 BITMAP = 267,
79 CURSOR = 268,
80 DIALOG = 269,
81 DIALOGEX = 270,
82 EXSTYLE = 271,
83 CAPTION = 272,
84 CLASS = 273,
85 STYLE = 274,
86 AUTO3STATE = 275,
87 AUTOCHECKBOX = 276,
88 AUTORADIOBUTTON = 277,
89 CHECKBOX = 278,
90 COMBOBOX = 279,
91 CTEXT = 280,
92 DEFPUSHBUTTON = 281,
93 EDITTEXT = 282,
94 GROUPBOX = 283,
95 LISTBOX = 284,
96 LTEXT = 285,
97 PUSHBOX = 286,
98 PUSHBUTTON = 287,
99 RADIOBUTTON = 288,
100 RTEXT = 289,
101 SCROLLBAR = 290,
102 STATE3 = 291,
103 USERBUTTON = 292,
104 BEDIT = 293,
105 HEDIT = 294,
106 IEDIT = 295,
107 FONT = 296,
108 ICON = 297,
109 ANICURSOR = 298,
110 ANIICON = 299,
111 DLGINCLUDE = 300,
112 DLGINIT = 301,
113 FONTDIR = 302,
114 HTML = 303,
115 MANIFEST = 304,
116 PLUGPLAY = 305,
117 VXD = 306,
118 TOOLBAR = 307,
119 BUTTON = 308,
120 LANGUAGE = 309,
121 CHARACTERISTICS = 310,
122 VERSIONK = 311,
123 MENU = 312,
124 MENUEX = 313,
125 MENUITEM = 314,
126 SEPARATOR = 315,
127 POPUP = 316,
128 CHECKED = 317,
129 GRAYED = 318,
130 HELP = 319,
131 INACTIVE = 320,
132 MENUBARBREAK = 321,
133 MENUBREAK = 322,
134 MESSAGETABLE = 323,
135 RCDATA = 324,
136 STRINGTABLE = 325,
137 VERSIONINFO = 326,
138 FILEVERSION = 327,
139 PRODUCTVERSION = 328,
140 FILEFLAGSMASK = 329,
141 FILEFLAGS = 330,
142 FILEOS = 331,
143 FILETYPE = 332,
144 FILESUBTYPE = 333,
145 BLOCKSTRINGFILEINFO = 334,
146 BLOCKVARFILEINFO = 335,
147 VALUE = 336,
148 BLOCK = 337,
149 MOVEABLE = 338,
150 FIXED = 339,
151 PURE = 340,
152 IMPURE = 341,
153 PRELOAD = 342,
154 LOADONCALL = 343,
155 DISCARDABLE = 344,
156 NOT = 345,
157 QUOTEDUNISTRING = 346,
158 QUOTEDSTRING = 347,
159 STRING = 348,
160 NUMBER = 349,
161 SIZEDUNISTRING = 350,
162 SIZEDSTRING = 351,
163 IGNORED_TOKEN = 352,
164 NEG = 353
166 #endif
167 /* Tokens. */
168 #define BEG 258
169 #define END 259
170 #define ACCELERATORS 260
171 #define VIRTKEY 261
172 #define ASCII 262
173 #define NOINVERT 263
174 #define SHIFT 264
175 #define CONTROL 265
176 #define ALT 266
177 #define BITMAP 267
178 #define CURSOR 268
179 #define DIALOG 269
180 #define DIALOGEX 270
181 #define EXSTYLE 271
182 #define CAPTION 272
183 #define CLASS 273
184 #define STYLE 274
185 #define AUTO3STATE 275
186 #define AUTOCHECKBOX 276
187 #define AUTORADIOBUTTON 277
188 #define CHECKBOX 278
189 #define COMBOBOX 279
190 #define CTEXT 280
191 #define DEFPUSHBUTTON 281
192 #define EDITTEXT 282
193 #define GROUPBOX 283
194 #define LISTBOX 284
195 #define LTEXT 285
196 #define PUSHBOX 286
197 #define PUSHBUTTON 287
198 #define RADIOBUTTON 288
199 #define RTEXT 289
200 #define SCROLLBAR 290
201 #define STATE3 291
202 #define USERBUTTON 292
203 #define BEDIT 293
204 #define HEDIT 294
205 #define IEDIT 295
206 #define FONT 296
207 #define ICON 297
208 #define ANICURSOR 298
209 #define ANIICON 299
210 #define DLGINCLUDE 300
211 #define DLGINIT 301
212 #define FONTDIR 302
213 #define HTML 303
214 #define MANIFEST 304
215 #define PLUGPLAY 305
216 #define VXD 306
217 #define TOOLBAR 307
218 #define BUTTON 308
219 #define LANGUAGE 309
220 #define CHARACTERISTICS 310
221 #define VERSIONK 311
222 #define MENU 312
223 #define MENUEX 313
224 #define MENUITEM 314
225 #define SEPARATOR 315
226 #define POPUP 316
227 #define CHECKED 317
228 #define GRAYED 318
229 #define HELP 319
230 #define INACTIVE 320
231 #define MENUBARBREAK 321
232 #define MENUBREAK 322
233 #define MESSAGETABLE 323
234 #define RCDATA 324
235 #define STRINGTABLE 325
236 #define VERSIONINFO 326
237 #define FILEVERSION 327
238 #define PRODUCTVERSION 328
239 #define FILEFLAGSMASK 329
240 #define FILEFLAGS 330
241 #define FILEOS 331
242 #define FILETYPE 332
243 #define FILESUBTYPE 333
244 #define BLOCKSTRINGFILEINFO 334
245 #define BLOCKVARFILEINFO 335
246 #define VALUE 336
247 #define BLOCK 337
248 #define MOVEABLE 338
249 #define FIXED 339
250 #define PURE 340
251 #define IMPURE 341
252 #define PRELOAD 342
253 #define LOADONCALL 343
254 #define DISCARDABLE 344
255 #define NOT 345
256 #define QUOTEDUNISTRING 346
257 #define QUOTEDSTRING 347
258 #define STRING 348
259 #define NUMBER 349
260 #define SIZEDUNISTRING 350
261 #define SIZEDSTRING 351
262 #define IGNORED_TOKEN 352
263 #define NEG 353
268 /* Copy the first part of user declarations. */
269 #line 1 "rcparse.y"
270 /* rcparse.y -- parser for Windows rc files
271 Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007
272 Free Software Foundation, Inc.
273 Written by Ian Lance Taylor, Cygnus Support.
274 Extended by Kai Tietz, Onevision.
276 This file is part of GNU Binutils.
278 This program is free software; you can redistribute it and/or modify
279 it under the terms of the GNU General Public License as published by
280 the Free Software Foundation; either version 3 of the License, or
281 (at your option) any later version.
283 This program is distributed in the hope that it will be useful,
284 but WITHOUT ANY WARRANTY; without even the implied warranty of
285 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
286 GNU General Public License for more details.
288 You should have received a copy of the GNU General Public License
289 along with this program; if not, write to the Free Software
290 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
291 02110-1301, USA. */
294 /* This is a parser for Windows rc files. It is based on the parser
295 by Gunther Ebert <gunther.ebert@ixos-leipzig.de>. */
297 #include "sysdep.h"
298 #include "bfd.h"
299 #include "bucomm.h"
300 #include "libiberty.h"
301 #include "windres.h"
302 #include "safe-ctype.h"
304 /* The current language. */
306 static unsigned short language;
308 /* The resource information during a sub statement. */
310 static rc_res_res_info sub_res_info;
312 /* Dialog information. This is built by the nonterminals styles and
313 controls. */
315 static rc_dialog dialog;
317 /* This is used when building a style. It is modified by the
318 nonterminal styleexpr. */
320 static unsigned long style;
322 /* These are used when building a control. They are set before using
323 control_params. */
325 static rc_uint_type base_style;
326 static rc_uint_type default_style;
327 static rc_res_id class;
328 static rc_res_id res_text_field;
329 static unichar null_unichar;
331 /* This is used for COMBOBOX, LISTBOX and EDITTEXT which
332 do not allow resource 'text' field in control definition. */
333 static const rc_res_id res_null_text = { 1, {{0, &null_unichar}}};
337 /* Enabling traces. */
338 #ifndef YYDEBUG
339 # define YYDEBUG 0
340 #endif
342 /* Enabling verbose error messages. */
343 #ifdef YYERROR_VERBOSE
344 # undef YYERROR_VERBOSE
345 # define YYERROR_VERBOSE 1
346 #else
347 # define YYERROR_VERBOSE 0
348 #endif
350 /* Enabling the token table. */
351 #ifndef YYTOKEN_TABLE
352 # define YYTOKEN_TABLE 0
353 #endif
355 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
356 typedef union YYSTYPE
357 #line 69 "rcparse.y"
359 rc_accelerator acc;
360 rc_accelerator *pacc;
361 rc_dialog_control *dialog_control;
362 rc_menuitem *menuitem;
363 struct
365 rc_rcdata_item *first;
366 rc_rcdata_item *last;
367 } rcdata;
368 rc_rcdata_item *rcdata_item;
369 rc_fixed_versioninfo *fixver;
370 rc_ver_info *verinfo;
371 rc_ver_stringinfo *verstring;
372 rc_ver_varinfo *vervar;
373 rc_toolbar_item *toobar_item;
374 rc_res_id id;
375 rc_res_res_info res_info;
376 struct
378 rc_uint_type on;
379 rc_uint_type off;
380 } memflags;
381 struct
383 rc_uint_type val;
384 /* Nonzero if this number was explicitly specified as long. */
385 int dword;
386 } i;
387 rc_uint_type il;
388 rc_uint_type is;
389 const char *s;
390 struct
392 rc_uint_type length;
393 const char *s;
394 } ss;
395 unichar *uni;
396 struct
398 rc_uint_type length;
399 const unichar *s;
400 } suni;
402 /* Line 187 of yacc.c. */
403 #line 404 "rcparse.c"
404 YYSTYPE;
405 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
406 # define YYSTYPE_IS_DECLARED 1
407 # define YYSTYPE_IS_TRIVIAL 1
408 #endif
412 /* Copy the second part of user declarations. */
415 /* Line 216 of yacc.c. */
416 #line 417 "rcparse.c"
418 #ifdef short
419 # undef short
420 #endif
422 #ifdef YYTYPE_UINT8
423 typedef YYTYPE_UINT8 yytype_uint8;
424 #else
425 typedef unsigned char yytype_uint8;
426 #endif
428 #ifdef YYTYPE_INT8
429 typedef YYTYPE_INT8 yytype_int8;
430 #elif (defined __STDC__ || defined __C99__FUNC__ \
431 || defined __cplusplus || defined _MSC_VER)
432 typedef signed char yytype_int8;
433 #else
434 typedef short int yytype_int8;
435 #endif
437 #ifdef YYTYPE_UINT16
438 typedef YYTYPE_UINT16 yytype_uint16;
439 #else
440 typedef unsigned short int yytype_uint16;
441 #endif
443 #ifdef YYTYPE_INT16
444 typedef YYTYPE_INT16 yytype_int16;
445 #else
446 typedef short int yytype_int16;
447 #endif
449 #ifndef YYSIZE_T
450 # ifdef __SIZE_TYPE__
451 # define YYSIZE_T __SIZE_TYPE__
452 # elif defined size_t
453 # define YYSIZE_T size_t
454 # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
455 || defined __cplusplus || defined _MSC_VER)
456 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
457 # define YYSIZE_T size_t
458 # else
459 # define YYSIZE_T unsigned int
460 # endif
461 #endif
463 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
465 #ifndef YY_
466 # if YYENABLE_NLS
467 # if ENABLE_NLS
468 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
469 # define YY_(msgid) dgettext ("bison-runtime", msgid)
470 # endif
471 # endif
472 # ifndef YY_
473 # define YY_(msgid) msgid
474 # endif
475 #endif
477 /* Suppress unused-variable warnings by "using" E. */
478 #if ! defined lint || defined __GNUC__
479 # define YYUSE(e) ((void) (e))
480 #else
481 # define YYUSE(e) /* empty */
482 #endif
484 /* Identity function, used to suppress warnings about constant conditions. */
485 #ifndef lint
486 # define YYID(n) (n)
487 #else
488 #if (defined __STDC__ || defined __C99__FUNC__ \
489 || defined __cplusplus || defined _MSC_VER)
490 static int
491 YYID (int i)
492 #else
493 static int
494 YYID (i)
495 int i;
496 #endif
498 return i;
500 #endif
502 #if ! defined yyoverflow || YYERROR_VERBOSE
504 /* The parser invokes alloca or malloc; define the necessary symbols. */
506 # ifdef YYSTACK_USE_ALLOCA
507 # if YYSTACK_USE_ALLOCA
508 # ifdef __GNUC__
509 # define YYSTACK_ALLOC __builtin_alloca
510 # elif defined __BUILTIN_VA_ARG_INCR
511 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
512 # elif defined _AIX
513 # define YYSTACK_ALLOC __alloca
514 # elif defined _MSC_VER
515 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
516 # define alloca _alloca
517 # else
518 # define YYSTACK_ALLOC alloca
519 # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
520 || defined __cplusplus || defined _MSC_VER)
521 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
522 # ifndef _STDLIB_H
523 # define _STDLIB_H 1
524 # endif
525 # endif
526 # endif
527 # endif
528 # endif
530 # ifdef YYSTACK_ALLOC
531 /* Pacify GCC's `empty if-body' warning. */
532 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
533 # ifndef YYSTACK_ALLOC_MAXIMUM
534 /* The OS might guarantee only one guard page at the bottom of the stack,
535 and a page size can be as small as 4096 bytes. So we cannot safely
536 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
537 to allow for a few compiler-allocated temporary stack slots. */
538 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
539 # endif
540 # else
541 # define YYSTACK_ALLOC YYMALLOC
542 # define YYSTACK_FREE YYFREE
543 # ifndef YYSTACK_ALLOC_MAXIMUM
544 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
545 # endif
546 # if (defined __cplusplus && ! defined _STDLIB_H \
547 && ! ((defined YYMALLOC || defined malloc) \
548 && (defined YYFREE || defined free)))
549 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
550 # ifndef _STDLIB_H
551 # define _STDLIB_H 1
552 # endif
553 # endif
554 # ifndef YYMALLOC
555 # define YYMALLOC malloc
556 # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
557 || defined __cplusplus || defined _MSC_VER)
558 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
559 # endif
560 # endif
561 # ifndef YYFREE
562 # define YYFREE free
563 # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
564 || defined __cplusplus || defined _MSC_VER)
565 void free (void *); /* INFRINGES ON USER NAME SPACE */
566 # endif
567 # endif
568 # endif
569 #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
572 #if (! defined yyoverflow \
573 && (! defined __cplusplus \
574 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
576 /* A type that is properly aligned for any stack member. */
577 union yyalloc
579 yytype_int16 yyss;
580 YYSTYPE yyvs;
583 /* The size of the maximum gap between one aligned stack and the next. */
584 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
586 /* The size of an array large to enough to hold all stacks, each with
587 N elements. */
588 # define YYSTACK_BYTES(N) \
589 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
590 + YYSTACK_GAP_MAXIMUM)
592 /* Copy COUNT objects from FROM to TO. The source and destination do
593 not overlap. */
594 # ifndef YYCOPY
595 # if defined __GNUC__ && 1 < __GNUC__
596 # define YYCOPY(To, From, Count) \
597 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
598 # else
599 # define YYCOPY(To, From, Count) \
600 do \
602 YYSIZE_T yyi; \
603 for (yyi = 0; yyi < (Count); yyi++) \
604 (To)[yyi] = (From)[yyi]; \
606 while (YYID (0))
607 # endif
608 # endif
610 /* Relocate STACK from its old location to the new one. The
611 local variables YYSIZE and YYSTACKSIZE give the old and new number of
612 elements in the stack, and YYPTR gives the new location of the
613 stack. Advance YYPTR to a properly aligned location for the next
614 stack. */
615 # define YYSTACK_RELOCATE(Stack) \
616 do \
618 YYSIZE_T yynewbytes; \
619 YYCOPY (&yyptr->Stack, Stack, yysize); \
620 Stack = &yyptr->Stack; \
621 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
622 yyptr += yynewbytes / sizeof (*yyptr); \
624 while (YYID (0))
626 #endif
628 /* YYFINAL -- State number of the termination state. */
629 #define YYFINAL 2
630 /* YYLAST -- Last index in YYTABLE. */
631 #define YYLAST 849
633 /* YYNTOKENS -- Number of terminals. */
634 #define YYNTOKENS 112
635 /* YYNNTS -- Number of nonterminals. */
636 #define YYNNTS 99
637 /* YYNRULES -- Number of rules. */
638 #define YYNRULES 268
639 /* YYNRULES -- Number of states. */
640 #define YYNSTATES 514
642 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
643 #define YYUNDEFTOK 2
644 #define YYMAXUTOK 353
646 #define YYTRANSLATE(YYX) \
647 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
649 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
650 static const yytype_uint8 yytranslate[] =
652 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
653 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
654 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
655 2, 2, 2, 2, 2, 2, 2, 105, 100, 2,
656 110, 111, 103, 101, 108, 102, 2, 104, 2, 2,
657 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
658 2, 109, 2, 2, 2, 2, 2, 2, 2, 2,
659 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
660 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
661 2, 2, 2, 2, 99, 2, 2, 2, 2, 2,
662 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
663 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
664 2, 2, 2, 2, 98, 2, 106, 2, 2, 2,
665 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
666 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
667 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
668 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
669 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
670 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
671 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
672 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
673 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
674 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
675 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
676 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
677 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
678 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
679 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
680 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
681 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
682 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
683 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
684 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
685 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
686 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
687 95, 96, 97, 107
690 #if YYDEBUG
691 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
692 YYRHS. */
693 static const yytype_uint16 yyprhs[] =
695 0, 0, 3, 4, 7, 10, 13, 16, 19, 22,
696 25, 28, 31, 34, 37, 40, 43, 46, 49, 56,
697 57, 60, 63, 68, 70, 72, 74, 78, 81, 83,
698 85, 87, 89, 91, 93, 98, 103, 104, 118, 119,
699 133, 134, 149, 150, 154, 155, 159, 163, 167, 171,
700 175, 181, 188, 196, 205, 209, 213, 218, 222, 223,
701 226, 227, 232, 233, 238, 239, 244, 245, 250, 251,
702 256, 257, 261, 273, 286, 287, 292, 293, 298, 299,
703 303, 304, 309, 310, 315, 322, 331, 342, 354, 355,
704 360, 361, 365, 366, 371, 372, 377, 378, 383, 384,
705 389, 390, 395, 396, 400, 401, 406, 407, 423, 430,
706 439, 449, 452, 453, 456, 458, 460, 461, 465, 466,
707 470, 471, 475, 476, 480, 485, 490, 494, 501, 502,
708 505, 510, 513, 520, 521, 525, 528, 530, 532, 534,
709 536, 538, 540, 547, 548, 551, 554, 558, 564, 567,
710 573, 580, 588, 598, 603, 604, 607, 608, 610, 612,
711 614, 616, 620, 624, 628, 629, 636, 637, 641, 646,
712 648, 650, 652, 654, 656, 658, 660, 662, 664, 666,
713 673, 678, 687, 688, 692, 695, 702, 703, 710, 717,
714 721, 725, 729, 733, 737, 738, 747, 755, 756, 762,
715 763, 767, 769, 771, 773, 775, 778, 780, 783, 784,
716 787, 791, 796, 800, 801, 804, 805, 808, 810, 812,
717 814, 816, 818, 820, 822, 824, 826, 828, 831, 833,
718 835, 837, 840, 842, 845, 847, 850, 854, 859, 861,
719 865, 866, 868, 871, 873, 875, 879, 882, 885, 889,
720 893, 897, 901, 905, 909, 913, 917, 920, 922, 924,
721 928, 931, 935, 939, 943, 947, 951, 955, 959
724 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
725 static const yytype_int16 yyrhs[] =
727 113, 0, -1, -1, 113, 114, -1, 113, 120, -1,
728 113, 121, -1, 113, 122, -1, 113, 162, -1, 113,
729 163, -1, 113, 164, -1, 113, 165, -1, 113, 170,
730 -1, 113, 173, -1, 113, 178, -1, 113, 183, -1,
731 113, 182, -1, 113, 185, -1, 113, 97, -1, 190,
732 5, 193, 3, 115, 4, -1, -1, 115, 116, -1,
733 117, 208, -1, 117, 208, 108, 118, -1, 92, -1,
734 209, -1, 119, -1, 118, 108, 119, -1, 118, 119,
735 -1, 6, -1, 7, -1, 8, -1, 9, -1, 10,
736 -1, 11, -1, 190, 12, 195, 197, -1, 190, 13,
737 194, 197, -1, -1, 190, 14, 195, 126, 209, 205,
738 205, 205, 123, 127, 3, 128, 4, -1, -1, 190,
739 15, 195, 126, 209, 205, 205, 205, 124, 127, 3,
740 128, 4, -1, -1, 190, 15, 195, 126, 209, 205,
741 205, 205, 205, 125, 127, 3, 128, 4, -1, -1,
742 16, 109, 206, -1, -1, 127, 17, 198, -1, 127,
743 18, 190, -1, 127, 19, 202, -1, 127, 16, 206,
744 -1, 127, 18, 198, -1, 127, 41, 206, 108, 198,
745 -1, 127, 41, 206, 108, 198, 205, -1, 127, 41,
746 206, 108, 198, 205, 205, -1, 127, 41, 206, 108,
747 198, 205, 205, 205, -1, 127, 57, 190, -1, 127,
748 55, 206, -1, 127, 54, 206, 205, -1, 127, 56,
749 206, -1, -1, 128, 129, -1, -1, 20, 153, 130,
750 151, -1, -1, 21, 153, 131, 151, -1, -1, 22,
751 153, 132, 151, -1, -1, 38, 153, 133, 151, -1,
752 -1, 23, 153, 134, 151, -1, -1, 24, 135, 151,
753 -1, 10, 153, 206, 152, 156, 205, 205, 205, 205,
754 204, 155, -1, 10, 153, 206, 152, 156, 205, 205,
755 205, 205, 205, 205, 155, -1, -1, 25, 153, 136,
756 151, -1, -1, 26, 153, 137, 151, -1, -1, 27,
757 138, 151, -1, -1, 28, 153, 139, 151, -1, -1,
758 39, 153, 140, 151, -1, 42, 192, 206, 205, 205,
759 155, -1, 42, 192, 206, 205, 205, 205, 205, 155,
760 -1, 42, 192, 206, 205, 205, 205, 205, 158, 204,
761 155, -1, 42, 192, 206, 205, 205, 205, 205, 158,
762 205, 205, 155, -1, -1, 40, 153, 141, 151, -1,
763 -1, 29, 142, 151, -1, -1, 30, 153, 143, 151,
764 -1, -1, 31, 153, 144, 151, -1, -1, 32, 153,
765 145, 151, -1, -1, 33, 153, 146, 151, -1, -1,
766 34, 153, 147, 151, -1, -1, 35, 148, 151, -1,
767 -1, 36, 153, 149, 151, -1, -1, 37, 192, 206,
768 108, 206, 108, 206, 108, 206, 108, 206, 108, 150,
769 202, 204, -1, 206, 205, 205, 205, 205, 155, -1,
770 206, 205, 205, 205, 205, 160, 204, 155, -1, 206,
771 205, 205, 205, 205, 160, 205, 205, 155, -1, 108,
772 154, -1, -1, 154, 108, -1, 209, -1, 199, -1,
773 -1, 3, 174, 4, -1, -1, 108, 157, 202, -1,
774 -1, 108, 159, 202, -1, -1, 108, 161, 202, -1,
775 190, 41, 194, 197, -1, 190, 42, 194, 197, -1,
776 54, 206, 205, -1, 190, 57, 193, 3, 166, 4,
777 -1, -1, 166, 167, -1, 59, 198, 205, 168, -1,
778 59, 60, -1, 61, 198, 168, 3, 166, 4, -1,
779 -1, 168, 108, 169, -1, 168, 169, -1, 62, -1,
780 63, -1, 64, -1, 65, -1, 66, -1, 67, -1,
781 190, 58, 193, 3, 171, 4, -1, -1, 171, 172,
782 -1, 59, 198, -1, 59, 198, 205, -1, 59, 198,
783 205, 205, 204, -1, 59, 60, -1, 61, 198, 3,
784 171, 4, -1, 61, 198, 205, 3, 171, 4, -1,
785 61, 198, 205, 205, 3, 171, 4, -1, 61, 198,
786 205, 205, 205, 204, 3, 171, 4, -1, 190, 68,
787 195, 197, -1, -1, 175, 176, -1, -1, 177, -1,
788 200, -1, 201, -1, 207, -1, 177, 108, 200, -1,
789 177, 108, 201, -1, 177, 108, 207, -1, -1, 70,
790 193, 3, 179, 180, 4, -1, -1, 180, 206, 198,
791 -1, 180, 206, 108, 198, -1, 190, -1, 48, -1,
792 69, -1, 49, -1, 50, -1, 51, -1, 45, -1,
793 46, -1, 43, -1, 44, -1, 190, 181, 193, 3,
794 174, 4, -1, 190, 181, 193, 197, -1, 190, 52,
795 193, 206, 205, 3, 184, 4, -1, -1, 184, 53,
796 190, -1, 184, 60, -1, 190, 71, 186, 3, 187,
797 4, -1, -1, 186, 72, 206, 205, 205, 205, -1,
798 186, 73, 206, 205, 205, 205, -1, 186, 74, 206,
799 -1, 186, 75, 206, -1, 186, 76, 206, -1, 186,
800 77, 206, -1, 186, 78, 206, -1, -1, 187, 79,
801 3, 82, 3, 188, 4, 4, -1, 187, 80, 3,
802 81, 198, 189, 4, -1, -1, 188, 81, 198, 108,
803 198, -1, -1, 189, 205, 205, -1, 209, -1, 191,
804 -1, 199, -1, 93, -1, 209, 108, -1, 191, -1,
805 191, 108, -1, -1, 193, 196, -1, 193, 55, 206,
806 -1, 193, 54, 206, 205, -1, 193, 56, 206, -1,
807 -1, 194, 196, -1, -1, 195, 196, -1, 83, -1,
808 84, -1, 85, -1, 86, -1, 87, -1, 88, -1,
809 89, -1, 92, -1, 93, -1, 199, -1, 198, 199,
810 -1, 91, -1, 92, -1, 96, -1, 200, 96, -1,
811 95, -1, 201, 95, -1, 203, -1, 90, 203, -1,
812 202, 98, 203, -1, 202, 98, 90, 203, -1, 94,
813 -1, 110, 206, 111, -1, -1, 205, -1, 108, 206,
814 -1, 207, -1, 94, -1, 110, 207, 111, -1, 106,
815 207, -1, 102, 207, -1, 207, 103, 207, -1, 207,
816 104, 207, -1, 207, 105, 207, -1, 207, 101, 207,
817 -1, 207, 102, 207, -1, 207, 100, 207, -1, 207,
818 99, 207, -1, 207, 98, 207, -1, 108, 209, -1,
819 210, -1, 94, -1, 110, 207, 111, -1, 106, 207,
820 -1, 210, 103, 207, -1, 210, 104, 207, -1, 210,
821 105, 207, -1, 210, 101, 207, -1, 210, 102, 207,
822 -1, 210, 100, 207, -1, 210, 99, 207, -1, 210,
823 98, 207, -1
826 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
827 static const yytype_uint16 yyrline[] =
829 0, 177, 177, 179, 180, 181, 182, 183, 184, 185,
830 186, 187, 188, 189, 190, 191, 192, 193, 199, 210,
831 213, 234, 239, 251, 271, 281, 285, 290, 297, 301,
832 306, 310, 314, 318, 327, 339, 353, 351, 378, 376,
833 405, 403, 435, 438, 444, 446, 452, 456, 461, 465,
834 469, 482, 497, 512, 527, 531, 535, 539, 545, 547,
835 559, 558, 571, 570, 583, 582, 595, 594, 610, 609,
836 622, 621, 635, 646, 656, 655, 668, 667, 680, 679,
837 692, 691, 704, 703, 718, 723, 729, 735, 742, 741,
838 757, 756, 769, 768, 781, 780, 792, 791, 804, 803,
839 816, 815, 828, 827, 840, 839, 853, 851, 872, 883,
840 894, 906, 917, 920, 924, 929, 939, 942, 952, 951,
841 958, 957, 964, 963, 971, 983, 996, 1005, 1016, 1019,
842 1036, 1040, 1044, 1052, 1055, 1059, 1066, 1070, 1074, 1078,
843 1082, 1086, 1095, 1106, 1109, 1126, 1130, 1134, 1138, 1142,
844 1146, 1150, 1154, 1164, 1177, 1177, 1189, 1193, 1200, 1208,
845 1216, 1224, 1233, 1242, 1257, 1256, 1261, 1263, 1270, 1280,
846 1284, 1289, 1294, 1299, 1304, 1309, 1314, 1319, 1324, 1335,
847 1342, 1352, 1358, 1359, 1378, 1403, 1414, 1419, 1425, 1431,
848 1436, 1441, 1446, 1451, 1466, 1469, 1473, 1481, 1484, 1492,
849 1495, 1504, 1509, 1518, 1522, 1532, 1537, 1541, 1552, 1558,
850 1564, 1569, 1574, 1585, 1590, 1602, 1607, 1619, 1624, 1629,
851 1634, 1639, 1644, 1649, 1659, 1663, 1671, 1676, 1691, 1695,
852 1704, 1708, 1720, 1724, 1746, 1750, 1754, 1758, 1765, 1769,
853 1779, 1782, 1791, 1800, 1809, 1813, 1817, 1822, 1827, 1832,
854 1837, 1842, 1847, 1852, 1857, 1862, 1873, 1882, 1893, 1897,
855 1901, 1906, 1911, 1916, 1921, 1926, 1931, 1936, 1941
857 #endif
859 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
860 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
861 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
862 static const char *const yytname[] =
864 "$end", "error", "$undefined", "BEG", "END", "ACCELERATORS", "VIRTKEY",
865 "ASCII", "NOINVERT", "SHIFT", "CONTROL", "ALT", "BITMAP", "CURSOR",
866 "DIALOG", "DIALOGEX", "EXSTYLE", "CAPTION", "CLASS", "STYLE",
867 "AUTO3STATE", "AUTOCHECKBOX", "AUTORADIOBUTTON", "CHECKBOX", "COMBOBOX",
868 "CTEXT", "DEFPUSHBUTTON", "EDITTEXT", "GROUPBOX", "LISTBOX", "LTEXT",
869 "PUSHBOX", "PUSHBUTTON", "RADIOBUTTON", "RTEXT", "SCROLLBAR", "STATE3",
870 "USERBUTTON", "BEDIT", "HEDIT", "IEDIT", "FONT", "ICON", "ANICURSOR",
871 "ANIICON", "DLGINCLUDE", "DLGINIT", "FONTDIR", "HTML", "MANIFEST",
872 "PLUGPLAY", "VXD", "TOOLBAR", "BUTTON", "LANGUAGE", "CHARACTERISTICS",
873 "VERSIONK", "MENU", "MENUEX", "MENUITEM", "SEPARATOR", "POPUP",
874 "CHECKED", "GRAYED", "HELP", "INACTIVE", "MENUBARBREAK", "MENUBREAK",
875 "MESSAGETABLE", "RCDATA", "STRINGTABLE", "VERSIONINFO", "FILEVERSION",
876 "PRODUCTVERSION", "FILEFLAGSMASK", "FILEFLAGS", "FILEOS", "FILETYPE",
877 "FILESUBTYPE", "BLOCKSTRINGFILEINFO", "BLOCKVARFILEINFO", "VALUE",
878 "BLOCK", "MOVEABLE", "FIXED", "PURE", "IMPURE", "PRELOAD", "LOADONCALL",
879 "DISCARDABLE", "NOT", "QUOTEDUNISTRING", "QUOTEDSTRING", "STRING",
880 "NUMBER", "SIZEDUNISTRING", "SIZEDSTRING", "IGNORED_TOKEN", "'|'", "'^'",
881 "'&'", "'+'", "'-'", "'*'", "'/'", "'%'", "'~'", "NEG", "','", "'='",
882 "'('", "')'", "$accept", "input", "accelerator", "acc_entries",
883 "acc_entry", "acc_event", "acc_options", "acc_option", "bitmap",
884 "cursor", "dialog", "@1", "@2", "@3", "exstyle", "styles", "controls",
885 "control", "@4", "@5", "@6", "@7", "@8", "@9", "@10", "@11", "@12",
886 "@13", "@14", "@15", "@16", "@17", "@18", "@19", "@20", "@21", "@22",
887 "@23", "@24", "control_params", "cresid", "optresidc", "resid",
888 "opt_control_data", "control_styleexpr", "@25", "icon_styleexpr", "@26",
889 "control_params_styleexpr", "@27", "font", "icon", "language", "menu",
890 "menuitems", "menuitem", "menuitem_flags", "menuitem_flag", "menuex",
891 "menuexitems", "menuexitem", "messagetable", "optrcdata_data", "@28",
892 "optrcdata_data_int", "rcdata_data", "stringtable", "@29", "string_data",
893 "rcdata_id", "user", "toolbar", "toolbar_data", "versioninfo",
894 "fixedverinfo", "verblocks", "vervals", "vertrans", "id", "resname",
895 "resref", "suboptions", "memflags_move_discard", "memflags_move",
896 "memflag", "file_name", "res_unicode_string_concat",
897 "res_unicode_string", "sizedstring", "sizedunistring", "styleexpr",
898 "parennumber", "optcnumexpr", "cnumexpr", "numexpr", "sizednumexpr",
899 "cposnumexpr", "posnumexpr", "sizedposnumexpr", 0
901 #endif
903 # ifdef YYPRINT
904 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
905 token YYLEX-NUM. */
906 static const yytype_uint16 yytoknum[] =
908 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
909 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
910 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
911 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
912 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
913 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
914 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
915 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
916 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
917 345, 346, 347, 348, 349, 350, 351, 352, 124, 94,
918 38, 43, 45, 42, 47, 37, 126, 353, 44, 61,
919 40, 41
921 # endif
923 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
924 static const yytype_uint8 yyr1[] =
926 0, 112, 113, 113, 113, 113, 113, 113, 113, 113,
927 113, 113, 113, 113, 113, 113, 113, 113, 114, 115,
928 115, 116, 116, 117, 117, 118, 118, 118, 119, 119,
929 119, 119, 119, 119, 120, 121, 123, 122, 124, 122,
930 125, 122, 126, 126, 127, 127, 127, 127, 127, 127,
931 127, 127, 127, 127, 127, 127, 127, 127, 128, 128,
932 130, 129, 131, 129, 132, 129, 133, 129, 134, 129,
933 135, 129, 129, 129, 136, 129, 137, 129, 138, 129,
934 139, 129, 140, 129, 129, 129, 129, 129, 141, 129,
935 142, 129, 143, 129, 144, 129, 145, 129, 146, 129,
936 147, 129, 148, 129, 149, 129, 150, 129, 151, 151,
937 151, 152, 153, 153, 154, 154, 155, 155, 157, 156,
938 159, 158, 161, 160, 162, 163, 164, 165, 166, 166,
939 167, 167, 167, 168, 168, 168, 169, 169, 169, 169,
940 169, 169, 170, 171, 171, 172, 172, 172, 172, 172,
941 172, 172, 172, 173, 175, 174, 176, 176, 177, 177,
942 177, 177, 177, 177, 179, 178, 180, 180, 180, 181,
943 181, 181, 181, 181, 181, 181, 181, 181, 181, 182,
944 182, 183, 184, 184, 184, 185, 186, 186, 186, 186,
945 186, 186, 186, 186, 187, 187, 187, 188, 188, 189,
946 189, 190, 190, 191, 191, 192, 192, 192, 193, 193,
947 193, 193, 193, 194, 194, 195, 195, 196, 196, 196,
948 196, 196, 196, 196, 197, 197, 198, 198, 199, 199,
949 200, 200, 201, 201, 202, 202, 202, 202, 203, 203,
950 204, 204, 205, 206, 207, 207, 207, 207, 207, 207,
951 207, 207, 207, 207, 207, 207, 208, 209, 210, 210,
952 210, 210, 210, 210, 210, 210, 210, 210, 210
955 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
956 static const yytype_uint8 yyr2[] =
958 0, 2, 0, 2, 2, 2, 2, 2, 2, 2,
959 2, 2, 2, 2, 2, 2, 2, 2, 6, 0,
960 2, 2, 4, 1, 1, 1, 3, 2, 1, 1,
961 1, 1, 1, 1, 4, 4, 0, 13, 0, 13,
962 0, 14, 0, 3, 0, 3, 3, 3, 3, 3,
963 5, 6, 7, 8, 3, 3, 4, 3, 0, 2,
964 0, 4, 0, 4, 0, 4, 0, 4, 0, 4,
965 0, 3, 11, 12, 0, 4, 0, 4, 0, 3,
966 0, 4, 0, 4, 6, 8, 10, 11, 0, 4,
967 0, 3, 0, 4, 0, 4, 0, 4, 0, 4,
968 0, 4, 0, 3, 0, 4, 0, 15, 6, 8,
969 9, 2, 0, 2, 1, 1, 0, 3, 0, 3,
970 0, 3, 0, 3, 4, 4, 3, 6, 0, 2,
971 4, 2, 6, 0, 3, 2, 1, 1, 1, 1,
972 1, 1, 6, 0, 2, 2, 3, 5, 2, 5,
973 6, 7, 9, 4, 0, 2, 0, 1, 1, 1,
974 1, 3, 3, 3, 0, 6, 0, 3, 4, 1,
975 1, 1, 1, 1, 1, 1, 1, 1, 1, 6,
976 4, 8, 0, 3, 2, 6, 0, 6, 6, 3,
977 3, 3, 3, 3, 0, 8, 7, 0, 5, 0,
978 3, 1, 1, 1, 1, 2, 1, 2, 0, 2,
979 3, 4, 3, 0, 2, 0, 2, 1, 1, 1,
980 1, 1, 1, 1, 1, 1, 1, 2, 1, 1,
981 1, 2, 1, 2, 1, 2, 3, 4, 1, 3,
982 0, 1, 2, 1, 1, 3, 2, 2, 3, 3,
983 3, 3, 3, 3, 3, 3, 2, 1, 1, 3,
984 2, 3, 3, 3, 3, 3, 3, 3, 3
987 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
988 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
989 means the default is an error. */
990 static const yytype_uint16 yydefact[] =
992 2, 0, 1, 0, 208, 228, 229, 204, 258, 17,
993 0, 0, 3, 4, 5, 6, 7, 8, 9, 10,
994 11, 12, 13, 15, 14, 16, 0, 202, 203, 201,
995 257, 244, 0, 0, 0, 0, 243, 0, 260, 0,
996 208, 215, 213, 215, 215, 213, 213, 177, 178, 175,
997 176, 170, 172, 173, 174, 208, 208, 208, 215, 171,
998 186, 208, 169, 0, 0, 0, 0, 0, 0, 0,
999 0, 247, 246, 0, 0, 126, 0, 0, 0, 0,
1000 0, 0, 0, 0, 164, 0, 0, 0, 217, 218,
1001 219, 220, 221, 222, 223, 209, 259, 0, 0, 0,
1002 42, 42, 0, 0, 0, 0, 0, 0, 0, 0,
1003 268, 267, 266, 264, 265, 261, 262, 263, 245, 242,
1004 255, 254, 253, 251, 252, 248, 249, 250, 166, 0,
1005 210, 212, 19, 224, 225, 216, 34, 214, 35, 0,
1006 0, 0, 124, 125, 0, 128, 143, 153, 194, 0,
1007 0, 0, 0, 0, 0, 0, 154, 180, 0, 211,
1008 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1009 189, 190, 191, 192, 193, 0, 156, 165, 0, 18,
1010 23, 20, 0, 24, 43, 0, 0, 182, 127, 0,
1011 0, 129, 142, 0, 0, 144, 185, 0, 0, 0,
1012 0, 179, 232, 230, 155, 157, 158, 159, 160, 0,
1013 167, 226, 0, 21, 0, 0, 0, 131, 0, 133,
1014 148, 145, 0, 0, 0, 0, 0, 0, 231, 233,
1015 168, 227, 256, 0, 36, 38, 181, 0, 184, 133,
1016 0, 146, 143, 0, 0, 0, 187, 188, 161, 162,
1017 163, 28, 29, 30, 31, 32, 33, 22, 25, 44,
1018 44, 40, 183, 130, 128, 136, 137, 138, 139, 140,
1019 141, 0, 135, 240, 0, 143, 0, 197, 199, 0,
1020 27, 0, 0, 44, 0, 134, 147, 241, 149, 0,
1021 143, 240, 0, 0, 26, 58, 0, 0, 0, 0,
1022 0, 0, 0, 0, 0, 58, 0, 132, 150, 0,
1023 0, 0, 0, 196, 0, 0, 48, 45, 46, 49,
1024 203, 0, 238, 0, 47, 234, 0, 0, 55, 57,
1025 54, 0, 58, 151, 143, 195, 0, 200, 37, 112,
1026 112, 112, 112, 112, 70, 112, 112, 78, 112, 90,
1027 112, 112, 112, 112, 112, 102, 112, 0, 112, 112,
1028 112, 0, 59, 235, 0, 0, 0, 56, 39, 0,
1029 0, 0, 0, 0, 115, 114, 60, 62, 64, 68,
1030 0, 74, 76, 0, 80, 0, 92, 94, 96, 98,
1031 100, 0, 104, 206, 0, 0, 66, 82, 88, 0,
1032 239, 0, 236, 50, 41, 152, 198, 0, 113, 0,
1033 0, 0, 0, 71, 0, 0, 0, 79, 0, 91,
1034 0, 0, 0, 0, 0, 103, 0, 207, 0, 205,
1035 0, 0, 0, 0, 237, 51, 0, 0, 61, 63,
1036 65, 69, 0, 75, 77, 81, 93, 95, 97, 99,
1037 101, 105, 0, 67, 83, 89, 0, 52, 111, 118,
1038 0, 0, 0, 116, 53, 0, 0, 0, 0, 154,
1039 84, 0, 119, 0, 116, 0, 0, 116, 0, 122,
1040 108, 240, 0, 117, 120, 85, 240, 240, 0, 116,
1041 241, 0, 0, 116, 241, 116, 241, 123, 109, 116,
1042 0, 121, 86, 116, 72, 116, 110, 0, 87, 73,
1043 106, 0, 240, 107
1046 /* YYDEFGOTO[NTERM-NUM]. */
1047 static const yytype_int16 yydefgoto[] =
1049 -1, 1, 12, 160, 181, 182, 257, 258, 13, 14,
1050 15, 259, 260, 283, 140, 281, 315, 362, 409, 410,
1051 411, 430, 412, 380, 415, 416, 383, 418, 431, 432,
1052 385, 420, 421, 422, 423, 424, 391, 426, 511, 413,
1053 437, 372, 373, 470, 460, 465, 486, 492, 481, 488,
1054 16, 17, 18, 19, 165, 191, 240, 272, 20, 166,
1055 195, 21, 175, 176, 204, 205, 22, 128, 158, 61,
1056 23, 24, 216, 25, 108, 167, 292, 293, 26, 27,
1057 394, 37, 99, 98, 95, 136, 210, 374, 206, 207,
1058 324, 325, 286, 287, 414, 36, 213, 375, 30
1061 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
1062 STATE-NUM. */
1063 #define YYPACT_NINF -443
1064 static const yytype_int16 yypact[] =
1066 -443, 114, -443, 326, -443, -443, -443, -443, -443, -443,
1067 326, 326, -443, -443, -443, -443, -443, -443, -443, -443,
1068 -443, -443, -443, -443, -443, -443, 461, -443, -443, -443,
1069 603, -443, 326, 326, 326, -90, 640, 249, -443, 511,
1070 -443, -443, -443, -443, -443, -443, -443, -443, -443, -443,
1071 -443, -443, -443, -443, -443, -443, -443, -443, -443, -443,
1072 -443, -443, -443, 326, 326, 326, 326, 326, 326, 326,
1073 326, -443, -443, 674, 326, -443, 326, 326, 326, 326,
1074 326, 326, 326, 326, -443, 326, 326, 326, -443, -443,
1075 -443, -443, -443, -443, -443, -443, -443, 287, 548, 548,
1076 314, 314, 548, 548, 489, 402, 439, 548, 280, 226,
1077 732, 456, 379, -44, -44, -443, -443, -443, -443, -443,
1078 732, 456, 379, -44, -44, -443, -443, -443, -443, -90,
1079 -443, -443, -443, -443, -443, -443, -443, -443, -443, -67,
1080 165, 165, -443, -443, -90, -443, -443, -443, -443, 326,
1081 326, 326, 326, 326, 326, 326, -443, -443, 2, -443,
1082 13, 326, -90, -90, 50, 118, 157, 52, -90, -90,
1083 -443, -443, -443, -443, -443, 51, 440, -443, 231, -443,
1084 -443, -443, -38, -443, -443, -90, -90, -443, -443, 42,
1085 -52, -443, -443, 80, -52, -443, -443, 83, 94, -90,
1086 -90, -443, -443, -443, -443, -8, 15, 33, 640, -52,
1087 -52, -443, 165, 27, -90, -90, 166, -443, 271, -52,
1088 -443, 271, 7, 59, 63, -90, -90, 440, -443, -443,
1089 -52, -443, -443, 832, -443, -90, -443, 255, -443, -443,
1090 1, -90, -443, 5, 153, -52, -443, -443, 15, 33,
1091 640, -443, -443, -443, -443, -443, -443, 19, -443, -443,
1092 -443, -443, -443, 359, -443, -443, -443, -443, -443, -443,
1093 -443, 782, -443, -90, 162, -443, 8, -443, -52, 832,
1094 -443, 546, 563, -443, 171, -443, -443, -443, -443, 186,
1095 -443, -90, 29, -2, -443, -443, 326, -52, 255, -56,
1096 326, 326, 326, 326, 255, -443, 589, -443, -443, 190,
1097 154, 158, -52, -443, -90, 653, -443, -52, -443, -52,
1098 62, -63, -443, 326, 69, -443, 68, -90, -443, -443,
1099 -443, 690, -443, -443, -443, -443, 298, -443, -443, 152,
1100 152, 152, 152, 152, -443, 152, 152, -443, 152, -443,
1101 152, 152, 152, 152, 152, -443, 152, 255, 152, 152,
1102 152, 255, -443, -443, 67, 75, -52, -443, -443, 727,
1103 194, -52, 326, 72, -443, -443, -443, -443, -443, -443,
1104 326, -443, -443, 326, -443, 326, -443, -443, -443, -443,
1105 -443, 326, -443, 74, 326, 78, -443, -443, -443, 326,
1106 -443, -63, -443, 271, -443, -443, -52, 85, -443, 326,
1107 326, 326, 326, -443, -90, 326, 326, -443, 326, -443,
1108 326, 326, 326, 326, 326, -443, 326, -443, 96, -443,
1109 326, 326, 326, -90, -443, -90, 152, 102, -443, -443,
1110 -443, -443, -90, -443, -443, -443, -443, -443, -443, -443,
1111 -443, -443, 326, -443, -443, -443, -90, -90, -443, -443,
1112 -90, -90, 105, 9, -443, -56, -90, -90, 326, -443,
1113 -443, -90, 69, -90, 12, 106, 187, 16, -90, -443,
1114 -443, -90, 326, -443, -443, -443, -90, -90, -56, 198,
1115 -90, 119, -56, 198, -90, 198, -90, 69, -443, 198,
1116 326, 69, -443, 198, -443, 198, -443, 123, -443, -443,
1117 -443, -56, -46, -443
1120 /* YYPGOTO[NTERM-NUM]. */
1121 static const yytype_int16 yypgoto[] =
1123 -443, -443, -443, -443, -443, -443, -443, -244, -443, -443,
1124 -443, -443, -443, -443, 121, -246, -300, -443, -443, -443,
1125 -443, -443, -443, -443, -443, -443, -443, -443, -443, -443,
1126 -443, -443, -443, -443, -443, -443, -443, -443, -443, 238,
1127 -443, 460, -197, 294, -443, -443, -443, -443, -443, -443,
1128 -443, -443, -443, -443, -22, -443, 22, -17, -443, -239,
1129 -443, -443, -206, -443, -443, -443, -443, -443, -443, -443,
1130 -443, -443, -443, -443, -443, -443, -443, -443, -25, -341,
1131 -97, 230, 93, 14, 723, 487, -64, 47, 45, 49,
1132 -442, -280, -284, -26, -3, 11, -443, 23, -443
1135 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
1136 positive, shift that token. If negative, reduce the rule which
1137 number is the opposite. If zero, do what YYDEFACT says.
1138 If YYTABLE_NINF, syntax error. */
1139 #define YYTABLE_NINF -227
1140 static const yytype_int16 yytable[] =
1142 35, 62, 313, 274, 264, 331, 177, 310, 275, 75,
1143 242, 290, 469, 280, 282, 469, 393, 179, 74, 469,
1144 393, 38, 39, 472, 29, 251, 252, 253, 254, 255,
1145 256, 322, 369, 311, 321, 294, 289, 306, 322, 5,
1146 6, 363, 161, 71, 72, 73, 497, 323, 28, 29,
1147 501, 309, 365, 187, 323, 201, 196, 100, 101, 81,
1148 82, 83, 74, 265, 266, 267, 268, 269, 270, 512,
1149 212, 119, 107, 28, 110, 111, 112, 113, 114, 115,
1150 116, 117, 129, 130, 131, 402, 223, 120, 121, 122,
1151 123, 124, 125, 126, 127, 370, 31, 224, 5, 6,
1152 227, 144, 217, 159, 32, 180, 74, 8, 33, 271,
1153 312, 228, 34, 74, 2, 74, 74, 74, 164, 10,
1154 479, 434, 188, 11, 484, 218, 219, 279, 229, 221,
1155 222, 197, 198, 5, 6, 233, 185, 186, 102, 103,
1156 220, 244, 199, 200, 245, 230, 168, 169, 170, 171,
1157 172, 173, 174, -226, -226, 178, 277, 334, 184, 214,
1158 215, 192, 335, 162, 163, 401, 288, 365, 3, 322,
1159 236, 5, 6, 225, 226, 307, 366, 189, 400, 190,
1160 408, 278, 427, 183, 4, 323, 429, 208, 234, 235,
1161 308, 483, 239, 436, 333, 241, 243, 489, 405, 246,
1162 247, 469, 493, 495, 452, 5, 6, 7, 8, 261,
1163 459, 9, 262, 468, 482, 273, 193, 276, 194, 237,
1164 10, 193, 141, 194, 11, 211, 238, 500, 513, 156,
1165 189, 510, 190, 317, 319, 232, 211, 211, 250, 458,
1166 211, 211, 284, 5, 6, 193, 8, 194, 336, 193,
1167 291, 194, 84, 193, 285, 194, 211, 231, 10, 8,
1168 29, 263, 11, 476, 399, 231, 231, 314, 231, 231,
1169 97, 10, 248, 318, 0, 11, 249, 231, 0, 330,
1170 85, 86, 87, 148, 28, 104, 105, 106, 337, 0,
1171 132, 109, 211, 316, 0, 0, 0, 326, 327, 328,
1172 329, 367, 403, 85, 86, 87, 0, 406, 0, 88,
1173 89, 90, 91, 92, 93, 94, 0, 0, 133, 134,
1174 364, 29, 5, 6, 0, 231, 0, 29, 0, 0,
1175 139, 0, 88, 89, 90, 91, 92, 93, 94, 209,
1176 0, 85, 86, 87, 211, 320, 5, 6, 7, 8,
1177 0, 28, 149, 150, 151, 152, 153, 154, 155, 211,
1178 0, 10, 5, 6, 231, 11, 231, 0, 0, 407,
1179 88, 89, 90, 91, 92, 93, 94, 435, 0, 74,
1180 395, 0, 0, 231, 395, 0, 0, 0, 442, 5,
1181 6, 428, 0, 0, 0, 0, 433, 88, 89, 90,
1182 91, 92, 93, 94, 28, 145, 371, 456, 28, 457,
1183 0, 0, 0, 211, 0, 0, 461, 0, 211, 0,
1184 31, 265, 266, 267, 268, 269, 270, 0, 32, 0,
1185 463, 464, 33, 0, 466, 467, 34, 471, 0, 0,
1186 473, 474, 146, 0, 0, 477, 0, 478, 0, 462,
1187 231, 0, 487, 231, 0, 490, 85, 86, 87, 0,
1188 494, 496, 0, 0, 499, 475, 40, 271, 503, 0,
1189 505, 0, 0, 41, 42, 43, 44, 0, 0, 491,
1190 79, 80, 81, 82, 83, 88, 89, 90, 91, 92,
1191 93, 94, 0, 85, 86, 87, 0, 507, 0, 0,
1192 0, 0, 45, 46, 47, 48, 49, 50, 0, 51,
1193 52, 53, 54, 55, 0, 0, 0, 0, 56, 57,
1194 0, 0, 88, 89, 90, 91, 92, 93, 94, 58,
1195 59, 0, 60, 0, 31, 202, 203, 0, 0, 0,
1196 0, 0, 32, 85, 86, 87, 33, 0, 0, 295,
1197 34, 0, 5, 6, 7, 8, 78, 79, 80, 81,
1198 82, 83, 296, 297, 298, 299, 305, 10, 0, 0,
1199 0, 11, 88, 89, 90, 91, 92, 93, 94, 296,
1200 297, 298, 299, 31, 0, 0, 138, 300, 0, 142,
1201 143, 32, 332, 0, 147, 33, 157, 0, 0, 34,
1202 301, 302, 303, 304, 300, 296, 297, 298, 299, 76,
1203 77, 78, 79, 80, 81, 82, 83, 301, 302, 303,
1204 304, 417, 96, 419, 0, 0, 0, 0, 0, 425,
1205 300, 88, 89, 90, 91, 92, 93, 94, 0, 0,
1206 133, 134, 0, 301, 302, 303, 304, 438, 439, 440,
1207 441, 0, 0, 443, 444, 0, 445, 338, 446, 447,
1208 448, 449, 450, 339, 451, 0, 0, 0, 453, 454,
1209 455, 0, 0, 340, 341, 342, 343, 344, 345, 346,
1210 347, 348, 349, 350, 351, 352, 353, 354, 355, 356,
1211 357, 358, 359, 360, 368, 361, 0, 0, 0, 0,
1212 339, 63, 64, 65, 66, 67, 68, 69, 70, 0,
1213 340, 341, 342, 343, 344, 345, 346, 347, 348, 349,
1214 350, 351, 352, 353, 354, 355, 356, 357, 358, 359,
1215 360, 404, 361, 0, 0, 0, 0, 339, 76, 77,
1216 78, 79, 80, 81, 82, 83, 0, 340, 341, 342,
1217 343, 344, 345, 346, 347, 348, 349, 350, 351, 352,
1218 353, 354, 355, 356, 357, 358, 359, 360, 480, 361,
1219 0, 485, 76, 77, 78, 79, 80, 81, 82, 83,
1220 0, 0, 0, 498, 0, 118, 0, 502, 0, 504,
1221 0, 0, 0, 506, 0, 0, 0, 508, 0, 509,
1222 376, 377, 378, 379, 0, 381, 382, 0, 384, 0,
1223 386, 387, 388, 389, 390, 0, 392, 0, 396, 397,
1224 398, 135, 137, 135, 135, 137, 137, 0, 0, 0,
1225 135, 77, 78, 79, 80, 81, 82, 83, 251, 252,
1226 253, 254, 255, 256, 265, 266, 267, 268, 269, 270
1229 static const yytype_int16 yycheck[] =
1231 3, 26, 4, 242, 3, 305, 4, 291, 3, 35,
1232 3, 3, 3, 257, 260, 3, 357, 4, 108, 3,
1233 361, 10, 11, 465, 1, 6, 7, 8, 9, 10,
1234 11, 94, 332, 4, 90, 279, 275, 283, 94, 91,
1235 92, 321, 109, 32, 33, 34, 488, 110, 1, 26,
1236 492, 290, 98, 3, 110, 4, 4, 43, 44, 103,
1237 104, 105, 108, 62, 63, 64, 65, 66, 67, 511,
1238 108, 74, 58, 26, 63, 64, 65, 66, 67, 68,
1239 69, 70, 85, 86, 87, 365, 3, 76, 77, 78,
1240 79, 80, 81, 82, 83, 334, 94, 3, 91, 92,
1241 108, 104, 60, 129, 102, 92, 108, 94, 106, 108,
1242 81, 96, 110, 108, 0, 108, 108, 108, 144, 106,
1243 108, 401, 4, 110, 108, 189, 190, 108, 95, 193,
1244 194, 79, 80, 91, 92, 108, 162, 163, 45, 46,
1245 60, 82, 168, 169, 81, 209, 149, 150, 151, 152,
1246 153, 154, 155, 91, 92, 158, 3, 3, 161, 185,
1247 186, 4, 4, 140, 141, 90, 4, 98, 54, 94,
1248 4, 91, 92, 199, 200, 4, 108, 59, 111, 61,
1249 108, 245, 108, 160, 70, 110, 108, 176, 214, 215,
1250 4, 4, 218, 108, 4, 221, 222, 481, 4, 225,
1251 226, 3, 486, 487, 108, 91, 92, 93, 94, 235,
1252 108, 97, 237, 108, 108, 241, 59, 243, 61, 53,
1253 106, 59, 101, 61, 110, 178, 60, 108, 512, 3,
1254 59, 108, 61, 297, 298, 212, 189, 190, 227, 436,
1255 193, 194, 264, 91, 92, 59, 94, 61, 312, 59,
1256 276, 61, 3, 59, 271, 61, 209, 210, 106, 94,
1257 237, 239, 110, 469, 361, 218, 219, 293, 221, 222,
1258 40, 106, 227, 298, -1, 110, 227, 230, -1, 304,
1259 54, 55, 56, 3, 237, 55, 56, 57, 314, -1,
1260 3, 61, 245, 296, -1, -1, -1, 300, 301, 302,
1261 303, 327, 366, 54, 55, 56, -1, 371, -1, 83,
1262 84, 85, 86, 87, 88, 89, -1, -1, 92, 93,
1263 323, 298, 91, 92, -1, 278, -1, 304, -1, -1,
1264 16, -1, 83, 84, 85, 86, 87, 88, 89, 108,
1265 -1, 54, 55, 56, 297, 298, 91, 92, 93, 94,
1266 -1, 304, 72, 73, 74, 75, 76, 77, 78, 312,
1267 -1, 106, 91, 92, 317, 110, 319, -1, -1, 372,
1268 83, 84, 85, 86, 87, 88, 89, 403, -1, 108,
1269 357, -1, -1, 336, 361, -1, -1, -1, 414, 91,
1270 92, 394, -1, -1, -1, -1, 399, 83, 84, 85,
1271 86, 87, 88, 89, 357, 3, 108, 433, 361, 435,
1272 -1, -1, -1, 366, -1, -1, 442, -1, 371, -1,
1273 94, 62, 63, 64, 65, 66, 67, -1, 102, -1,
1274 456, 457, 106, -1, 460, 461, 110, 463, -1, -1,
1275 466, 467, 3, -1, -1, 471, -1, 473, -1, 452,
1276 403, -1, 478, 406, -1, 481, 54, 55, 56, -1,
1277 486, 487, -1, -1, 490, 468, 5, 108, 494, -1,
1278 496, -1, -1, 12, 13, 14, 15, -1, -1, 482,
1279 101, 102, 103, 104, 105, 83, 84, 85, 86, 87,
1280 88, 89, -1, 54, 55, 56, -1, 500, -1, -1,
1281 -1, -1, 41, 42, 43, 44, 45, 46, -1, 48,
1282 49, 50, 51, 52, -1, -1, -1, -1, 57, 58,
1283 -1, -1, 83, 84, 85, 86, 87, 88, 89, 68,
1284 69, -1, 71, -1, 94, 95, 96, -1, -1, -1,
1285 -1, -1, 102, 54, 55, 56, 106, -1, -1, 3,
1286 110, -1, 91, 92, 93, 94, 100, 101, 102, 103,
1287 104, 105, 16, 17, 18, 19, 3, 106, -1, -1,
1288 -1, 110, 83, 84, 85, 86, 87, 88, 89, 16,
1289 17, 18, 19, 94, -1, -1, 99, 41, -1, 102,
1290 103, 102, 3, -1, 107, 106, 109, -1, -1, 110,
1291 54, 55, 56, 57, 41, 16, 17, 18, 19, 98,
1292 99, 100, 101, 102, 103, 104, 105, 54, 55, 56,
1293 57, 383, 111, 385, -1, -1, -1, -1, -1, 391,
1294 41, 83, 84, 85, 86, 87, 88, 89, -1, -1,
1295 92, 93, -1, 54, 55, 56, 57, 409, 410, 411,
1296 412, -1, -1, 415, 416, -1, 418, 4, 420, 421,
1297 422, 423, 424, 10, 426, -1, -1, -1, 430, 431,
1298 432, -1, -1, 20, 21, 22, 23, 24, 25, 26,
1299 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
1300 37, 38, 39, 40, 4, 42, -1, -1, -1, -1,
1301 10, 98, 99, 100, 101, 102, 103, 104, 105, -1,
1302 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
1303 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
1304 40, 4, 42, -1, -1, -1, -1, 10, 98, 99,
1305 100, 101, 102, 103, 104, 105, -1, 20, 21, 22,
1306 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
1307 33, 34, 35, 36, 37, 38, 39, 40, 474, 42,
1308 -1, 477, 98, 99, 100, 101, 102, 103, 104, 105,
1309 -1, -1, -1, 489, -1, 111, -1, 493, -1, 495,
1310 -1, -1, -1, 499, -1, -1, -1, 503, -1, 505,
1311 340, 341, 342, 343, -1, 345, 346, -1, 348, -1,
1312 350, 351, 352, 353, 354, -1, 356, -1, 358, 359,
1313 360, 98, 99, 100, 101, 102, 103, -1, -1, -1,
1314 107, 99, 100, 101, 102, 103, 104, 105, 6, 7,
1315 8, 9, 10, 11, 62, 63, 64, 65, 66, 67
1318 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
1319 symbol of state STATE-NUM. */
1320 static const yytype_uint8 yystos[] =
1322 0, 113, 0, 54, 70, 91, 92, 93, 94, 97,
1323 106, 110, 114, 120, 121, 122, 162, 163, 164, 165,
1324 170, 173, 178, 182, 183, 185, 190, 191, 199, 209,
1325 210, 94, 102, 106, 110, 206, 207, 193, 207, 207,
1326 5, 12, 13, 14, 15, 41, 42, 43, 44, 45,
1327 46, 48, 49, 50, 51, 52, 57, 58, 68, 69,
1328 71, 181, 190, 98, 99, 100, 101, 102, 103, 104,
1329 105, 207, 207, 207, 108, 205, 98, 99, 100, 101,
1330 102, 103, 104, 105, 3, 54, 55, 56, 83, 84,
1331 85, 86, 87, 88, 89, 196, 111, 193, 195, 194,
1332 195, 195, 194, 194, 193, 193, 193, 195, 186, 193,
1333 207, 207, 207, 207, 207, 207, 207, 207, 111, 206,
1334 207, 207, 207, 207, 207, 207, 207, 207, 179, 206,
1335 206, 206, 3, 92, 93, 196, 197, 196, 197, 16,
1336 126, 126, 197, 197, 206, 3, 3, 197, 3, 72,
1337 73, 74, 75, 76, 77, 78, 3, 197, 180, 205,
1338 115, 109, 209, 209, 205, 166, 171, 187, 206, 206,
1339 206, 206, 206, 206, 206, 174, 175, 4, 206, 4,
1340 92, 116, 117, 209, 206, 205, 205, 3, 4, 59,
1341 61, 167, 4, 59, 61, 172, 4, 79, 80, 205,
1342 205, 4, 95, 96, 176, 177, 200, 201, 207, 108,
1343 198, 199, 108, 208, 205, 205, 184, 60, 198, 198,
1344 60, 198, 198, 3, 3, 205, 205, 108, 96, 95,
1345 198, 199, 209, 108, 205, 205, 4, 53, 60, 205,
1346 168, 205, 3, 205, 82, 81, 205, 205, 200, 201,
1347 207, 6, 7, 8, 9, 10, 11, 118, 119, 123,
1348 124, 205, 190, 168, 3, 62, 63, 64, 65, 66,
1349 67, 108, 169, 205, 171, 3, 205, 3, 198, 108,
1350 119, 127, 127, 125, 166, 169, 204, 205, 4, 171,
1351 3, 205, 188, 189, 119, 3, 16, 17, 18, 19,
1352 41, 54, 55, 56, 57, 3, 127, 4, 4, 171,
1353 204, 4, 81, 4, 205, 128, 206, 198, 190, 198,
1354 199, 90, 94, 110, 202, 203, 206, 206, 206, 206,
1355 190, 128, 3, 4, 3, 4, 198, 205, 4, 10,
1356 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
1357 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
1358 40, 42, 129, 203, 206, 98, 108, 205, 4, 128,
1359 171, 108, 153, 154, 199, 209, 153, 153, 153, 153,
1360 135, 153, 153, 138, 153, 142, 153, 153, 153, 153,
1361 153, 148, 153, 191, 192, 209, 153, 153, 153, 192,
1362 111, 90, 203, 198, 4, 4, 198, 206, 108, 130,
1363 131, 132, 134, 151, 206, 136, 137, 151, 139, 151,
1364 143, 144, 145, 146, 147, 151, 149, 108, 206, 108,
1365 133, 140, 141, 206, 203, 205, 108, 152, 151, 151,
1366 151, 151, 205, 151, 151, 151, 151, 151, 151, 151,
1367 151, 151, 108, 151, 151, 151, 205, 205, 154, 108,
1368 156, 205, 206, 205, 205, 157, 205, 205, 108, 3,
1369 155, 205, 202, 205, 205, 206, 174, 205, 205, 108,
1370 155, 160, 108, 4, 108, 155, 158, 205, 161, 204,
1371 205, 206, 159, 204, 205, 204, 205, 202, 155, 205,
1372 108, 202, 155, 205, 155, 205, 155, 206, 155, 155,
1373 108, 150, 202, 204
1376 #define yyerrok (yyerrstatus = 0)
1377 #define yyclearin (yychar = YYEMPTY)
1378 #define YYEMPTY (-2)
1379 #define YYEOF 0
1381 #define YYACCEPT goto yyacceptlab
1382 #define YYABORT goto yyabortlab
1383 #define YYERROR goto yyerrorlab
1386 /* Like YYERROR except do call yyerror. This remains here temporarily
1387 to ease the transition to the new meaning of YYERROR, for GCC.
1388 Once GCC version 2 has supplanted version 1, this can go. */
1390 #define YYFAIL goto yyerrlab
1392 #define YYRECOVERING() (!!yyerrstatus)
1394 #define YYBACKUP(Token, Value) \
1395 do \
1396 if (yychar == YYEMPTY && yylen == 1) \
1398 yychar = (Token); \
1399 yylval = (Value); \
1400 yytoken = YYTRANSLATE (yychar); \
1401 YYPOPSTACK (1); \
1402 goto yybackup; \
1404 else \
1406 yyerror (YY_("syntax error: cannot back up")); \
1407 YYERROR; \
1409 while (YYID (0))
1412 #define YYTERROR 1
1413 #define YYERRCODE 256
1416 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
1417 If N is 0, then set CURRENT to the empty location which ends
1418 the previous symbol: RHS[0] (always defined). */
1420 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
1421 #ifndef YYLLOC_DEFAULT
1422 # define YYLLOC_DEFAULT(Current, Rhs, N) \
1423 do \
1424 if (YYID (N)) \
1426 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
1427 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
1428 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
1429 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
1431 else \
1433 (Current).first_line = (Current).last_line = \
1434 YYRHSLOC (Rhs, 0).last_line; \
1435 (Current).first_column = (Current).last_column = \
1436 YYRHSLOC (Rhs, 0).last_column; \
1438 while (YYID (0))
1439 #endif
1442 /* YY_LOCATION_PRINT -- Print the location on the stream.
1443 This macro was not mandated originally: define only if we know
1444 we won't break user code: when these are the locations we know. */
1446 #ifndef YY_LOCATION_PRINT
1447 # if YYLTYPE_IS_TRIVIAL
1448 # define YY_LOCATION_PRINT(File, Loc) \
1449 fprintf (File, "%d.%d-%d.%d", \
1450 (Loc).first_line, (Loc).first_column, \
1451 (Loc).last_line, (Loc).last_column)
1452 # else
1453 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1454 # endif
1455 #endif
1458 /* YYLEX -- calling `yylex' with the right arguments. */
1460 #ifdef YYLEX_PARAM
1461 # define YYLEX yylex (YYLEX_PARAM)
1462 #else
1463 # define YYLEX yylex ()
1464 #endif
1466 /* Enable debugging if requested. */
1467 #if YYDEBUG
1469 # ifndef YYFPRINTF
1470 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1471 # define YYFPRINTF fprintf
1472 # endif
1474 # define YYDPRINTF(Args) \
1475 do { \
1476 if (yydebug) \
1477 YYFPRINTF Args; \
1478 } while (YYID (0))
1480 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
1481 do { \
1482 if (yydebug) \
1484 YYFPRINTF (stderr, "%s ", Title); \
1485 yy_symbol_print (stderr, \
1486 Type, Value); \
1487 YYFPRINTF (stderr, "\n"); \
1489 } while (YYID (0))
1492 /*--------------------------------.
1493 | Print this symbol on YYOUTPUT. |
1494 `--------------------------------*/
1496 /*ARGSUSED*/
1497 #if (defined __STDC__ || defined __C99__FUNC__ \
1498 || defined __cplusplus || defined _MSC_VER)
1499 static void
1500 yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
1501 #else
1502 static void
1503 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
1504 FILE *yyoutput;
1505 int yytype;
1506 YYSTYPE const * const yyvaluep;
1507 #endif
1509 if (!yyvaluep)
1510 return;
1511 # ifdef YYPRINT
1512 if (yytype < YYNTOKENS)
1513 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
1514 # else
1515 YYUSE (yyoutput);
1516 # endif
1517 switch (yytype)
1519 default:
1520 break;
1525 /*--------------------------------.
1526 | Print this symbol on YYOUTPUT. |
1527 `--------------------------------*/
1529 #if (defined __STDC__ || defined __C99__FUNC__ \
1530 || defined __cplusplus || defined _MSC_VER)
1531 static void
1532 yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
1533 #else
1534 static void
1535 yy_symbol_print (yyoutput, yytype, yyvaluep)
1536 FILE *yyoutput;
1537 int yytype;
1538 YYSTYPE const * const yyvaluep;
1539 #endif
1541 if (yytype < YYNTOKENS)
1542 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
1543 else
1544 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
1546 yy_symbol_value_print (yyoutput, yytype, yyvaluep);
1547 YYFPRINTF (yyoutput, ")");
1550 /*------------------------------------------------------------------.
1551 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
1552 | TOP (included). |
1553 `------------------------------------------------------------------*/
1555 #if (defined __STDC__ || defined __C99__FUNC__ \
1556 || defined __cplusplus || defined _MSC_VER)
1557 static void
1558 yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
1559 #else
1560 static void
1561 yy_stack_print (bottom, top)
1562 yytype_int16 *bottom;
1563 yytype_int16 *top;
1564 #endif
1566 YYFPRINTF (stderr, "Stack now");
1567 for (; bottom <= top; ++bottom)
1568 YYFPRINTF (stderr, " %d", *bottom);
1569 YYFPRINTF (stderr, "\n");
1572 # define YY_STACK_PRINT(Bottom, Top) \
1573 do { \
1574 if (yydebug) \
1575 yy_stack_print ((Bottom), (Top)); \
1576 } while (YYID (0))
1579 /*------------------------------------------------.
1580 | Report that the YYRULE is going to be reduced. |
1581 `------------------------------------------------*/
1583 #if (defined __STDC__ || defined __C99__FUNC__ \
1584 || defined __cplusplus || defined _MSC_VER)
1585 static void
1586 yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
1587 #else
1588 static void
1589 yy_reduce_print (yyvsp, yyrule)
1590 YYSTYPE *yyvsp;
1591 int yyrule;
1592 #endif
1594 int yynrhs = yyr2[yyrule];
1595 int yyi;
1596 unsigned long int yylno = yyrline[yyrule];
1597 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
1598 yyrule - 1, yylno);
1599 /* The symbols being reduced. */
1600 for (yyi = 0; yyi < yynrhs; yyi++)
1602 fprintf (stderr, " $%d = ", yyi + 1);
1603 yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
1604 &(yyvsp[(yyi + 1) - (yynrhs)])
1606 fprintf (stderr, "\n");
1610 # define YY_REDUCE_PRINT(Rule) \
1611 do { \
1612 if (yydebug) \
1613 yy_reduce_print (yyvsp, Rule); \
1614 } while (YYID (0))
1616 /* Nonzero means print parse trace. It is left uninitialized so that
1617 multiple parsers can coexist. */
1618 int yydebug;
1619 #else /* !YYDEBUG */
1620 # define YYDPRINTF(Args)
1621 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1622 # define YY_STACK_PRINT(Bottom, Top)
1623 # define YY_REDUCE_PRINT(Rule)
1624 #endif /* !YYDEBUG */
1627 /* YYINITDEPTH -- initial size of the parser's stacks. */
1628 #ifndef YYINITDEPTH
1629 # define YYINITDEPTH 200
1630 #endif
1632 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1633 if the built-in stack extension method is used).
1635 Do not make this value too large; the results are undefined if
1636 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1637 evaluated with infinite-precision integer arithmetic. */
1639 #ifndef YYMAXDEPTH
1640 # define YYMAXDEPTH 10000
1641 #endif
1645 #if YYERROR_VERBOSE
1647 # ifndef yystrlen
1648 # if defined __GLIBC__ && defined _STRING_H
1649 # define yystrlen strlen
1650 # else
1651 /* Return the length of YYSTR. */
1652 #if (defined __STDC__ || defined __C99__FUNC__ \
1653 || defined __cplusplus || defined _MSC_VER)
1654 static YYSIZE_T
1655 yystrlen (const char *yystr)
1656 #else
1657 static YYSIZE_T
1658 yystrlen (yystr)
1659 const char *yystr;
1660 #endif
1662 YYSIZE_T yylen;
1663 for (yylen = 0; yystr[yylen]; yylen++)
1664 continue;
1665 return yylen;
1667 # endif
1668 # endif
1670 # ifndef yystpcpy
1671 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1672 # define yystpcpy stpcpy
1673 # else
1674 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1675 YYDEST. */
1676 #if (defined __STDC__ || defined __C99__FUNC__ \
1677 || defined __cplusplus || defined _MSC_VER)
1678 static char *
1679 yystpcpy (char *yydest, const char *yysrc)
1680 #else
1681 static char *
1682 yystpcpy (yydest, yysrc)
1683 char *yydest;
1684 const char *yysrc;
1685 #endif
1687 char *yyd = yydest;
1688 const char *yys = yysrc;
1690 while ((*yyd++ = *yys++) != '\0')
1691 continue;
1693 return yyd - 1;
1695 # endif
1696 # endif
1698 # ifndef yytnamerr
1699 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1700 quotes and backslashes, so that it's suitable for yyerror. The
1701 heuristic is that double-quoting is unnecessary unless the string
1702 contains an apostrophe, a comma, or backslash (other than
1703 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1704 null, do not copy; instead, return the length of what the result
1705 would have been. */
1706 static YYSIZE_T
1707 yytnamerr (char *yyres, const char *yystr)
1709 if (*yystr == '"')
1711 YYSIZE_T yyn = 0;
1712 char const *yyp = yystr;
1714 for (;;)
1715 switch (*++yyp)
1717 case '\'':
1718 case ',':
1719 goto do_not_strip_quotes;
1721 case '\\':
1722 if (*++yyp != '\\')
1723 goto do_not_strip_quotes;
1724 /* Fall through. */
1725 default:
1726 if (yyres)
1727 yyres[yyn] = *yyp;
1728 yyn++;
1729 break;
1731 case '"':
1732 if (yyres)
1733 yyres[yyn] = '\0';
1734 return yyn;
1736 do_not_strip_quotes: ;
1739 if (! yyres)
1740 return yystrlen (yystr);
1742 return yystpcpy (yyres, yystr) - yyres;
1744 # endif
1746 /* Copy into YYRESULT an error message about the unexpected token
1747 YYCHAR while in state YYSTATE. Return the number of bytes copied,
1748 including the terminating null byte. If YYRESULT is null, do not
1749 copy anything; just return the number of bytes that would be
1750 copied. As a special case, return 0 if an ordinary "syntax error"
1751 message will do. Return YYSIZE_MAXIMUM if overflow occurs during
1752 size calculation. */
1753 static YYSIZE_T
1754 yysyntax_error (char *yyresult, int yystate, int yychar)
1756 int yyn = yypact[yystate];
1758 if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
1759 return 0;
1760 else
1762 int yytype = YYTRANSLATE (yychar);
1763 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
1764 YYSIZE_T yysize = yysize0;
1765 YYSIZE_T yysize1;
1766 int yysize_overflow = 0;
1767 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1768 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1769 int yyx;
1771 # if 0
1772 /* This is so xgettext sees the translatable formats that are
1773 constructed on the fly. */
1774 YY_("syntax error, unexpected %s");
1775 YY_("syntax error, unexpected %s, expecting %s");
1776 YY_("syntax error, unexpected %s, expecting %s or %s");
1777 YY_("syntax error, unexpected %s, expecting %s or %s or %s");
1778 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
1779 # endif
1780 char *yyfmt;
1781 char const *yyf;
1782 static char const yyunexpected[] = "syntax error, unexpected %s";
1783 static char const yyexpecting[] = ", expecting %s";
1784 static char const yyor[] = " or %s";
1785 char yyformat[sizeof yyunexpected
1786 + sizeof yyexpecting - 1
1787 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
1788 * (sizeof yyor - 1))];
1789 char const *yyprefix = yyexpecting;
1791 /* Start YYX at -YYN if negative to avoid negative indexes in
1792 YYCHECK. */
1793 int yyxbegin = yyn < 0 ? -yyn : 0;
1795 /* Stay within bounds of both yycheck and yytname. */
1796 int yychecklim = YYLAST - yyn + 1;
1797 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1798 int yycount = 1;
1800 yyarg[0] = yytname[yytype];
1801 yyfmt = yystpcpy (yyformat, yyunexpected);
1803 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1804 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
1806 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1808 yycount = 1;
1809 yysize = yysize0;
1810 yyformat[sizeof yyunexpected - 1] = '\0';
1811 break;
1813 yyarg[yycount++] = yytname[yyx];
1814 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
1815 yysize_overflow |= (yysize1 < yysize);
1816 yysize = yysize1;
1817 yyfmt = yystpcpy (yyfmt, yyprefix);
1818 yyprefix = yyor;
1821 yyf = YY_(yyformat);
1822 yysize1 = yysize + yystrlen (yyf);
1823 yysize_overflow |= (yysize1 < yysize);
1824 yysize = yysize1;
1826 if (yysize_overflow)
1827 return YYSIZE_MAXIMUM;
1829 if (yyresult)
1831 /* Avoid sprintf, as that infringes on the user's name space.
1832 Don't have undefined behavior even if the translation
1833 produced a string with the wrong number of "%s"s. */
1834 char *yyp = yyresult;
1835 int yyi = 0;
1836 while ((*yyp = *yyf) != '\0')
1838 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
1840 yyp += yytnamerr (yyp, yyarg[yyi++]);
1841 yyf += 2;
1843 else
1845 yyp++;
1846 yyf++;
1850 return yysize;
1853 #endif /* YYERROR_VERBOSE */
1856 /*-----------------------------------------------.
1857 | Release the memory associated to this symbol. |
1858 `-----------------------------------------------*/
1860 /*ARGSUSED*/
1861 #if (defined __STDC__ || defined __C99__FUNC__ \
1862 || defined __cplusplus || defined _MSC_VER)
1863 static void
1864 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
1865 #else
1866 static void
1867 yydestruct (yymsg, yytype, yyvaluep)
1868 const char *yymsg;
1869 int yytype;
1870 YYSTYPE *yyvaluep;
1871 #endif
1873 YYUSE (yyvaluep);
1875 if (!yymsg)
1876 yymsg = "Deleting";
1877 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1879 switch (yytype)
1882 default:
1883 break;
1888 /* Prevent warnings from -Wmissing-prototypes. */
1890 #ifdef YYPARSE_PARAM
1891 #if defined __STDC__ || defined __cplusplus
1892 int yyparse (void *YYPARSE_PARAM);
1893 #else
1894 int yyparse ();
1895 #endif
1896 #else /* ! YYPARSE_PARAM */
1897 #if defined __STDC__ || defined __cplusplus
1898 int yyparse (void);
1899 #else
1900 int yyparse ();
1901 #endif
1902 #endif /* ! YYPARSE_PARAM */
1906 /* The look-ahead symbol. */
1907 int yychar;
1909 /* The semantic value of the look-ahead symbol. */
1910 YYSTYPE yylval;
1912 /* Number of syntax errors so far. */
1913 int yynerrs;
1917 /*----------.
1918 | yyparse. |
1919 `----------*/
1921 #ifdef YYPARSE_PARAM
1922 #if (defined __STDC__ || defined __C99__FUNC__ \
1923 || defined __cplusplus || defined _MSC_VER)
1925 yyparse (void *YYPARSE_PARAM)
1926 #else
1928 yyparse (YYPARSE_PARAM)
1929 void *YYPARSE_PARAM;
1930 #endif
1931 #else /* ! YYPARSE_PARAM */
1932 #if (defined __STDC__ || defined __C99__FUNC__ \
1933 || defined __cplusplus || defined _MSC_VER)
1935 yyparse (void)
1936 #else
1938 yyparse ()
1940 #endif
1941 #endif
1944 int yystate;
1945 int yyn;
1946 int yyresult;
1947 /* Number of tokens to shift before error messages enabled. */
1948 int yyerrstatus;
1949 /* Look-ahead token as an internal (translated) token number. */
1950 int yytoken = 0;
1951 #if YYERROR_VERBOSE
1952 /* Buffer for error messages, and its allocated size. */
1953 char yymsgbuf[128];
1954 char *yymsg = yymsgbuf;
1955 YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
1956 #endif
1958 /* Three stacks and their tools:
1959 `yyss': related to states,
1960 `yyvs': related to semantic values,
1961 `yyls': related to locations.
1963 Refer to the stacks thru separate pointers, to allow yyoverflow
1964 to reallocate them elsewhere. */
1966 /* The state stack. */
1967 yytype_int16 yyssa[YYINITDEPTH];
1968 yytype_int16 *yyss = yyssa;
1969 yytype_int16 *yyssp;
1971 /* The semantic value stack. */
1972 YYSTYPE yyvsa[YYINITDEPTH];
1973 YYSTYPE *yyvs = yyvsa;
1974 YYSTYPE *yyvsp;
1978 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
1980 YYSIZE_T yystacksize = YYINITDEPTH;
1982 /* The variables used to return semantic value and location from the
1983 action routines. */
1984 YYSTYPE yyval;
1987 /* The number of symbols on the RHS of the reduced rule.
1988 Keep to zero when no symbol should be popped. */
1989 int yylen = 0;
1991 YYDPRINTF ((stderr, "Starting parse\n"));
1993 yystate = 0;
1994 yyerrstatus = 0;
1995 yynerrs = 0;
1996 yychar = YYEMPTY; /* Cause a token to be read. */
1998 /* Initialize stack pointers.
1999 Waste one element of value and location stack
2000 so that they stay on the same level as the state stack.
2001 The wasted elements are never initialized. */
2003 yyssp = yyss;
2004 yyvsp = yyvs;
2006 goto yysetstate;
2008 /*------------------------------------------------------------.
2009 | yynewstate -- Push a new state, which is found in yystate. |
2010 `------------------------------------------------------------*/
2011 yynewstate:
2012 /* In all cases, when you get here, the value and location stacks
2013 have just been pushed. So pushing a state here evens the stacks. */
2014 yyssp++;
2016 yysetstate:
2017 *yyssp = yystate;
2019 if (yyss + yystacksize - 1 <= yyssp)
2021 /* Get the current used size of the three stacks, in elements. */
2022 YYSIZE_T yysize = yyssp - yyss + 1;
2024 #ifdef yyoverflow
2026 /* Give user a chance to reallocate the stack. Use copies of
2027 these so that the &'s don't force the real ones into
2028 memory. */
2029 YYSTYPE *yyvs1 = yyvs;
2030 yytype_int16 *yyss1 = yyss;
2033 /* Each stack pointer address is followed by the size of the
2034 data in use in that stack, in bytes. This used to be a
2035 conditional around just the two extra args, but that might
2036 be undefined if yyoverflow is a macro. */
2037 yyoverflow (YY_("memory exhausted"),
2038 &yyss1, yysize * sizeof (*yyssp),
2039 &yyvs1, yysize * sizeof (*yyvsp),
2041 &yystacksize);
2043 yyss = yyss1;
2044 yyvs = yyvs1;
2046 #else /* no yyoverflow */
2047 # ifndef YYSTACK_RELOCATE
2048 goto yyexhaustedlab;
2049 # else
2050 /* Extend the stack our own way. */
2051 if (YYMAXDEPTH <= yystacksize)
2052 goto yyexhaustedlab;
2053 yystacksize *= 2;
2054 if (YYMAXDEPTH < yystacksize)
2055 yystacksize = YYMAXDEPTH;
2058 yytype_int16 *yyss1 = yyss;
2059 union yyalloc *yyptr =
2060 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
2061 if (! yyptr)
2062 goto yyexhaustedlab;
2063 YYSTACK_RELOCATE (yyss);
2064 YYSTACK_RELOCATE (yyvs);
2066 # undef YYSTACK_RELOCATE
2067 if (yyss1 != yyssa)
2068 YYSTACK_FREE (yyss1);
2070 # endif
2071 #endif /* no yyoverflow */
2073 yyssp = yyss + yysize - 1;
2074 yyvsp = yyvs + yysize - 1;
2077 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
2078 (unsigned long int) yystacksize));
2080 if (yyss + yystacksize - 1 <= yyssp)
2081 YYABORT;
2084 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
2086 goto yybackup;
2088 /*-----------.
2089 | yybackup. |
2090 `-----------*/
2091 yybackup:
2093 /* Do appropriate processing given the current state. Read a
2094 look-ahead token if we need one and don't already have one. */
2096 /* First try to decide what to do without reference to look-ahead token. */
2097 yyn = yypact[yystate];
2098 if (yyn == YYPACT_NINF)
2099 goto yydefault;
2101 /* Not known => get a look-ahead token if don't already have one. */
2103 /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
2104 if (yychar == YYEMPTY)
2106 YYDPRINTF ((stderr, "Reading a token: "));
2107 yychar = YYLEX;
2110 if (yychar <= YYEOF)
2112 yychar = yytoken = YYEOF;
2113 YYDPRINTF ((stderr, "Now at end of input.\n"));
2115 else
2117 yytoken = YYTRANSLATE (yychar);
2118 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
2121 /* If the proper action on seeing token YYTOKEN is to reduce or to
2122 detect an error, take that action. */
2123 yyn += yytoken;
2124 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
2125 goto yydefault;
2126 yyn = yytable[yyn];
2127 if (yyn <= 0)
2129 if (yyn == 0 || yyn == YYTABLE_NINF)
2130 goto yyerrlab;
2131 yyn = -yyn;
2132 goto yyreduce;
2135 if (yyn == YYFINAL)
2136 YYACCEPT;
2138 /* Count tokens shifted since error; after three, turn off error
2139 status. */
2140 if (yyerrstatus)
2141 yyerrstatus--;
2143 /* Shift the look-ahead token. */
2144 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
2146 /* Discard the shifted token unless it is eof. */
2147 if (yychar != YYEOF)
2148 yychar = YYEMPTY;
2150 yystate = yyn;
2151 *++yyvsp = yylval;
2153 goto yynewstate;
2156 /*-----------------------------------------------------------.
2157 | yydefault -- do the default action for the current state. |
2158 `-----------------------------------------------------------*/
2159 yydefault:
2160 yyn = yydefact[yystate];
2161 if (yyn == 0)
2162 goto yyerrlab;
2163 goto yyreduce;
2166 /*-----------------------------.
2167 | yyreduce -- Do a reduction. |
2168 `-----------------------------*/
2169 yyreduce:
2170 /* yyn is the number of a rule to reduce with. */
2171 yylen = yyr2[yyn];
2173 /* If YYLEN is nonzero, implement the default value of the action:
2174 `$$ = $1'.
2176 Otherwise, the following line sets YYVAL to garbage.
2177 This behavior is undocumented and Bison
2178 users should not rely upon it. Assigning to YYVAL
2179 unconditionally makes the parser a bit smaller, and it avoids a
2180 GCC warning that YYVAL may be used uninitialized. */
2181 yyval = yyvsp[1-yylen];
2184 YY_REDUCE_PRINT (yyn);
2185 switch (yyn)
2187 case 18:
2188 #line 200 "rcparse.y"
2190 define_accelerator ((yyvsp[(1) - (6)].id), &(yyvsp[(3) - (6)].res_info), (yyvsp[(5) - (6)].pacc));
2191 if (yychar != YYEMPTY)
2192 YYERROR;
2193 rcparse_discard_strings ();
2195 break;
2197 case 19:
2198 #line 210 "rcparse.y"
2200 (yyval.pacc) = NULL;
2202 break;
2204 case 20:
2205 #line 214 "rcparse.y"
2207 rc_accelerator *a;
2209 a = (rc_accelerator *) res_alloc (sizeof *a);
2210 *a = (yyvsp[(2) - (2)].acc);
2211 if ((yyvsp[(1) - (2)].pacc) == NULL)
2212 (yyval.pacc) = a;
2213 else
2215 rc_accelerator **pp;
2217 for (pp = &(yyvsp[(1) - (2)].pacc)->next; *pp != NULL; pp = &(*pp)->next)
2219 *pp = a;
2220 (yyval.pacc) = (yyvsp[(1) - (2)].pacc);
2223 break;
2225 case 21:
2226 #line 235 "rcparse.y"
2228 (yyval.acc) = (yyvsp[(1) - (2)].acc);
2229 (yyval.acc).id = (yyvsp[(2) - (2)].il);
2231 break;
2233 case 22:
2234 #line 240 "rcparse.y"
2236 (yyval.acc) = (yyvsp[(1) - (4)].acc);
2237 (yyval.acc).id = (yyvsp[(2) - (4)].il);
2238 (yyval.acc).flags |= (yyvsp[(4) - (4)].is);
2239 if (((yyval.acc).flags & ACC_VIRTKEY) == 0
2240 && ((yyval.acc).flags & (ACC_SHIFT | ACC_CONTROL)) != 0)
2241 rcparse_warning (_("inappropriate modifiers for non-VIRTKEY"));
2243 break;
2245 case 23:
2246 #line 252 "rcparse.y"
2248 const char *s = (yyvsp[(1) - (1)].s);
2249 char ch;
2251 (yyval.acc).next = NULL;
2252 (yyval.acc).id = 0;
2253 ch = *s;
2254 if (ch != '^')
2255 (yyval.acc).flags = 0;
2256 else
2258 (yyval.acc).flags = ACC_CONTROL | ACC_VIRTKEY;
2259 ++s;
2260 ch = TOUPPER (s[0]);
2262 (yyval.acc).key = ch;
2263 if (s[1] != '\0')
2264 rcparse_warning (_("accelerator should only be one character"));
2266 break;
2268 case 24:
2269 #line 272 "rcparse.y"
2271 (yyval.acc).next = NULL;
2272 (yyval.acc).flags = 0;
2273 (yyval.acc).id = 0;
2274 (yyval.acc).key = (yyvsp[(1) - (1)].il);
2276 break;
2278 case 25:
2279 #line 282 "rcparse.y"
2281 (yyval.is) = (yyvsp[(1) - (1)].is);
2283 break;
2285 case 26:
2286 #line 286 "rcparse.y"
2288 (yyval.is) = (yyvsp[(1) - (3)].is) | (yyvsp[(3) - (3)].is);
2290 break;
2292 case 27:
2293 #line 291 "rcparse.y"
2295 (yyval.is) = (yyvsp[(1) - (2)].is) | (yyvsp[(2) - (2)].is);
2297 break;
2299 case 28:
2300 #line 298 "rcparse.y"
2302 (yyval.is) = ACC_VIRTKEY;
2304 break;
2306 case 29:
2307 #line 302 "rcparse.y"
2309 /* This is just the absence of VIRTKEY. */
2310 (yyval.is) = 0;
2312 break;
2314 case 30:
2315 #line 307 "rcparse.y"
2317 (yyval.is) = ACC_NOINVERT;
2319 break;
2321 case 31:
2322 #line 311 "rcparse.y"
2324 (yyval.is) = ACC_SHIFT;
2326 break;
2328 case 32:
2329 #line 315 "rcparse.y"
2331 (yyval.is) = ACC_CONTROL;
2333 break;
2335 case 33:
2336 #line 319 "rcparse.y"
2338 (yyval.is) = ACC_ALT;
2340 break;
2342 case 34:
2343 #line 328 "rcparse.y"
2345 define_bitmap ((yyvsp[(1) - (4)].id), &(yyvsp[(3) - (4)].res_info), (yyvsp[(4) - (4)].s));
2346 if (yychar != YYEMPTY)
2347 YYERROR;
2348 rcparse_discard_strings ();
2350 break;
2352 case 35:
2353 #line 340 "rcparse.y"
2355 define_cursor ((yyvsp[(1) - (4)].id), &(yyvsp[(3) - (4)].res_info), (yyvsp[(4) - (4)].s));
2356 if (yychar != YYEMPTY)
2357 YYERROR;
2358 rcparse_discard_strings ();
2360 break;
2362 case 36:
2363 #line 353 "rcparse.y"
2365 memset (&dialog, 0, sizeof dialog);
2366 dialog.x = (yyvsp[(5) - (8)].il);
2367 dialog.y = (yyvsp[(6) - (8)].il);
2368 dialog.width = (yyvsp[(7) - (8)].il);
2369 dialog.height = (yyvsp[(8) - (8)].il);
2370 dialog.style = WS_POPUP | WS_BORDER | WS_SYSMENU;
2371 dialog.exstyle = (yyvsp[(4) - (8)].il);
2372 dialog.menu.named = 1;
2373 dialog.class.named = 1;
2374 dialog.font = NULL;
2375 dialog.ex = NULL;
2376 dialog.controls = NULL;
2377 sub_res_info = (yyvsp[(3) - (8)].res_info);
2378 style = 0;
2380 break;
2382 case 37:
2383 #line 370 "rcparse.y"
2385 define_dialog ((yyvsp[(1) - (13)].id), &sub_res_info, &dialog);
2386 if (yychar != YYEMPTY)
2387 YYERROR;
2388 rcparse_discard_strings ();
2390 break;
2392 case 38:
2393 #line 378 "rcparse.y"
2395 memset (&dialog, 0, sizeof dialog);
2396 dialog.x = (yyvsp[(5) - (8)].il);
2397 dialog.y = (yyvsp[(6) - (8)].il);
2398 dialog.width = (yyvsp[(7) - (8)].il);
2399 dialog.height = (yyvsp[(8) - (8)].il);
2400 dialog.style = WS_POPUP | WS_BORDER | WS_SYSMENU;
2401 dialog.exstyle = (yyvsp[(4) - (8)].il);
2402 dialog.menu.named = 1;
2403 dialog.class.named = 1;
2404 dialog.font = NULL;
2405 dialog.ex = ((rc_dialog_ex *)
2406 res_alloc (sizeof (rc_dialog_ex)));
2407 memset (dialog.ex, 0, sizeof (rc_dialog_ex));
2408 dialog.controls = NULL;
2409 sub_res_info = (yyvsp[(3) - (8)].res_info);
2410 style = 0;
2412 break;
2414 case 39:
2415 #line 397 "rcparse.y"
2417 define_dialog ((yyvsp[(1) - (13)].id), &sub_res_info, &dialog);
2418 if (yychar != YYEMPTY)
2419 YYERROR;
2420 rcparse_discard_strings ();
2422 break;
2424 case 40:
2425 #line 405 "rcparse.y"
2427 memset (&dialog, 0, sizeof dialog);
2428 dialog.x = (yyvsp[(5) - (9)].il);
2429 dialog.y = (yyvsp[(6) - (9)].il);
2430 dialog.width = (yyvsp[(7) - (9)].il);
2431 dialog.height = (yyvsp[(8) - (9)].il);
2432 dialog.style = WS_POPUP | WS_BORDER | WS_SYSMENU;
2433 dialog.exstyle = (yyvsp[(4) - (9)].il);
2434 dialog.menu.named = 1;
2435 dialog.class.named = 1;
2436 dialog.font = NULL;
2437 dialog.ex = ((rc_dialog_ex *)
2438 res_alloc (sizeof (rc_dialog_ex)));
2439 memset (dialog.ex, 0, sizeof (rc_dialog_ex));
2440 dialog.ex->help = (yyvsp[(9) - (9)].il);
2441 dialog.controls = NULL;
2442 sub_res_info = (yyvsp[(3) - (9)].res_info);
2443 style = 0;
2445 break;
2447 case 41:
2448 #line 425 "rcparse.y"
2450 define_dialog ((yyvsp[(1) - (14)].id), &sub_res_info, &dialog);
2451 if (yychar != YYEMPTY)
2452 YYERROR;
2453 rcparse_discard_strings ();
2455 break;
2457 case 42:
2458 #line 435 "rcparse.y"
2460 (yyval.il) = 0;
2462 break;
2464 case 43:
2465 #line 439 "rcparse.y"
2467 (yyval.il) = (yyvsp[(3) - (3)].il);
2469 break;
2471 case 45:
2472 #line 447 "rcparse.y"
2474 dialog.style |= WS_CAPTION;
2475 style |= WS_CAPTION;
2476 dialog.caption = (yyvsp[(3) - (3)].uni);
2478 break;
2480 case 46:
2481 #line 453 "rcparse.y"
2483 dialog.class = (yyvsp[(3) - (3)].id);
2485 break;
2487 case 47:
2488 #line 458 "rcparse.y"
2490 dialog.style = style;
2492 break;
2494 case 48:
2495 #line 462 "rcparse.y"
2497 dialog.exstyle = (yyvsp[(3) - (3)].il);
2499 break;
2501 case 49:
2502 #line 466 "rcparse.y"
2504 res_unistring_to_id (& dialog.class, (yyvsp[(3) - (3)].uni));
2506 break;
2508 case 50:
2509 #line 470 "rcparse.y"
2511 dialog.style |= DS_SETFONT;
2512 style |= DS_SETFONT;
2513 dialog.pointsize = (yyvsp[(3) - (5)].il);
2514 dialog.font = (yyvsp[(5) - (5)].uni);
2515 if (dialog.ex != NULL)
2517 dialog.ex->weight = 0;
2518 dialog.ex->italic = 0;
2519 dialog.ex->charset = 1;
2522 break;
2524 case 51:
2525 #line 483 "rcparse.y"
2527 dialog.style |= DS_SETFONT;
2528 style |= DS_SETFONT;
2529 dialog.pointsize = (yyvsp[(3) - (6)].il);
2530 dialog.font = (yyvsp[(5) - (6)].uni);
2531 if (dialog.ex == NULL)
2532 rcparse_warning (_("extended FONT requires DIALOGEX"));
2533 else
2535 dialog.ex->weight = (yyvsp[(6) - (6)].il);
2536 dialog.ex->italic = 0;
2537 dialog.ex->charset = 1;
2540 break;
2542 case 52:
2543 #line 498 "rcparse.y"
2545 dialog.style |= DS_SETFONT;
2546 style |= DS_SETFONT;
2547 dialog.pointsize = (yyvsp[(3) - (7)].il);
2548 dialog.font = (yyvsp[(5) - (7)].uni);
2549 if (dialog.ex == NULL)
2550 rcparse_warning (_("extended FONT requires DIALOGEX"));
2551 else
2553 dialog.ex->weight = (yyvsp[(6) - (7)].il);
2554 dialog.ex->italic = (yyvsp[(7) - (7)].il);
2555 dialog.ex->charset = 1;
2558 break;
2560 case 53:
2561 #line 513 "rcparse.y"
2563 dialog.style |= DS_SETFONT;
2564 style |= DS_SETFONT;
2565 dialog.pointsize = (yyvsp[(3) - (8)].il);
2566 dialog.font = (yyvsp[(5) - (8)].uni);
2567 if (dialog.ex == NULL)
2568 rcparse_warning (_("extended FONT requires DIALOGEX"));
2569 else
2571 dialog.ex->weight = (yyvsp[(6) - (8)].il);
2572 dialog.ex->italic = (yyvsp[(7) - (8)].il);
2573 dialog.ex->charset = (yyvsp[(8) - (8)].il);
2576 break;
2578 case 54:
2579 #line 528 "rcparse.y"
2581 dialog.menu = (yyvsp[(3) - (3)].id);
2583 break;
2585 case 55:
2586 #line 532 "rcparse.y"
2588 sub_res_info.characteristics = (yyvsp[(3) - (3)].il);
2590 break;
2592 case 56:
2593 #line 536 "rcparse.y"
2595 sub_res_info.language = (yyvsp[(3) - (4)].il) | ((yyvsp[(4) - (4)].il) << SUBLANG_SHIFT);
2597 break;
2599 case 57:
2600 #line 540 "rcparse.y"
2602 sub_res_info.version = (yyvsp[(3) - (3)].il);
2604 break;
2606 case 59:
2607 #line 548 "rcparse.y"
2609 rc_dialog_control **pp;
2611 for (pp = &dialog.controls; *pp != NULL; pp = &(*pp)->next)
2613 *pp = (yyvsp[(2) - (2)].dialog_control);
2615 break;
2617 case 60:
2618 #line 559 "rcparse.y"
2620 default_style = BS_AUTO3STATE | WS_TABSTOP;
2621 base_style = BS_AUTO3STATE;
2622 class.named = 0;
2623 class.u.id = CTL_BUTTON;
2624 res_text_field = (yyvsp[(2) - (2)].id);
2626 break;
2628 case 61:
2629 #line 567 "rcparse.y"
2631 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2633 break;
2635 case 62:
2636 #line 571 "rcparse.y"
2638 default_style = BS_AUTOCHECKBOX | WS_TABSTOP;
2639 base_style = BS_AUTOCHECKBOX;
2640 class.named = 0;
2641 class.u.id = CTL_BUTTON;
2642 res_text_field = (yyvsp[(2) - (2)].id);
2644 break;
2646 case 63:
2647 #line 579 "rcparse.y"
2649 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2651 break;
2653 case 64:
2654 #line 583 "rcparse.y"
2656 default_style = BS_AUTORADIOBUTTON | WS_TABSTOP;
2657 base_style = BS_AUTORADIOBUTTON;
2658 class.named = 0;
2659 class.u.id = CTL_BUTTON;
2660 res_text_field = (yyvsp[(2) - (2)].id);
2662 break;
2664 case 65:
2665 #line 591 "rcparse.y"
2667 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2669 break;
2671 case 66:
2672 #line 595 "rcparse.y"
2674 default_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
2675 base_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
2676 class.named = 0;
2677 class.u.id = CTL_EDIT;
2678 res_text_field = (yyvsp[(2) - (2)].id);
2680 break;
2682 case 67:
2683 #line 603 "rcparse.y"
2685 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2686 if (dialog.ex == NULL)
2687 rcparse_warning (_("BEDIT requires DIALOGEX"));
2688 res_string_to_id (&(yyval.dialog_control)->class, "BEDIT");
2690 break;
2692 case 68:
2693 #line 610 "rcparse.y"
2695 default_style = BS_CHECKBOX | WS_TABSTOP;
2696 base_style = BS_CHECKBOX | WS_TABSTOP;
2697 class.named = 0;
2698 class.u.id = CTL_BUTTON;
2699 res_text_field = (yyvsp[(2) - (2)].id);
2701 break;
2703 case 69:
2704 #line 618 "rcparse.y"
2706 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2708 break;
2710 case 70:
2711 #line 622 "rcparse.y"
2713 /* This is as per MSDN documentation. With some (???)
2714 versions of MS rc.exe their is no default style. */
2715 default_style = CBS_SIMPLE | WS_TABSTOP;
2716 base_style = 0;
2717 class.named = 0;
2718 class.u.id = CTL_COMBOBOX;
2719 res_text_field = res_null_text;
2721 break;
2723 case 71:
2724 #line 632 "rcparse.y"
2726 (yyval.dialog_control) = (yyvsp[(3) - (3)].dialog_control);
2728 break;
2730 case 72:
2731 #line 637 "rcparse.y"
2733 (yyval.dialog_control) = define_control ((yyvsp[(2) - (11)].id), (yyvsp[(3) - (11)].il), (yyvsp[(6) - (11)].il), (yyvsp[(7) - (11)].il), (yyvsp[(8) - (11)].il), (yyvsp[(9) - (11)].il), (yyvsp[(4) - (11)].id), style, (yyvsp[(10) - (11)].il));
2734 if ((yyvsp[(11) - (11)].rcdata_item) != NULL)
2736 if (dialog.ex == NULL)
2737 rcparse_warning (_("control data requires DIALOGEX"));
2738 (yyval.dialog_control)->data = (yyvsp[(11) - (11)].rcdata_item);
2741 break;
2743 case 73:
2744 #line 648 "rcparse.y"
2746 (yyval.dialog_control) = define_control ((yyvsp[(2) - (12)].id), (yyvsp[(3) - (12)].il), (yyvsp[(6) - (12)].il), (yyvsp[(7) - (12)].il), (yyvsp[(8) - (12)].il), (yyvsp[(9) - (12)].il), (yyvsp[(4) - (12)].id), style, (yyvsp[(10) - (12)].il));
2747 if (dialog.ex == NULL)
2748 rcparse_warning (_("help ID requires DIALOGEX"));
2749 (yyval.dialog_control)->help = (yyvsp[(11) - (12)].il);
2750 (yyval.dialog_control)->data = (yyvsp[(12) - (12)].rcdata_item);
2752 break;
2754 case 74:
2755 #line 656 "rcparse.y"
2757 default_style = SS_CENTER | WS_GROUP;
2758 base_style = SS_CENTER;
2759 class.named = 0;
2760 class.u.id = CTL_STATIC;
2761 res_text_field = (yyvsp[(2) - (2)].id);
2763 break;
2765 case 75:
2766 #line 664 "rcparse.y"
2768 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2770 break;
2772 case 76:
2773 #line 668 "rcparse.y"
2775 default_style = BS_DEFPUSHBUTTON | WS_TABSTOP;
2776 base_style = BS_DEFPUSHBUTTON | WS_TABSTOP;
2777 class.named = 0;
2778 class.u.id = CTL_BUTTON;
2779 res_text_field = (yyvsp[(2) - (2)].id);
2781 break;
2783 case 77:
2784 #line 676 "rcparse.y"
2786 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2788 break;
2790 case 78:
2791 #line 680 "rcparse.y"
2793 default_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
2794 base_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
2795 class.named = 0;
2796 class.u.id = CTL_EDIT;
2797 res_text_field = res_null_text;
2799 break;
2801 case 79:
2802 #line 688 "rcparse.y"
2804 (yyval.dialog_control) = (yyvsp[(3) - (3)].dialog_control);
2806 break;
2808 case 80:
2809 #line 692 "rcparse.y"
2811 default_style = BS_GROUPBOX;
2812 base_style = BS_GROUPBOX;
2813 class.named = 0;
2814 class.u.id = CTL_BUTTON;
2815 res_text_field = (yyvsp[(2) - (2)].id);
2817 break;
2819 case 81:
2820 #line 700 "rcparse.y"
2822 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2824 break;
2826 case 82:
2827 #line 704 "rcparse.y"
2829 default_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
2830 base_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
2831 class.named = 0;
2832 class.u.id = CTL_EDIT;
2833 res_text_field = (yyvsp[(2) - (2)].id);
2835 break;
2837 case 83:
2838 #line 712 "rcparse.y"
2840 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2841 if (dialog.ex == NULL)
2842 rcparse_warning (_("IEDIT requires DIALOGEX"));
2843 res_string_to_id (&(yyval.dialog_control)->class, "HEDIT");
2845 break;
2847 case 84:
2848 #line 719 "rcparse.y"
2850 (yyval.dialog_control) = define_icon_control ((yyvsp[(2) - (6)].id), (yyvsp[(3) - (6)].il), (yyvsp[(4) - (6)].il), (yyvsp[(5) - (6)].il), 0, 0, 0, (yyvsp[(6) - (6)].rcdata_item),
2851 dialog.ex);
2853 break;
2855 case 85:
2856 #line 725 "rcparse.y"
2858 (yyval.dialog_control) = define_icon_control ((yyvsp[(2) - (8)].id), (yyvsp[(3) - (8)].il), (yyvsp[(4) - (8)].il), (yyvsp[(5) - (8)].il), 0, 0, 0, (yyvsp[(8) - (8)].rcdata_item),
2859 dialog.ex);
2861 break;
2863 case 86:
2864 #line 731 "rcparse.y"
2866 (yyval.dialog_control) = define_icon_control ((yyvsp[(2) - (10)].id), (yyvsp[(3) - (10)].il), (yyvsp[(4) - (10)].il), (yyvsp[(5) - (10)].il), style, (yyvsp[(9) - (10)].il), 0, (yyvsp[(10) - (10)].rcdata_item),
2867 dialog.ex);
2869 break;
2871 case 87:
2872 #line 737 "rcparse.y"
2874 (yyval.dialog_control) = define_icon_control ((yyvsp[(2) - (11)].id), (yyvsp[(3) - (11)].il), (yyvsp[(4) - (11)].il), (yyvsp[(5) - (11)].il), style, (yyvsp[(9) - (11)].il), (yyvsp[(10) - (11)].il), (yyvsp[(11) - (11)].rcdata_item),
2875 dialog.ex);
2877 break;
2879 case 88:
2880 #line 742 "rcparse.y"
2882 default_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
2883 base_style = ES_LEFT | WS_BORDER | WS_TABSTOP;
2884 class.named = 0;
2885 class.u.id = CTL_EDIT;
2886 res_text_field = (yyvsp[(2) - (2)].id);
2888 break;
2890 case 89:
2891 #line 750 "rcparse.y"
2893 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2894 if (dialog.ex == NULL)
2895 rcparse_warning (_("IEDIT requires DIALOGEX"));
2896 res_string_to_id (&(yyval.dialog_control)->class, "IEDIT");
2898 break;
2900 case 90:
2901 #line 757 "rcparse.y"
2903 default_style = LBS_NOTIFY | WS_BORDER;
2904 base_style = LBS_NOTIFY | WS_BORDER;
2905 class.named = 0;
2906 class.u.id = CTL_LISTBOX;
2907 res_text_field = res_null_text;
2909 break;
2911 case 91:
2912 #line 765 "rcparse.y"
2914 (yyval.dialog_control) = (yyvsp[(3) - (3)].dialog_control);
2916 break;
2918 case 92:
2919 #line 769 "rcparse.y"
2921 default_style = SS_LEFT | WS_GROUP;
2922 base_style = SS_LEFT;
2923 class.named = 0;
2924 class.u.id = CTL_STATIC;
2925 res_text_field = (yyvsp[(2) - (2)].id);
2927 break;
2929 case 93:
2930 #line 777 "rcparse.y"
2932 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2934 break;
2936 case 94:
2937 #line 781 "rcparse.y"
2939 default_style = BS_PUSHBOX | WS_TABSTOP;
2940 base_style = BS_PUSHBOX;
2941 class.named = 0;
2942 class.u.id = CTL_BUTTON;
2944 break;
2946 case 95:
2947 #line 788 "rcparse.y"
2949 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2951 break;
2953 case 96:
2954 #line 792 "rcparse.y"
2956 default_style = BS_PUSHBUTTON | WS_TABSTOP;
2957 base_style = BS_PUSHBUTTON | WS_TABSTOP;
2958 class.named = 0;
2959 class.u.id = CTL_BUTTON;
2960 res_text_field = (yyvsp[(2) - (2)].id);
2962 break;
2964 case 97:
2965 #line 800 "rcparse.y"
2967 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2969 break;
2971 case 98:
2972 #line 804 "rcparse.y"
2974 default_style = BS_RADIOBUTTON | WS_TABSTOP;
2975 base_style = BS_RADIOBUTTON;
2976 class.named = 0;
2977 class.u.id = CTL_BUTTON;
2978 res_text_field = (yyvsp[(2) - (2)].id);
2980 break;
2982 case 99:
2983 #line 812 "rcparse.y"
2985 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
2987 break;
2989 case 100:
2990 #line 816 "rcparse.y"
2992 default_style = SS_RIGHT | WS_GROUP;
2993 base_style = SS_RIGHT;
2994 class.named = 0;
2995 class.u.id = CTL_STATIC;
2996 res_text_field = (yyvsp[(2) - (2)].id);
2998 break;
3000 case 101:
3001 #line 824 "rcparse.y"
3003 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
3005 break;
3007 case 102:
3008 #line 828 "rcparse.y"
3010 default_style = SBS_HORZ;
3011 base_style = 0;
3012 class.named = 0;
3013 class.u.id = CTL_SCROLLBAR;
3014 res_text_field = res_null_text;
3016 break;
3018 case 103:
3019 #line 836 "rcparse.y"
3021 (yyval.dialog_control) = (yyvsp[(3) - (3)].dialog_control);
3023 break;
3025 case 104:
3026 #line 840 "rcparse.y"
3028 default_style = BS_3STATE | WS_TABSTOP;
3029 base_style = BS_3STATE;
3030 class.named = 0;
3031 class.u.id = CTL_BUTTON;
3032 res_text_field = (yyvsp[(2) - (2)].id);
3034 break;
3036 case 105:
3037 #line 848 "rcparse.y"
3039 (yyval.dialog_control) = (yyvsp[(4) - (4)].dialog_control);
3041 break;
3043 case 106:
3044 #line 853 "rcparse.y"
3045 { style = WS_CHILD | WS_VISIBLE; }
3046 break;
3048 case 107:
3049 #line 855 "rcparse.y"
3051 rc_res_id cid;
3052 cid.named = 0;
3053 cid.u.id = CTL_BUTTON;
3054 (yyval.dialog_control) = define_control ((yyvsp[(2) - (15)].id), (yyvsp[(3) - (15)].il), (yyvsp[(5) - (15)].il), (yyvsp[(7) - (15)].il), (yyvsp[(9) - (15)].il), (yyvsp[(11) - (15)].il), cid,
3055 style, (yyvsp[(15) - (15)].il));
3057 break;
3059 case 108:
3060 #line 873 "rcparse.y"
3062 (yyval.dialog_control) = define_control (res_text_field, (yyvsp[(1) - (6)].il), (yyvsp[(2) - (6)].il), (yyvsp[(3) - (6)].il), (yyvsp[(4) - (6)].il), (yyvsp[(5) - (6)].il), class,
3063 default_style | WS_CHILD | WS_VISIBLE, 0);
3064 if ((yyvsp[(6) - (6)].rcdata_item) != NULL)
3066 if (dialog.ex == NULL)
3067 rcparse_warning (_("control data requires DIALOGEX"));
3068 (yyval.dialog_control)->data = (yyvsp[(6) - (6)].rcdata_item);
3071 break;
3073 case 109:
3074 #line 885 "rcparse.y"
3076 (yyval.dialog_control) = define_control (res_text_field, (yyvsp[(1) - (8)].il), (yyvsp[(2) - (8)].il), (yyvsp[(3) - (8)].il), (yyvsp[(4) - (8)].il), (yyvsp[(5) - (8)].il), class, style, (yyvsp[(7) - (8)].il));
3077 if ((yyvsp[(8) - (8)].rcdata_item) != NULL)
3079 if (dialog.ex == NULL)
3080 rcparse_warning (_("control data requires DIALOGEX"));
3081 (yyval.dialog_control)->data = (yyvsp[(8) - (8)].rcdata_item);
3084 break;
3086 case 110:
3087 #line 896 "rcparse.y"
3089 (yyval.dialog_control) = define_control (res_text_field, (yyvsp[(1) - (9)].il), (yyvsp[(2) - (9)].il), (yyvsp[(3) - (9)].il), (yyvsp[(4) - (9)].il), (yyvsp[(5) - (9)].il), class, style, (yyvsp[(7) - (9)].il));
3090 if (dialog.ex == NULL)
3091 rcparse_warning (_("help ID requires DIALOGEX"));
3092 (yyval.dialog_control)->help = (yyvsp[(8) - (9)].il);
3093 (yyval.dialog_control)->data = (yyvsp[(9) - (9)].rcdata_item);
3095 break;
3097 case 111:
3098 #line 907 "rcparse.y"
3100 if ((yyvsp[(2) - (2)].id).named)
3101 res_unistring_to_id (&(yyval.id), (yyvsp[(2) - (2)].id).u.n.name);
3102 else
3103 (yyval.id)=(yyvsp[(2) - (2)].id);
3105 break;
3107 case 112:
3108 #line 917 "rcparse.y"
3110 res_string_to_id (&(yyval.id), "");
3112 break;
3114 case 113:
3115 #line 920 "rcparse.y"
3116 { (yyval.id)=(yyvsp[(1) - (2)].id); }
3117 break;
3119 case 114:
3120 #line 925 "rcparse.y"
3122 (yyval.id).named = 0;
3123 (yyval.id).u.id = (yyvsp[(1) - (1)].il);
3125 break;
3127 case 115:
3128 #line 930 "rcparse.y"
3130 (yyval.id).named = 1;
3131 (yyval.id).u.n.name = (yyvsp[(1) - (1)].uni);
3132 (yyval.id).u.n.length = unichar_len ((yyvsp[(1) - (1)].uni));
3134 break;
3136 case 116:
3137 #line 939 "rcparse.y"
3139 (yyval.rcdata_item) = NULL;
3141 break;
3143 case 117:
3144 #line 943 "rcparse.y"
3146 (yyval.rcdata_item) = (yyvsp[(2) - (3)].rcdata).first;
3148 break;
3150 case 118:
3151 #line 952 "rcparse.y"
3152 { style = WS_CHILD | WS_VISIBLE; }
3153 break;
3155 case 120:
3156 #line 958 "rcparse.y"
3157 { style = SS_ICON | WS_CHILD | WS_VISIBLE; }
3158 break;
3160 case 122:
3161 #line 964 "rcparse.y"
3162 { style = base_style | WS_CHILD | WS_VISIBLE; }
3163 break;
3165 case 124:
3166 #line 972 "rcparse.y"
3168 define_font ((yyvsp[(1) - (4)].id), &(yyvsp[(3) - (4)].res_info), (yyvsp[(4) - (4)].s));
3169 if (yychar != YYEMPTY)
3170 YYERROR;
3171 rcparse_discard_strings ();
3173 break;
3175 case 125:
3176 #line 984 "rcparse.y"
3178 define_icon ((yyvsp[(1) - (4)].id), &(yyvsp[(3) - (4)].res_info), (yyvsp[(4) - (4)].s));
3179 if (yychar != YYEMPTY)
3180 YYERROR;
3181 rcparse_discard_strings ();
3183 break;
3185 case 126:
3186 #line 997 "rcparse.y"
3188 language = (yyvsp[(2) - (3)].il) | ((yyvsp[(3) - (3)].il) << SUBLANG_SHIFT);
3190 break;
3192 case 127:
3193 #line 1006 "rcparse.y"
3195 define_menu ((yyvsp[(1) - (6)].id), &(yyvsp[(3) - (6)].res_info), (yyvsp[(5) - (6)].menuitem));
3196 if (yychar != YYEMPTY)
3197 YYERROR;
3198 rcparse_discard_strings ();
3200 break;
3202 case 128:
3203 #line 1016 "rcparse.y"
3205 (yyval.menuitem) = NULL;
3207 break;
3209 case 129:
3210 #line 1020 "rcparse.y"
3212 if ((yyvsp[(1) - (2)].menuitem) == NULL)
3213 (yyval.menuitem) = (yyvsp[(2) - (2)].menuitem);
3214 else
3216 rc_menuitem **pp;
3218 for (pp = &(yyvsp[(1) - (2)].menuitem)->next; *pp != NULL; pp = &(*pp)->next)
3220 *pp = (yyvsp[(2) - (2)].menuitem);
3221 (yyval.menuitem) = (yyvsp[(1) - (2)].menuitem);
3224 break;
3226 case 130:
3227 #line 1037 "rcparse.y"
3229 (yyval.menuitem) = define_menuitem ((yyvsp[(2) - (4)].uni), (yyvsp[(3) - (4)].il), (yyvsp[(4) - (4)].is), 0, 0, NULL);
3231 break;
3233 case 131:
3234 #line 1041 "rcparse.y"
3236 (yyval.menuitem) = define_menuitem (NULL, 0, 0, 0, 0, NULL);
3238 break;
3240 case 132:
3241 #line 1045 "rcparse.y"
3243 (yyval.menuitem) = define_menuitem ((yyvsp[(2) - (6)].uni), 0, (yyvsp[(3) - (6)].is), 0, 0, (yyvsp[(5) - (6)].menuitem));
3245 break;
3247 case 133:
3248 #line 1052 "rcparse.y"
3250 (yyval.is) = 0;
3252 break;
3254 case 134:
3255 #line 1056 "rcparse.y"
3257 (yyval.is) = (yyvsp[(1) - (3)].is) | (yyvsp[(3) - (3)].is);
3259 break;
3261 case 135:
3262 #line 1060 "rcparse.y"
3264 (yyval.is) = (yyvsp[(1) - (2)].is) | (yyvsp[(2) - (2)].is);
3266 break;
3268 case 136:
3269 #line 1067 "rcparse.y"
3271 (yyval.is) = MENUITEM_CHECKED;
3273 break;
3275 case 137:
3276 #line 1071 "rcparse.y"
3278 (yyval.is) = MENUITEM_GRAYED;
3280 break;
3282 case 138:
3283 #line 1075 "rcparse.y"
3285 (yyval.is) = MENUITEM_HELP;
3287 break;
3289 case 139:
3290 #line 1079 "rcparse.y"
3292 (yyval.is) = MENUITEM_INACTIVE;
3294 break;
3296 case 140:
3297 #line 1083 "rcparse.y"
3299 (yyval.is) = MENUITEM_MENUBARBREAK;
3301 break;
3303 case 141:
3304 #line 1087 "rcparse.y"
3306 (yyval.is) = MENUITEM_MENUBREAK;
3308 break;
3310 case 142:
3311 #line 1096 "rcparse.y"
3313 define_menu ((yyvsp[(1) - (6)].id), &(yyvsp[(3) - (6)].res_info), (yyvsp[(5) - (6)].menuitem));
3314 if (yychar != YYEMPTY)
3315 YYERROR;
3316 rcparse_discard_strings ();
3318 break;
3320 case 143:
3321 #line 1106 "rcparse.y"
3323 (yyval.menuitem) = NULL;
3325 break;
3327 case 144:
3328 #line 1110 "rcparse.y"
3330 if ((yyvsp[(1) - (2)].menuitem) == NULL)
3331 (yyval.menuitem) = (yyvsp[(2) - (2)].menuitem);
3332 else
3334 rc_menuitem **pp;
3336 for (pp = &(yyvsp[(1) - (2)].menuitem)->next; *pp != NULL; pp = &(*pp)->next)
3338 *pp = (yyvsp[(2) - (2)].menuitem);
3339 (yyval.menuitem) = (yyvsp[(1) - (2)].menuitem);
3342 break;
3344 case 145:
3345 #line 1127 "rcparse.y"
3347 (yyval.menuitem) = define_menuitem ((yyvsp[(2) - (2)].uni), 0, 0, 0, 0, NULL);
3349 break;
3351 case 146:
3352 #line 1131 "rcparse.y"
3354 (yyval.menuitem) = define_menuitem ((yyvsp[(2) - (3)].uni), (yyvsp[(3) - (3)].il), 0, 0, 0, NULL);
3356 break;
3358 case 147:
3359 #line 1135 "rcparse.y"
3361 (yyval.menuitem) = define_menuitem ((yyvsp[(2) - (5)].uni), (yyvsp[(3) - (5)].il), (yyvsp[(4) - (5)].il), (yyvsp[(5) - (5)].il), 0, NULL);
3363 break;
3365 case 148:
3366 #line 1139 "rcparse.y"
3368 (yyval.menuitem) = define_menuitem (NULL, 0, 0, 0, 0, NULL);
3370 break;
3372 case 149:
3373 #line 1143 "rcparse.y"
3375 (yyval.menuitem) = define_menuitem ((yyvsp[(2) - (5)].uni), 0, 0, 0, 0, (yyvsp[(4) - (5)].menuitem));
3377 break;
3379 case 150:
3380 #line 1147 "rcparse.y"
3382 (yyval.menuitem) = define_menuitem ((yyvsp[(2) - (6)].uni), (yyvsp[(3) - (6)].il), 0, 0, 0, (yyvsp[(5) - (6)].menuitem));
3384 break;
3386 case 151:
3387 #line 1151 "rcparse.y"
3389 (yyval.menuitem) = define_menuitem ((yyvsp[(2) - (7)].uni), (yyvsp[(3) - (7)].il), (yyvsp[(4) - (7)].il), 0, 0, (yyvsp[(6) - (7)].menuitem));
3391 break;
3393 case 152:
3394 #line 1156 "rcparse.y"
3396 (yyval.menuitem) = define_menuitem ((yyvsp[(2) - (9)].uni), (yyvsp[(3) - (9)].il), (yyvsp[(4) - (9)].il), (yyvsp[(5) - (9)].il), (yyvsp[(6) - (9)].il), (yyvsp[(8) - (9)].menuitem));
3398 break;
3400 case 153:
3401 #line 1165 "rcparse.y"
3403 define_messagetable ((yyvsp[(1) - (4)].id), &(yyvsp[(3) - (4)].res_info), (yyvsp[(4) - (4)].s));
3404 if (yychar != YYEMPTY)
3405 YYERROR;
3406 rcparse_discard_strings ();
3408 break;
3410 case 154:
3411 #line 1177 "rcparse.y"
3413 rcparse_rcdata ();
3415 break;
3417 case 155:
3418 #line 1181 "rcparse.y"
3420 rcparse_normal ();
3421 (yyval.rcdata) = (yyvsp[(2) - (2)].rcdata);
3423 break;
3425 case 156:
3426 #line 1189 "rcparse.y"
3428 (yyval.rcdata).first = NULL;
3429 (yyval.rcdata).last = NULL;
3431 break;
3433 case 157:
3434 #line 1194 "rcparse.y"
3436 (yyval.rcdata) = (yyvsp[(1) - (1)].rcdata);
3438 break;
3440 case 158:
3441 #line 1201 "rcparse.y"
3443 rc_rcdata_item *ri;
3445 ri = define_rcdata_string ((yyvsp[(1) - (1)].ss).s, (yyvsp[(1) - (1)].ss).length);
3446 (yyval.rcdata).first = ri;
3447 (yyval.rcdata).last = ri;
3449 break;
3451 case 159:
3452 #line 1209 "rcparse.y"
3454 rc_rcdata_item *ri;
3456 ri = define_rcdata_unistring ((yyvsp[(1) - (1)].suni).s, (yyvsp[(1) - (1)].suni).length);
3457 (yyval.rcdata).first = ri;
3458 (yyval.rcdata).last = ri;
3460 break;
3462 case 160:
3463 #line 1217 "rcparse.y"
3465 rc_rcdata_item *ri;
3467 ri = define_rcdata_number ((yyvsp[(1) - (1)].i).val, (yyvsp[(1) - (1)].i).dword);
3468 (yyval.rcdata).first = ri;
3469 (yyval.rcdata).last = ri;
3471 break;
3473 case 161:
3474 #line 1225 "rcparse.y"
3476 rc_rcdata_item *ri;
3478 ri = define_rcdata_string ((yyvsp[(3) - (3)].ss).s, (yyvsp[(3) - (3)].ss).length);
3479 (yyval.rcdata).first = (yyvsp[(1) - (3)].rcdata).first;
3480 (yyvsp[(1) - (3)].rcdata).last->next = ri;
3481 (yyval.rcdata).last = ri;
3483 break;
3485 case 162:
3486 #line 1234 "rcparse.y"
3488 rc_rcdata_item *ri;
3490 ri = define_rcdata_unistring ((yyvsp[(3) - (3)].suni).s, (yyvsp[(3) - (3)].suni).length);
3491 (yyval.rcdata).first = (yyvsp[(1) - (3)].rcdata).first;
3492 (yyvsp[(1) - (3)].rcdata).last->next = ri;
3493 (yyval.rcdata).last = ri;
3495 break;
3497 case 163:
3498 #line 1243 "rcparse.y"
3500 rc_rcdata_item *ri;
3502 ri = define_rcdata_number ((yyvsp[(3) - (3)].i).val, (yyvsp[(3) - (3)].i).dword);
3503 (yyval.rcdata).first = (yyvsp[(1) - (3)].rcdata).first;
3504 (yyvsp[(1) - (3)].rcdata).last->next = ri;
3505 (yyval.rcdata).last = ri;
3507 break;
3509 case 164:
3510 #line 1257 "rcparse.y"
3511 { sub_res_info = (yyvsp[(2) - (3)].res_info); }
3512 break;
3514 case 167:
3515 #line 1264 "rcparse.y"
3517 define_stringtable (&sub_res_info, (yyvsp[(2) - (3)].il), (yyvsp[(3) - (3)].uni));
3518 if (yychar != YYEMPTY)
3519 YYERROR;
3520 rcparse_discard_strings ();
3522 break;
3524 case 168:
3525 #line 1271 "rcparse.y"
3527 define_stringtable (&sub_res_info, (yyvsp[(2) - (4)].il), (yyvsp[(4) - (4)].uni));
3528 if (yychar != YYEMPTY)
3529 YYERROR;
3530 rcparse_discard_strings ();
3532 break;
3534 case 169:
3535 #line 1281 "rcparse.y"
3537 (yyval.id)=(yyvsp[(1) - (1)].id);
3539 break;
3541 case 170:
3542 #line 1285 "rcparse.y"
3544 (yyval.id).named = 0;
3545 (yyval.id).u.id = 23;
3547 break;
3549 case 171:
3550 #line 1290 "rcparse.y"
3552 (yyval.id).named = 0;
3553 (yyval.id).u.id = RT_RCDATA;
3555 break;
3557 case 172:
3558 #line 1295 "rcparse.y"
3560 (yyval.id).named = 0;
3561 (yyval.id).u.id = RT_MANIFEST;
3563 break;
3565 case 173:
3566 #line 1300 "rcparse.y"
3568 (yyval.id).named = 0;
3569 (yyval.id).u.id = RT_PLUGPLAY;
3571 break;
3573 case 174:
3574 #line 1305 "rcparse.y"
3576 (yyval.id).named = 0;
3577 (yyval.id).u.id = RT_VXD;
3579 break;
3581 case 175:
3582 #line 1310 "rcparse.y"
3584 (yyval.id).named = 0;
3585 (yyval.id).u.id = RT_DLGINCLUDE;
3587 break;
3589 case 176:
3590 #line 1315 "rcparse.y"
3592 (yyval.id).named = 0;
3593 (yyval.id).u.id = RT_DLGINIT;
3595 break;
3597 case 177:
3598 #line 1320 "rcparse.y"
3600 (yyval.id).named = 0;
3601 (yyval.id).u.id = RT_ANICURSOR;
3603 break;
3605 case 178:
3606 #line 1325 "rcparse.y"
3608 (yyval.id).named = 0;
3609 (yyval.id).u.id = RT_ANIICON;
3611 break;
3613 case 179:
3614 #line 1336 "rcparse.y"
3616 define_user_data ((yyvsp[(1) - (6)].id), (yyvsp[(2) - (6)].id), &(yyvsp[(3) - (6)].res_info), (yyvsp[(5) - (6)].rcdata).first);
3617 if (yychar != YYEMPTY)
3618 YYERROR;
3619 rcparse_discard_strings ();
3621 break;
3623 case 180:
3624 #line 1343 "rcparse.y"
3626 define_user_file ((yyvsp[(1) - (4)].id), (yyvsp[(2) - (4)].id), &(yyvsp[(3) - (4)].res_info), (yyvsp[(4) - (4)].s));
3627 if (yychar != YYEMPTY)
3628 YYERROR;
3629 rcparse_discard_strings ();
3631 break;
3633 case 181:
3634 #line 1353 "rcparse.y"
3636 define_toolbar ((yyvsp[(1) - (8)].id), &(yyvsp[(3) - (8)].res_info), (yyvsp[(4) - (8)].il), (yyvsp[(5) - (8)].il), (yyvsp[(7) - (8)].toobar_item));
3638 break;
3640 case 182:
3641 #line 1358 "rcparse.y"
3642 { (yyval.toobar_item)= NULL; }
3643 break;
3645 case 183:
3646 #line 1360 "rcparse.y"
3648 rc_toolbar_item *c,*n;
3649 c = (yyvsp[(1) - (3)].toobar_item);
3650 n= (rc_toolbar_item *)
3651 res_alloc (sizeof (rc_toolbar_item));
3652 if (c != NULL)
3653 while (c->next != NULL)
3654 c = c->next;
3655 n->prev = c;
3656 n->next = NULL;
3657 if (c != NULL)
3658 c->next = n;
3659 n->id = (yyvsp[(3) - (3)].id);
3660 if ((yyvsp[(1) - (3)].toobar_item) == NULL)
3661 (yyval.toobar_item) = n;
3662 else
3663 (yyval.toobar_item) = (yyvsp[(1) - (3)].toobar_item);
3665 break;
3667 case 184:
3668 #line 1379 "rcparse.y"
3670 rc_toolbar_item *c,*n;
3671 c = (yyvsp[(1) - (2)].toobar_item);
3672 n= (rc_toolbar_item *)
3673 res_alloc (sizeof (rc_toolbar_item));
3674 if (c != NULL)
3675 while (c->next != NULL)
3676 c = c->next;
3677 n->prev = c;
3678 n->next = NULL;
3679 if (c != NULL)
3680 c->next = n;
3681 n->id.named = 0;
3682 n->id.u.id = 0;
3683 if ((yyvsp[(1) - (2)].toobar_item) == NULL)
3684 (yyval.toobar_item) = n;
3685 else
3686 (yyval.toobar_item) = (yyvsp[(1) - (2)].toobar_item);
3688 break;
3690 case 185:
3691 #line 1404 "rcparse.y"
3693 define_versioninfo ((yyvsp[(1) - (6)].id), language, (yyvsp[(3) - (6)].fixver), (yyvsp[(5) - (6)].verinfo));
3694 if (yychar != YYEMPTY)
3695 YYERROR;
3696 rcparse_discard_strings ();
3698 break;
3700 case 186:
3701 #line 1414 "rcparse.y"
3703 (yyval.fixver) = ((rc_fixed_versioninfo *)
3704 res_alloc (sizeof (rc_fixed_versioninfo)));
3705 memset ((yyval.fixver), 0, sizeof (rc_fixed_versioninfo));
3707 break;
3709 case 187:
3710 #line 1420 "rcparse.y"
3712 (yyvsp[(1) - (6)].fixver)->file_version_ms = ((yyvsp[(3) - (6)].il) << 16) | (yyvsp[(4) - (6)].il);
3713 (yyvsp[(1) - (6)].fixver)->file_version_ls = ((yyvsp[(5) - (6)].il) << 16) | (yyvsp[(6) - (6)].il);
3714 (yyval.fixver) = (yyvsp[(1) - (6)].fixver);
3716 break;
3718 case 188:
3719 #line 1426 "rcparse.y"
3721 (yyvsp[(1) - (6)].fixver)->product_version_ms = ((yyvsp[(3) - (6)].il) << 16) | (yyvsp[(4) - (6)].il);
3722 (yyvsp[(1) - (6)].fixver)->product_version_ls = ((yyvsp[(5) - (6)].il) << 16) | (yyvsp[(6) - (6)].il);
3723 (yyval.fixver) = (yyvsp[(1) - (6)].fixver);
3725 break;
3727 case 189:
3728 #line 1432 "rcparse.y"
3730 (yyvsp[(1) - (3)].fixver)->file_flags_mask = (yyvsp[(3) - (3)].il);
3731 (yyval.fixver) = (yyvsp[(1) - (3)].fixver);
3733 break;
3735 case 190:
3736 #line 1437 "rcparse.y"
3738 (yyvsp[(1) - (3)].fixver)->file_flags = (yyvsp[(3) - (3)].il);
3739 (yyval.fixver) = (yyvsp[(1) - (3)].fixver);
3741 break;
3743 case 191:
3744 #line 1442 "rcparse.y"
3746 (yyvsp[(1) - (3)].fixver)->file_os = (yyvsp[(3) - (3)].il);
3747 (yyval.fixver) = (yyvsp[(1) - (3)].fixver);
3749 break;
3751 case 192:
3752 #line 1447 "rcparse.y"
3754 (yyvsp[(1) - (3)].fixver)->file_type = (yyvsp[(3) - (3)].il);
3755 (yyval.fixver) = (yyvsp[(1) - (3)].fixver);
3757 break;
3759 case 193:
3760 #line 1452 "rcparse.y"
3762 (yyvsp[(1) - (3)].fixver)->file_subtype = (yyvsp[(3) - (3)].il);
3763 (yyval.fixver) = (yyvsp[(1) - (3)].fixver);
3765 break;
3767 case 194:
3768 #line 1466 "rcparse.y"
3770 (yyval.verinfo) = NULL;
3772 break;
3774 case 195:
3775 #line 1470 "rcparse.y"
3777 (yyval.verinfo) = append_ver_stringfileinfo ((yyvsp[(1) - (8)].verinfo), (yyvsp[(4) - (8)].s), (yyvsp[(6) - (8)].verstring));
3779 break;
3781 case 196:
3782 #line 1474 "rcparse.y"
3784 (yyval.verinfo) = append_ver_varfileinfo ((yyvsp[(1) - (7)].verinfo), (yyvsp[(5) - (7)].uni), (yyvsp[(6) - (7)].vervar));
3786 break;
3788 case 197:
3789 #line 1481 "rcparse.y"
3791 (yyval.verstring) = NULL;
3793 break;
3795 case 198:
3796 #line 1485 "rcparse.y"
3798 (yyval.verstring) = append_verval ((yyvsp[(1) - (5)].verstring), (yyvsp[(3) - (5)].uni), (yyvsp[(5) - (5)].uni));
3800 break;
3802 case 199:
3803 #line 1492 "rcparse.y"
3805 (yyval.vervar) = NULL;
3807 break;
3809 case 200:
3810 #line 1496 "rcparse.y"
3812 (yyval.vervar) = append_vertrans ((yyvsp[(1) - (3)].vervar), (yyvsp[(2) - (3)].il), (yyvsp[(3) - (3)].il));
3814 break;
3816 case 201:
3817 #line 1505 "rcparse.y"
3819 (yyval.id).named = 0;
3820 (yyval.id).u.id = (yyvsp[(1) - (1)].il);
3822 break;
3824 case 202:
3825 #line 1510 "rcparse.y"
3827 res_unistring_to_id (&(yyval.id), (yyvsp[(1) - (1)].uni));
3829 break;
3831 case 203:
3832 #line 1519 "rcparse.y"
3834 (yyval.uni) = (yyvsp[(1) - (1)].uni);
3836 break;
3838 case 204:
3839 #line 1523 "rcparse.y"
3841 unichar *h = NULL;
3842 unicode_from_ascii ((rc_uint_type *) NULL, &h, (yyvsp[(1) - (1)].s));
3843 (yyval.uni) = h;
3845 break;
3847 case 205:
3848 #line 1533 "rcparse.y"
3850 (yyval.id).named = 0;
3851 (yyval.id).u.id = (yyvsp[(1) - (2)].il);
3853 break;
3855 case 206:
3856 #line 1538 "rcparse.y"
3858 res_unistring_to_id (&(yyval.id), (yyvsp[(1) - (1)].uni));
3860 break;
3862 case 207:
3863 #line 1542 "rcparse.y"
3865 res_unistring_to_id (&(yyval.id), (yyvsp[(1) - (2)].uni));
3867 break;
3869 case 208:
3870 #line 1552 "rcparse.y"
3872 memset (&(yyval.res_info), 0, sizeof (rc_res_res_info));
3873 (yyval.res_info).language = language;
3874 /* FIXME: Is this the right default? */
3875 (yyval.res_info).memflags = MEMFLAG_MOVEABLE | MEMFLAG_PURE | MEMFLAG_DISCARDABLE;
3877 break;
3879 case 209:
3880 #line 1559 "rcparse.y"
3882 (yyval.res_info) = (yyvsp[(1) - (2)].res_info);
3883 (yyval.res_info).memflags |= (yyvsp[(2) - (2)].memflags).on;
3884 (yyval.res_info).memflags &=~ (yyvsp[(2) - (2)].memflags).off;
3886 break;
3888 case 210:
3889 #line 1565 "rcparse.y"
3891 (yyval.res_info) = (yyvsp[(1) - (3)].res_info);
3892 (yyval.res_info).characteristics = (yyvsp[(3) - (3)].il);
3894 break;
3896 case 211:
3897 #line 1570 "rcparse.y"
3899 (yyval.res_info) = (yyvsp[(1) - (4)].res_info);
3900 (yyval.res_info).language = (yyvsp[(3) - (4)].il) | ((yyvsp[(4) - (4)].il) << SUBLANG_SHIFT);
3902 break;
3904 case 212:
3905 #line 1575 "rcparse.y"
3907 (yyval.res_info) = (yyvsp[(1) - (3)].res_info);
3908 (yyval.res_info).version = (yyvsp[(3) - (3)].il);
3910 break;
3912 case 213:
3913 #line 1585 "rcparse.y"
3915 memset (&(yyval.res_info), 0, sizeof (rc_res_res_info));
3916 (yyval.res_info).language = language;
3917 (yyval.res_info).memflags = MEMFLAG_MOVEABLE | MEMFLAG_DISCARDABLE;
3919 break;
3921 case 214:
3922 #line 1591 "rcparse.y"
3924 (yyval.res_info) = (yyvsp[(1) - (2)].res_info);
3925 (yyval.res_info).memflags |= (yyvsp[(2) - (2)].memflags).on;
3926 (yyval.res_info).memflags &=~ (yyvsp[(2) - (2)].memflags).off;
3928 break;
3930 case 215:
3931 #line 1602 "rcparse.y"
3933 memset (&(yyval.res_info), 0, sizeof (rc_res_res_info));
3934 (yyval.res_info).language = language;
3935 (yyval.res_info).memflags = MEMFLAG_MOVEABLE | MEMFLAG_PURE | MEMFLAG_DISCARDABLE;
3937 break;
3939 case 216:
3940 #line 1608 "rcparse.y"
3942 (yyval.res_info) = (yyvsp[(1) - (2)].res_info);
3943 (yyval.res_info).memflags |= (yyvsp[(2) - (2)].memflags).on;
3944 (yyval.res_info).memflags &=~ (yyvsp[(2) - (2)].memflags).off;
3946 break;
3948 case 217:
3949 #line 1620 "rcparse.y"
3951 (yyval.memflags).on = MEMFLAG_MOVEABLE;
3952 (yyval.memflags).off = 0;
3954 break;
3956 case 218:
3957 #line 1625 "rcparse.y"
3959 (yyval.memflags).on = 0;
3960 (yyval.memflags).off = MEMFLAG_MOVEABLE;
3962 break;
3964 case 219:
3965 #line 1630 "rcparse.y"
3967 (yyval.memflags).on = MEMFLAG_PURE;
3968 (yyval.memflags).off = 0;
3970 break;
3972 case 220:
3973 #line 1635 "rcparse.y"
3975 (yyval.memflags).on = 0;
3976 (yyval.memflags).off = MEMFLAG_PURE;
3978 break;
3980 case 221:
3981 #line 1640 "rcparse.y"
3983 (yyval.memflags).on = MEMFLAG_PRELOAD;
3984 (yyval.memflags).off = 0;
3986 break;
3988 case 222:
3989 #line 1645 "rcparse.y"
3991 (yyval.memflags).on = 0;
3992 (yyval.memflags).off = MEMFLAG_PRELOAD;
3994 break;
3996 case 223:
3997 #line 1650 "rcparse.y"
3999 (yyval.memflags).on = MEMFLAG_DISCARDABLE;
4000 (yyval.memflags).off = 0;
4002 break;
4004 case 224:
4005 #line 1660 "rcparse.y"
4007 (yyval.s) = (yyvsp[(1) - (1)].s);
4009 break;
4011 case 225:
4012 #line 1664 "rcparse.y"
4014 (yyval.s) = (yyvsp[(1) - (1)].s);
4016 break;
4018 case 226:
4019 #line 1672 "rcparse.y"
4021 (yyval.uni) = (yyvsp[(1) - (1)].uni);
4023 break;
4025 case 227:
4026 #line 1677 "rcparse.y"
4028 rc_uint_type l1 = unichar_len ((yyvsp[(1) - (2)].uni));
4029 rc_uint_type l2 = unichar_len ((yyvsp[(2) - (2)].uni));
4030 unichar *h = (unichar *) res_alloc ((l1 + l2 + 1) * sizeof (unichar));
4031 if (l1 != 0)
4032 memcpy (h, (yyvsp[(1) - (2)].uni), l1 * sizeof (unichar));
4033 if (l2 != 0)
4034 memcpy (h + l1, (yyvsp[(2) - (2)].uni), l2 * sizeof (unichar));
4035 h[l1 + l2] = 0;
4036 (yyval.uni) = h;
4038 break;
4040 case 228:
4041 #line 1692 "rcparse.y"
4043 (yyval.uni) = unichar_dup ((yyvsp[(1) - (1)].uni));
4045 break;
4047 case 229:
4048 #line 1696 "rcparse.y"
4050 unichar *h = NULL;
4051 unicode_from_ascii ((rc_uint_type *) NULL, &h, (yyvsp[(1) - (1)].s));
4052 (yyval.uni) = h;
4054 break;
4056 case 230:
4057 #line 1705 "rcparse.y"
4059 (yyval.ss) = (yyvsp[(1) - (1)].ss);
4061 break;
4063 case 231:
4064 #line 1709 "rcparse.y"
4066 rc_uint_type l = (yyvsp[(1) - (2)].ss).length + (yyvsp[(2) - (2)].ss).length;
4067 char *h = (char *) res_alloc (l);
4068 memcpy (h, (yyvsp[(1) - (2)].ss).s, (yyvsp[(1) - (2)].ss).length);
4069 memcpy (h + (yyvsp[(1) - (2)].ss).length, (yyvsp[(2) - (2)].ss).s, (yyvsp[(2) - (2)].ss).length);
4070 (yyval.ss).s = h;
4071 (yyval.ss).length = l;
4073 break;
4075 case 232:
4076 #line 1721 "rcparse.y"
4078 (yyval.suni) = (yyvsp[(1) - (1)].suni);
4080 break;
4082 case 233:
4083 #line 1725 "rcparse.y"
4085 rc_uint_type l = (yyvsp[(1) - (2)].suni).length + (yyvsp[(2) - (2)].suni).length;
4086 unichar *h = (unichar *) res_alloc (l * sizeof (unichar));
4087 memcpy (h, (yyvsp[(1) - (2)].suni).s, (yyvsp[(1) - (2)].suni).length * sizeof (unichar));
4088 memcpy (h + (yyvsp[(1) - (2)].suni).length, (yyvsp[(2) - (2)].suni).s, (yyvsp[(2) - (2)].suni).length * sizeof (unichar));
4089 (yyval.suni).s = h;
4090 (yyval.suni).length = l;
4092 break;
4094 case 234:
4095 #line 1747 "rcparse.y"
4097 style |= (yyvsp[(1) - (1)].il);
4099 break;
4101 case 235:
4102 #line 1751 "rcparse.y"
4104 style &=~ (yyvsp[(2) - (2)].il);
4106 break;
4108 case 236:
4109 #line 1755 "rcparse.y"
4111 style |= (yyvsp[(3) - (3)].il);
4113 break;
4115 case 237:
4116 #line 1759 "rcparse.y"
4118 style &=~ (yyvsp[(4) - (4)].il);
4120 break;
4122 case 238:
4123 #line 1766 "rcparse.y"
4125 (yyval.il) = (yyvsp[(1) - (1)].i).val;
4127 break;
4129 case 239:
4130 #line 1770 "rcparse.y"
4132 (yyval.il) = (yyvsp[(2) - (3)].il);
4134 break;
4136 case 240:
4137 #line 1779 "rcparse.y"
4139 (yyval.il) = 0;
4141 break;
4143 case 241:
4144 #line 1783 "rcparse.y"
4146 (yyval.il) = (yyvsp[(1) - (1)].il);
4148 break;
4150 case 242:
4151 #line 1792 "rcparse.y"
4153 (yyval.il) = (yyvsp[(2) - (2)].il);
4155 break;
4157 case 243:
4158 #line 1801 "rcparse.y"
4160 (yyval.il) = (yyvsp[(1) - (1)].i).val;
4162 break;
4164 case 244:
4165 #line 1810 "rcparse.y"
4167 (yyval.i) = (yyvsp[(1) - (1)].i);
4169 break;
4171 case 245:
4172 #line 1814 "rcparse.y"
4174 (yyval.i) = (yyvsp[(2) - (3)].i);
4176 break;
4178 case 246:
4179 #line 1818 "rcparse.y"
4181 (yyval.i).val = ~ (yyvsp[(2) - (2)].i).val;
4182 (yyval.i).dword = (yyvsp[(2) - (2)].i).dword;
4184 break;
4186 case 247:
4187 #line 1823 "rcparse.y"
4189 (yyval.i).val = - (yyvsp[(2) - (2)].i).val;
4190 (yyval.i).dword = (yyvsp[(2) - (2)].i).dword;
4192 break;
4194 case 248:
4195 #line 1828 "rcparse.y"
4197 (yyval.i).val = (yyvsp[(1) - (3)].i).val * (yyvsp[(3) - (3)].i).val;
4198 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4200 break;
4202 case 249:
4203 #line 1833 "rcparse.y"
4205 (yyval.i).val = (yyvsp[(1) - (3)].i).val / (yyvsp[(3) - (3)].i).val;
4206 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4208 break;
4210 case 250:
4211 #line 1838 "rcparse.y"
4213 (yyval.i).val = (yyvsp[(1) - (3)].i).val % (yyvsp[(3) - (3)].i).val;
4214 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4216 break;
4218 case 251:
4219 #line 1843 "rcparse.y"
4221 (yyval.i).val = (yyvsp[(1) - (3)].i).val + (yyvsp[(3) - (3)].i).val;
4222 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4224 break;
4226 case 252:
4227 #line 1848 "rcparse.y"
4229 (yyval.i).val = (yyvsp[(1) - (3)].i).val - (yyvsp[(3) - (3)].i).val;
4230 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4232 break;
4234 case 253:
4235 #line 1853 "rcparse.y"
4237 (yyval.i).val = (yyvsp[(1) - (3)].i).val & (yyvsp[(3) - (3)].i).val;
4238 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4240 break;
4242 case 254:
4243 #line 1858 "rcparse.y"
4245 (yyval.i).val = (yyvsp[(1) - (3)].i).val ^ (yyvsp[(3) - (3)].i).val;
4246 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4248 break;
4250 case 255:
4251 #line 1863 "rcparse.y"
4253 (yyval.i).val = (yyvsp[(1) - (3)].i).val | (yyvsp[(3) - (3)].i).val;
4254 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4256 break;
4258 case 256:
4259 #line 1874 "rcparse.y"
4261 (yyval.il) = (yyvsp[(2) - (2)].il);
4263 break;
4265 case 257:
4266 #line 1883 "rcparse.y"
4268 (yyval.il) = (yyvsp[(1) - (1)].i).val;
4270 break;
4272 case 258:
4273 #line 1894 "rcparse.y"
4275 (yyval.i) = (yyvsp[(1) - (1)].i);
4277 break;
4279 case 259:
4280 #line 1898 "rcparse.y"
4282 (yyval.i) = (yyvsp[(2) - (3)].i);
4284 break;
4286 case 260:
4287 #line 1902 "rcparse.y"
4289 (yyval.i).val = ~ (yyvsp[(2) - (2)].i).val;
4290 (yyval.i).dword = (yyvsp[(2) - (2)].i).dword;
4292 break;
4294 case 261:
4295 #line 1907 "rcparse.y"
4297 (yyval.i).val = (yyvsp[(1) - (3)].i).val * (yyvsp[(3) - (3)].i).val;
4298 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4300 break;
4302 case 262:
4303 #line 1912 "rcparse.y"
4305 (yyval.i).val = (yyvsp[(1) - (3)].i).val / (yyvsp[(3) - (3)].i).val;
4306 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4308 break;
4310 case 263:
4311 #line 1917 "rcparse.y"
4313 (yyval.i).val = (yyvsp[(1) - (3)].i).val % (yyvsp[(3) - (3)].i).val;
4314 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4316 break;
4318 case 264:
4319 #line 1922 "rcparse.y"
4321 (yyval.i).val = (yyvsp[(1) - (3)].i).val + (yyvsp[(3) - (3)].i).val;
4322 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4324 break;
4326 case 265:
4327 #line 1927 "rcparse.y"
4329 (yyval.i).val = (yyvsp[(1) - (3)].i).val - (yyvsp[(3) - (3)].i).val;
4330 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4332 break;
4334 case 266:
4335 #line 1932 "rcparse.y"
4337 (yyval.i).val = (yyvsp[(1) - (3)].i).val & (yyvsp[(3) - (3)].i).val;
4338 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4340 break;
4342 case 267:
4343 #line 1937 "rcparse.y"
4345 (yyval.i).val = (yyvsp[(1) - (3)].i).val ^ (yyvsp[(3) - (3)].i).val;
4346 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4348 break;
4350 case 268:
4351 #line 1942 "rcparse.y"
4353 (yyval.i).val = (yyvsp[(1) - (3)].i).val | (yyvsp[(3) - (3)].i).val;
4354 (yyval.i).dword = (yyvsp[(1) - (3)].i).dword || (yyvsp[(3) - (3)].i).dword;
4356 break;
4359 /* Line 1267 of yacc.c. */
4360 #line 4361 "rcparse.c"
4361 default: break;
4363 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
4365 YYPOPSTACK (yylen);
4366 yylen = 0;
4367 YY_STACK_PRINT (yyss, yyssp);
4369 *++yyvsp = yyval;
4372 /* Now `shift' the result of the reduction. Determine what state
4373 that goes to, based on the state we popped back to and the rule
4374 number reduced by. */
4376 yyn = yyr1[yyn];
4378 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
4379 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
4380 yystate = yytable[yystate];
4381 else
4382 yystate = yydefgoto[yyn - YYNTOKENS];
4384 goto yynewstate;
4387 /*------------------------------------.
4388 | yyerrlab -- here on detecting error |
4389 `------------------------------------*/
4390 yyerrlab:
4391 /* If not already recovering from an error, report this error. */
4392 if (!yyerrstatus)
4394 ++yynerrs;
4395 #if ! YYERROR_VERBOSE
4396 yyerror (YY_("syntax error"));
4397 #else
4399 YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
4400 if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
4402 YYSIZE_T yyalloc = 2 * yysize;
4403 if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
4404 yyalloc = YYSTACK_ALLOC_MAXIMUM;
4405 if (yymsg != yymsgbuf)
4406 YYSTACK_FREE (yymsg);
4407 yymsg = (char *) YYSTACK_ALLOC (yyalloc);
4408 if (yymsg)
4409 yymsg_alloc = yyalloc;
4410 else
4412 yymsg = yymsgbuf;
4413 yymsg_alloc = sizeof yymsgbuf;
4417 if (0 < yysize && yysize <= yymsg_alloc)
4419 (void) yysyntax_error (yymsg, yystate, yychar);
4420 yyerror (yymsg);
4422 else
4424 yyerror (YY_("syntax error"));
4425 if (yysize != 0)
4426 goto yyexhaustedlab;
4429 #endif
4434 if (yyerrstatus == 3)
4436 /* If just tried and failed to reuse look-ahead token after an
4437 error, discard it. */
4439 if (yychar <= YYEOF)
4441 /* Return failure if at end of input. */
4442 if (yychar == YYEOF)
4443 YYABORT;
4445 else
4447 yydestruct ("Error: discarding",
4448 yytoken, &yylval);
4449 yychar = YYEMPTY;
4453 /* Else will try to reuse look-ahead token after shifting the error
4454 token. */
4455 goto yyerrlab1;
4458 /*---------------------------------------------------.
4459 | yyerrorlab -- error raised explicitly by YYERROR. |
4460 `---------------------------------------------------*/
4461 yyerrorlab:
4463 /* Pacify compilers like GCC when the user code never invokes
4464 YYERROR and the label yyerrorlab therefore never appears in user
4465 code. */
4466 if (/*CONSTCOND*/ 0)
4467 goto yyerrorlab;
4469 /* Do not reclaim the symbols of the rule which action triggered
4470 this YYERROR. */
4471 YYPOPSTACK (yylen);
4472 yylen = 0;
4473 YY_STACK_PRINT (yyss, yyssp);
4474 yystate = *yyssp;
4475 goto yyerrlab1;
4478 /*-------------------------------------------------------------.
4479 | yyerrlab1 -- common code for both syntax error and YYERROR. |
4480 `-------------------------------------------------------------*/
4481 yyerrlab1:
4482 yyerrstatus = 3; /* Each real token shifted decrements this. */
4484 for (;;)
4486 yyn = yypact[yystate];
4487 if (yyn != YYPACT_NINF)
4489 yyn += YYTERROR;
4490 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
4492 yyn = yytable[yyn];
4493 if (0 < yyn)
4494 break;
4498 /* Pop the current state because it cannot handle the error token. */
4499 if (yyssp == yyss)
4500 YYABORT;
4503 yydestruct ("Error: popping",
4504 yystos[yystate], yyvsp);
4505 YYPOPSTACK (1);
4506 yystate = *yyssp;
4507 YY_STACK_PRINT (yyss, yyssp);
4510 if (yyn == YYFINAL)
4511 YYACCEPT;
4513 *++yyvsp = yylval;
4516 /* Shift the error token. */
4517 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
4519 yystate = yyn;
4520 goto yynewstate;
4523 /*-------------------------------------.
4524 | yyacceptlab -- YYACCEPT comes here. |
4525 `-------------------------------------*/
4526 yyacceptlab:
4527 yyresult = 0;
4528 goto yyreturn;
4530 /*-----------------------------------.
4531 | yyabortlab -- YYABORT comes here. |
4532 `-----------------------------------*/
4533 yyabortlab:
4534 yyresult = 1;
4535 goto yyreturn;
4537 #ifndef yyoverflow
4538 /*-------------------------------------------------.
4539 | yyexhaustedlab -- memory exhaustion comes here. |
4540 `-------------------------------------------------*/
4541 yyexhaustedlab:
4542 yyerror (YY_("memory exhausted"));
4543 yyresult = 2;
4544 /* Fall through. */
4545 #endif
4547 yyreturn:
4548 if (yychar != YYEOF && yychar != YYEMPTY)
4549 yydestruct ("Cleanup: discarding lookahead",
4550 yytoken, &yylval);
4551 /* Do not reclaim the symbols of the rule which action triggered
4552 this YYABORT or YYACCEPT. */
4553 YYPOPSTACK (yylen);
4554 YY_STACK_PRINT (yyss, yyssp);
4555 while (yyssp != yyss)
4557 yydestruct ("Cleanup: popping",
4558 yystos[*yyssp], yyvsp);
4559 YYPOPSTACK (1);
4561 #ifndef yyoverflow
4562 if (yyss != yyssa)
4563 YYSTACK_FREE (yyss);
4564 #endif
4565 #if YYERROR_VERBOSE
4566 if (yymsg != yymsgbuf)
4567 YYSTACK_FREE (yymsg);
4568 #endif
4569 /* Make sure YYID is used. */
4570 return YYID (yyresult);
4574 #line 1948 "rcparse.y"
4577 /* Set the language from the command line. */
4579 void
4580 rcparse_set_language (int lang)
4582 language = lang;