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)
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. */
50 #define YYBISON_VERSION "2.3"
53 #define YYSKELETON_NAME "yacc.c"
58 /* Using locations. */
59 #define YYLSP_NEEDED 0
66 /* Put the tokens into the symbol table, so that GDB and other debuggers
88 AUTORADIOBUTTON
= 277,
121 CHARACTERISTICS
= 310,
139 PRODUCTVERSION
= 328,
145 BLOCKSTRINGFILEINFO
= 334,
146 BLOCKVARFILEINFO
= 335,
157 QUOTEDUNISTRING
= 346,
161 SIZEDUNISTRING
= 350,
170 #define ACCELERATORS 260
185 #define AUTO3STATE 275
186 #define AUTOCHECKBOX 276
187 #define AUTORADIOBUTTON 277
191 #define DEFPUSHBUTTON 281
197 #define PUSHBUTTON 287
198 #define RADIOBUTTON 288
200 #define SCROLLBAR 290
202 #define USERBUTTON 292
208 #define ANICURSOR 298
210 #define DLGINCLUDE 300
220 #define CHARACTERISTICS 310
225 #define SEPARATOR 315
231 #define MENUBARBREAK 321
232 #define MENUBREAK 322
233 #define MESSAGETABLE 323
235 #define STRINGTABLE 325
236 #define VERSIONINFO 326
237 #define FILEVERSION 327
238 #define PRODUCTVERSION 328
239 #define FILEFLAGSMASK 329
240 #define FILEFLAGS 330
243 #define FILESUBTYPE 333
244 #define BLOCKSTRINGFILEINFO 334
245 #define BLOCKVARFILEINFO 335
253 #define LOADONCALL 343
254 #define DISCARDABLE 344
256 #define QUOTEDUNISTRING 346
257 #define QUOTEDSTRING 347
260 #define SIZEDUNISTRING 350
261 #define SIZEDSTRING 351
262 #define IGNORED_TOKEN 352
268 /* Copy the first part of user declarations. */
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
294 /* This is a parser for Windows rc files. It is based on the parser
295 by Gunther Ebert <gunther.ebert@ixos-leipzig.de>. */
300 #include "libiberty.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
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
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. */
342 /* Enabling verbose error messages. */
343 #ifdef YYERROR_VERBOSE
344 # undef YYERROR_VERBOSE
345 # define YYERROR_VERBOSE 1
347 # define YYERROR_VERBOSE 0
350 /* Enabling the token table. */
351 #ifndef YYTOKEN_TABLE
352 # define YYTOKEN_TABLE 0
355 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
356 typedef union YYSTYPE
360 rc_accelerator
*pacc
;
361 rc_dialog_control
*dialog_control
;
362 rc_menuitem
*menuitem
;
365 rc_rcdata_item
*first
;
366 rc_rcdata_item
*last
;
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
;
375 rc_res_res_info res_info
;
384 /* Nonzero if this number was explicitly specified as long. */
402 /* Line 187 of yacc.c. */
403 #line 404 "rcparse.c"
405 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
406 # define YYSTYPE_IS_DECLARED 1
407 # define YYSTYPE_IS_TRIVIAL 1
412 /* Copy the second part of user declarations. */
415 /* Line 216 of yacc.c. */
416 #line 417 "rcparse.c"
423 typedef YYTYPE_UINT8 yytype_uint8
;
425 typedef unsigned char yytype_uint8
;
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
;
434 typedef short int yytype_int8
;
438 typedef YYTYPE_UINT16 yytype_uint16
;
440 typedef unsigned short int yytype_uint16
;
444 typedef YYTYPE_INT16 yytype_int16
;
446 typedef short int yytype_int16
;
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
459 # define YYSIZE_T unsigned int
463 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
468 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
469 # define YY_(msgid) dgettext ("bison-runtime", msgid)
473 # define YY_(msgid) msgid
477 /* Suppress unused-variable warnings by "using" E. */
478 #if ! defined lint || defined __GNUC__
479 # define YYUSE(e) ((void) (e))
481 # define YYUSE(e) /* empty */
484 /* Identity function, used to suppress warnings about constant conditions. */
488 #if (defined __STDC__ || defined __C99__FUNC__ \
489 || defined __cplusplus || defined _MSC_VER)
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
509 # define YYSTACK_ALLOC __builtin_alloca
510 # elif defined __BUILTIN_VA_ARG_INCR
511 # include <alloca.h> /* INFRINGES ON USER NAME SPACE */
513 # define YYSTACK_ALLOC __alloca
514 # elif defined _MSC_VER
515 # include <malloc.h> /* INFRINGES ON USER NAME SPACE */
516 # define alloca _alloca
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 */
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 */
541 # define YYSTACK_ALLOC YYMALLOC
542 # define YYSTACK_FREE YYFREE
543 # ifndef YYSTACK_ALLOC_MAXIMUM
544 # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
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 */
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 */
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 */
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. */
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
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
595 # if defined __GNUC__ && 1 < __GNUC__
596 # define YYCOPY(To, From, Count) \
597 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
599 # define YYCOPY(To, From, Count) \
603 for (yyi = 0; yyi < (Count); yyi++) \
604 (To)[yyi] = (From)[yyi]; \
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
615 # define YYSTACK_RELOCATE(Stack) \
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); \
628 /* YYFINAL -- State number of the termination state. */
630 /* YYLAST -- Last index in YYTABLE. */
633 /* YYNTOKENS -- Number of terminals. */
634 #define YYNTOKENS 112
635 /* YYNNTS -- Number of nonterminals. */
637 /* YYNRULES -- Number of rules. */
639 /* YYNRULES -- Number of states. */
640 #define YYNSTATES 514
642 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
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,
691 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
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,
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
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
904 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
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,
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,
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
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,
1376 #define yyerrok (yyerrstatus = 0)
1377 #define yyclearin (yychar = YYEMPTY)
1378 #define YYEMPTY (-2)
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) \
1396 if (yychar == YYEMPTY && yylen == 1) \
1400 yytoken = YYTRANSLATE (yychar); \
1406 yyerror (YY_("syntax error: cannot back up")); \
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) \
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; \
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; \
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)
1453 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1458 /* YYLEX -- calling `yylex' with the right arguments. */
1461 # define YYLEX yylex (YYLEX_PARAM)
1463 # define YYLEX yylex ()
1466 /* Enable debugging if requested. */
1470 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1471 # define YYFPRINTF fprintf
1474 # define YYDPRINTF(Args) \
1480 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
1484 YYFPRINTF (stderr, "%s ", Title); \
1485 yy_symbol_print (stderr, \
1487 YYFPRINTF (stderr, "\n"); \
1492 /*--------------------------------.
1493 | Print this symbol on YYOUTPUT. |
1494 `--------------------------------*/
1497 #if (defined __STDC__ || defined __C99__FUNC__ \
1498 || defined __cplusplus || defined _MSC_VER)
1500 yy_symbol_value_print (FILE *yyoutput
, int yytype
, YYSTYPE
const * const yyvaluep
)
1503 yy_symbol_value_print (yyoutput
, yytype
, yyvaluep
)
1506 YYSTYPE
const * const yyvaluep
;
1512 if (yytype
< YYNTOKENS
)
1513 YYPRINT (yyoutput
, yytoknum
[yytype
], *yyvaluep
);
1525 /*--------------------------------.
1526 | Print this symbol on YYOUTPUT. |
1527 `--------------------------------*/
1529 #if (defined __STDC__ || defined __C99__FUNC__ \
1530 || defined __cplusplus || defined _MSC_VER)
1532 yy_symbol_print (FILE *yyoutput
, int yytype
, YYSTYPE
const * const yyvaluep
)
1535 yy_symbol_print (yyoutput
, yytype
, yyvaluep
)
1538 YYSTYPE
const * const yyvaluep
;
1541 if (yytype
< YYNTOKENS
)
1542 YYFPRINTF (yyoutput
, "token %s (", yytname
[yytype
]);
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 |
1553 `------------------------------------------------------------------*/
1555 #if (defined __STDC__ || defined __C99__FUNC__ \
1556 || defined __cplusplus || defined _MSC_VER)
1558 yy_stack_print (yytype_int16
*bottom
, yytype_int16
*top
)
1561 yy_stack_print (bottom
, top
)
1562 yytype_int16
*bottom
;
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) \
1575 yy_stack_print ((Bottom), (Top)); \
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)
1586 yy_reduce_print (YYSTYPE
*yyvsp
, int yyrule
)
1589 yy_reduce_print (yyvsp
, yyrule
)
1594 int yynrhs
= yyr2
[yyrule
];
1596 unsigned long int yylno
= yyrline
[yyrule
];
1597 YYFPRINTF (stderr
, "Reducing stack by rule %d (line %lu):\n",
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) \
1613 yy_reduce_print (yyvsp, Rule); \
1616 /* Nonzero means print parse trace. It is left uninitialized so that
1617 multiple parsers can coexist. */
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. */
1629 # define YYINITDEPTH 200
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. */
1640 # define YYMAXDEPTH 10000
1648 # if defined __GLIBC__ && defined _STRING_H
1649 # define yystrlen strlen
1651 /* Return the length of YYSTR. */
1652 #if (defined __STDC__ || defined __C99__FUNC__ \
1653 || defined __cplusplus || defined _MSC_VER)
1655 yystrlen (const char *yystr
)
1663 for (yylen
= 0; yystr
[yylen
]; yylen
++)
1671 # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1672 # define yystpcpy stpcpy
1674 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1676 #if (defined __STDC__ || defined __C99__FUNC__ \
1677 || defined __cplusplus || defined _MSC_VER)
1679 yystpcpy (char *yydest
, const char *yysrc
)
1682 yystpcpy (yydest
, yysrc
)
1688 const char *yys
= yysrc
;
1690 while ((*yyd
++ = *yys
++) != '\0')
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
1707 yytnamerr (char *yyres
, const char *yystr
)
1712 char const *yyp
= yystr
;
1719 goto do_not_strip_quotes
;
1723 goto do_not_strip_quotes
;
1736 do_not_strip_quotes
: ;
1740 return yystrlen (yystr
);
1742 return yystpcpy (yyres
, yystr
) - yyres
;
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. */
1754 yysyntax_error (char *yyresult
, int yystate
, int yychar
)
1756 int yyn
= yypact
[yystate
];
1758 if (! (YYPACT_NINF
< yyn
&& yyn
<= YYLAST
))
1762 int yytype
= YYTRANSLATE (yychar
);
1763 YYSIZE_T yysize0
= yytnamerr (0, yytname
[yytype
]);
1764 YYSIZE_T yysize
= yysize0
;
1766 int yysize_overflow
= 0;
1767 enum { YYERROR_VERBOSE_ARGS_MAXIMUM
= 5 };
1768 char const *yyarg
[YYERROR_VERBOSE_ARGS_MAXIMUM
];
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");
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
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
;
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
)
1810 yyformat
[sizeof yyunexpected
- 1] = '\0';
1813 yyarg
[yycount
++] = yytname
[yyx
];
1814 yysize1
= yysize
+ yytnamerr (0, yytname
[yyx
]);
1815 yysize_overflow
|= (yysize1
< yysize
);
1817 yyfmt
= yystpcpy (yyfmt
, yyprefix
);
1821 yyf
= YY_(yyformat
);
1822 yysize1
= yysize
+ yystrlen (yyf
);
1823 yysize_overflow
|= (yysize1
< yysize
);
1826 if (yysize_overflow
)
1827 return YYSIZE_MAXIMUM
;
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
;
1836 while ((*yyp
= *yyf
) != '\0')
1838 if (*yyp
== '%' && yyf
[1] == 's' && yyi
< yycount
)
1840 yyp
+= yytnamerr (yyp
, yyarg
[yyi
++]);
1853 #endif /* YYERROR_VERBOSE */
1856 /*-----------------------------------------------.
1857 | Release the memory associated to this symbol. |
1858 `-----------------------------------------------*/
1861 #if (defined __STDC__ || defined __C99__FUNC__ \
1862 || defined __cplusplus || defined _MSC_VER)
1864 yydestruct (const char *yymsg
, int yytype
, YYSTYPE
*yyvaluep
)
1867 yydestruct (yymsg
, yytype
, yyvaluep
)
1877 YY_SYMBOL_PRINT (yymsg
, yytype
, yyvaluep
, yylocationp
);
1888 /* Prevent warnings from -Wmissing-prototypes. */
1890 #ifdef YYPARSE_PARAM
1891 #if defined __STDC__ || defined __cplusplus
1892 int yyparse (void *YYPARSE_PARAM
);
1896 #else /* ! YYPARSE_PARAM */
1897 #if defined __STDC__ || defined __cplusplus
1902 #endif /* ! YYPARSE_PARAM */
1906 /* The look-ahead symbol. */
1909 /* The semantic value of the look-ahead symbol. */
1912 /* Number of syntax errors so far. */
1921 #ifdef YYPARSE_PARAM
1922 #if (defined __STDC__ || defined __C99__FUNC__ \
1923 || defined __cplusplus || defined _MSC_VER)
1925 yyparse (void *YYPARSE_PARAM
)
1928 yyparse (YYPARSE_PARAM
)
1929 void *YYPARSE_PARAM
;
1931 #else /* ! YYPARSE_PARAM */
1932 #if (defined __STDC__ || defined __C99__FUNC__ \
1933 || defined __cplusplus || defined _MSC_VER)
1947 /* Number of tokens to shift before error messages enabled. */
1949 /* Look-ahead token as an internal (translated) token number. */
1952 /* Buffer for error messages, and its allocated size. */
1954 char *yymsg
= yymsgbuf
;
1955 YYSIZE_T yymsg_alloc
= sizeof yymsgbuf
;
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
;
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
1987 /* The number of symbols on the RHS of the reduced rule.
1988 Keep to zero when no symbol should be popped. */
1991 YYDPRINTF ((stderr
, "Starting parse\n"));
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. */
2008 /*------------------------------------------------------------.
2009 | yynewstate -- Push a new state, which is found in yystate. |
2010 `------------------------------------------------------------*/
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. */
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;
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
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
),
2046 #else /* no yyoverflow */
2047 # ifndef YYSTACK_RELOCATE
2048 goto yyexhaustedlab
;
2050 /* Extend the stack our own way. */
2051 if (YYMAXDEPTH
<= yystacksize
)
2052 goto yyexhaustedlab
;
2054 if (YYMAXDEPTH
< yystacksize
)
2055 yystacksize
= YYMAXDEPTH
;
2058 yytype_int16
*yyss1
= yyss
;
2059 union yyalloc
*yyptr
=
2060 (union yyalloc
*) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize
));
2062 goto yyexhaustedlab
;
2063 YYSTACK_RELOCATE (yyss
);
2064 YYSTACK_RELOCATE (yyvs
);
2066 # undef YYSTACK_RELOCATE
2068 YYSTACK_FREE (yyss1
);
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
)
2084 YYDPRINTF ((stderr
, "Entering state %d\n", yystate
));
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
)
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: "));
2110 if (yychar
<= YYEOF
)
2112 yychar
= yytoken
= YYEOF
;
2113 YYDPRINTF ((stderr
, "Now at end of input.\n"));
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. */
2124 if (yyn
< 0 || YYLAST
< yyn
|| yycheck
[yyn
] != yytoken
)
2129 if (yyn
== 0 || yyn
== YYTABLE_NINF
)
2138 /* Count tokens shifted since error; after three, turn off error
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
)
2156 /*-----------------------------------------------------------.
2157 | yydefault -- do the default action for the current state. |
2158 `-----------------------------------------------------------*/
2160 yyn
= yydefact
[yystate
];
2166 /*-----------------------------.
2167 | yyreduce -- Do a reduction. |
2168 `-----------------------------*/
2170 /* yyn is the number of a rule to reduce with. */
2173 /* If YYLEN is nonzero, implement the default value of the action:
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
);
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
)
2193 rcparse_discard_strings ();
2198 #line 210 "rcparse.y"
2200 (yyval
.pacc
) = NULL
;
2205 #line 214 "rcparse.y"
2209 a
= (rc_accelerator
*) res_alloc (sizeof *a
);
2210 *a
= (yyvsp
[(2) - (2)].acc
);
2211 if ((yyvsp
[(1) - (2)].pacc
) == NULL
)
2215 rc_accelerator
**pp
;
2217 for (pp
= &(yyvsp
[(1) - (2)].pacc
)->next
; *pp
!= NULL
; pp
= &(*pp
)->next
)
2220 (yyval
.pacc
) = (yyvsp
[(1) - (2)].pacc
);
2226 #line 235 "rcparse.y"
2228 (yyval
.acc
) = (yyvsp
[(1) - (2)].acc
);
2229 (yyval
.acc
).id
= (yyvsp
[(2) - (2)].il
);
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"));
2246 #line 252 "rcparse.y"
2248 const char *s
= (yyvsp
[(1) - (1)].s
);
2251 (yyval
.acc
).next
= NULL
;
2255 (yyval
.acc
).flags
= 0;
2258 (yyval
.acc
).flags
= ACC_CONTROL
| ACC_VIRTKEY
;
2260 ch
= TOUPPER (s
[0]);
2262 (yyval
.acc
).key
= ch
;
2264 rcparse_warning (_("accelerator should only be one character"));
2269 #line 272 "rcparse.y"
2271 (yyval
.acc
).next
= NULL
;
2272 (yyval
.acc
).flags
= 0;
2274 (yyval
.acc
).key
= (yyvsp
[(1) - (1)].il
);
2279 #line 282 "rcparse.y"
2281 (yyval
.is
) = (yyvsp
[(1) - (1)].is
);
2286 #line 286 "rcparse.y"
2288 (yyval
.is
) = (yyvsp
[(1) - (3)].is
) | (yyvsp
[(3) - (3)].is
);
2293 #line 291 "rcparse.y"
2295 (yyval
.is
) = (yyvsp
[(1) - (2)].is
) | (yyvsp
[(2) - (2)].is
);
2300 #line 298 "rcparse.y"
2302 (yyval
.is
) = ACC_VIRTKEY
;
2307 #line 302 "rcparse.y"
2309 /* This is just the absence of VIRTKEY. */
2315 #line 307 "rcparse.y"
2317 (yyval
.is
) = ACC_NOINVERT
;
2322 #line 311 "rcparse.y"
2324 (yyval
.is
) = ACC_SHIFT
;
2329 #line 315 "rcparse.y"
2331 (yyval
.is
) = ACC_CONTROL
;
2336 #line 319 "rcparse.y"
2338 (yyval
.is
) = ACC_ALT
;
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
)
2348 rcparse_discard_strings ();
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
)
2358 rcparse_discard_strings ();
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;
2376 dialog
.controls
= NULL
;
2377 sub_res_info
= (yyvsp
[(3) - (8)].res_info
);
2383 #line 370 "rcparse.y"
2385 define_dialog ((yyvsp
[(1) - (13)].id
), &sub_res_info
, &dialog
);
2386 if (yychar
!= YYEMPTY
)
2388 rcparse_discard_strings ();
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;
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
);
2415 #line 397 "rcparse.y"
2417 define_dialog ((yyvsp
[(1) - (13)].id
), &sub_res_info
, &dialog
);
2418 if (yychar
!= YYEMPTY
)
2420 rcparse_discard_strings ();
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;
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
);
2448 #line 425 "rcparse.y"
2450 define_dialog ((yyvsp
[(1) - (14)].id
), &sub_res_info
, &dialog
);
2451 if (yychar
!= YYEMPTY
)
2453 rcparse_discard_strings ();
2458 #line 435 "rcparse.y"
2465 #line 439 "rcparse.y"
2467 (yyval
.il
) = (yyvsp
[(3) - (3)].il
);
2472 #line 447 "rcparse.y"
2474 dialog
.style
|= WS_CAPTION
;
2475 style
|= WS_CAPTION
;
2476 dialog
.caption
= (yyvsp
[(3) - (3)].uni
);
2481 #line 453 "rcparse.y"
2483 dialog
.class = (yyvsp
[(3) - (3)].id
);
2488 #line 458 "rcparse.y"
2490 dialog
.style
= style
;
2495 #line 462 "rcparse.y"
2497 dialog
.exstyle
= (yyvsp
[(3) - (3)].il
);
2502 #line 466 "rcparse.y"
2504 res_unistring_to_id (& dialog
.class, (yyvsp
[(3) - (3)].uni
));
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;
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"));
2535 dialog
.ex
->weight
= (yyvsp
[(6) - (6)].il
);
2536 dialog
.ex
->italic
= 0;
2537 dialog
.ex
->charset
= 1;
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"));
2553 dialog
.ex
->weight
= (yyvsp
[(6) - (7)].il
);
2554 dialog
.ex
->italic
= (yyvsp
[(7) - (7)].il
);
2555 dialog
.ex
->charset
= 1;
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"));
2571 dialog
.ex
->weight
= (yyvsp
[(6) - (8)].il
);
2572 dialog
.ex
->italic
= (yyvsp
[(7) - (8)].il
);
2573 dialog
.ex
->charset
= (yyvsp
[(8) - (8)].il
);
2579 #line 528 "rcparse.y"
2581 dialog
.menu
= (yyvsp
[(3) - (3)].id
);
2586 #line 532 "rcparse.y"
2588 sub_res_info
.characteristics
= (yyvsp
[(3) - (3)].il
);
2593 #line 536 "rcparse.y"
2595 sub_res_info
.language
= (yyvsp
[(3) - (4)].il
) | ((yyvsp
[(4) - (4)].il
) << SUBLANG_SHIFT
);
2600 #line 540 "rcparse.y"
2602 sub_res_info
.version
= (yyvsp
[(3) - (3)].il
);
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
);
2618 #line 559 "rcparse.y"
2620 default_style
= BS_AUTO3STATE
| WS_TABSTOP
;
2621 base_style
= BS_AUTO3STATE
;
2623 class.u
.id
= CTL_BUTTON
;
2624 res_text_field
= (yyvsp
[(2) - (2)].id
);
2629 #line 567 "rcparse.y"
2631 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
2636 #line 571 "rcparse.y"
2638 default_style
= BS_AUTOCHECKBOX
| WS_TABSTOP
;
2639 base_style
= BS_AUTOCHECKBOX
;
2641 class.u
.id
= CTL_BUTTON
;
2642 res_text_field
= (yyvsp
[(2) - (2)].id
);
2647 #line 579 "rcparse.y"
2649 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
2654 #line 583 "rcparse.y"
2656 default_style
= BS_AUTORADIOBUTTON
| WS_TABSTOP
;
2657 base_style
= BS_AUTORADIOBUTTON
;
2659 class.u
.id
= CTL_BUTTON
;
2660 res_text_field
= (yyvsp
[(2) - (2)].id
);
2665 #line 591 "rcparse.y"
2667 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
2672 #line 595 "rcparse.y"
2674 default_style
= ES_LEFT
| WS_BORDER
| WS_TABSTOP
;
2675 base_style
= ES_LEFT
| WS_BORDER
| WS_TABSTOP
;
2677 class.u
.id
= CTL_EDIT
;
2678 res_text_field
= (yyvsp
[(2) - (2)].id
);
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");
2693 #line 610 "rcparse.y"
2695 default_style
= BS_CHECKBOX
| WS_TABSTOP
;
2696 base_style
= BS_CHECKBOX
| WS_TABSTOP
;
2698 class.u
.id
= CTL_BUTTON
;
2699 res_text_field
= (yyvsp
[(2) - (2)].id
);
2704 #line 618 "rcparse.y"
2706 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
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
;
2718 class.u
.id
= CTL_COMBOBOX
;
2719 res_text_field
= res_null_text
;
2724 #line 632 "rcparse.y"
2726 (yyval
.dialog_control
) = (yyvsp
[(3) - (3)].dialog_control
);
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
);
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
);
2755 #line 656 "rcparse.y"
2757 default_style
= SS_CENTER
| WS_GROUP
;
2758 base_style
= SS_CENTER
;
2760 class.u
.id
= CTL_STATIC
;
2761 res_text_field
= (yyvsp
[(2) - (2)].id
);
2766 #line 664 "rcparse.y"
2768 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
2773 #line 668 "rcparse.y"
2775 default_style
= BS_DEFPUSHBUTTON
| WS_TABSTOP
;
2776 base_style
= BS_DEFPUSHBUTTON
| WS_TABSTOP
;
2778 class.u
.id
= CTL_BUTTON
;
2779 res_text_field
= (yyvsp
[(2) - (2)].id
);
2784 #line 676 "rcparse.y"
2786 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
2791 #line 680 "rcparse.y"
2793 default_style
= ES_LEFT
| WS_BORDER
| WS_TABSTOP
;
2794 base_style
= ES_LEFT
| WS_BORDER
| WS_TABSTOP
;
2796 class.u
.id
= CTL_EDIT
;
2797 res_text_field
= res_null_text
;
2802 #line 688 "rcparse.y"
2804 (yyval
.dialog_control
) = (yyvsp
[(3) - (3)].dialog_control
);
2809 #line 692 "rcparse.y"
2811 default_style
= BS_GROUPBOX
;
2812 base_style
= BS_GROUPBOX
;
2814 class.u
.id
= CTL_BUTTON
;
2815 res_text_field
= (yyvsp
[(2) - (2)].id
);
2820 #line 700 "rcparse.y"
2822 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
2827 #line 704 "rcparse.y"
2829 default_style
= ES_LEFT
| WS_BORDER
| WS_TABSTOP
;
2830 base_style
= ES_LEFT
| WS_BORDER
| WS_TABSTOP
;
2832 class.u
.id
= CTL_EDIT
;
2833 res_text_field
= (yyvsp
[(2) - (2)].id
);
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");
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
),
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
),
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
),
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
),
2880 #line 742 "rcparse.y"
2882 default_style
= ES_LEFT
| WS_BORDER
| WS_TABSTOP
;
2883 base_style
= ES_LEFT
| WS_BORDER
| WS_TABSTOP
;
2885 class.u
.id
= CTL_EDIT
;
2886 res_text_field
= (yyvsp
[(2) - (2)].id
);
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");
2901 #line 757 "rcparse.y"
2903 default_style
= LBS_NOTIFY
| WS_BORDER
;
2904 base_style
= LBS_NOTIFY
| WS_BORDER
;
2906 class.u
.id
= CTL_LISTBOX
;
2907 res_text_field
= res_null_text
;
2912 #line 765 "rcparse.y"
2914 (yyval
.dialog_control
) = (yyvsp
[(3) - (3)].dialog_control
);
2919 #line 769 "rcparse.y"
2921 default_style
= SS_LEFT
| WS_GROUP
;
2922 base_style
= SS_LEFT
;
2924 class.u
.id
= CTL_STATIC
;
2925 res_text_field
= (yyvsp
[(2) - (2)].id
);
2930 #line 777 "rcparse.y"
2932 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
2937 #line 781 "rcparse.y"
2939 default_style
= BS_PUSHBOX
| WS_TABSTOP
;
2940 base_style
= BS_PUSHBOX
;
2942 class.u
.id
= CTL_BUTTON
;
2947 #line 788 "rcparse.y"
2949 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
2954 #line 792 "rcparse.y"
2956 default_style
= BS_PUSHBUTTON
| WS_TABSTOP
;
2957 base_style
= BS_PUSHBUTTON
| WS_TABSTOP
;
2959 class.u
.id
= CTL_BUTTON
;
2960 res_text_field
= (yyvsp
[(2) - (2)].id
);
2965 #line 800 "rcparse.y"
2967 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
2972 #line 804 "rcparse.y"
2974 default_style
= BS_RADIOBUTTON
| WS_TABSTOP
;
2975 base_style
= BS_RADIOBUTTON
;
2977 class.u
.id
= CTL_BUTTON
;
2978 res_text_field
= (yyvsp
[(2) - (2)].id
);
2983 #line 812 "rcparse.y"
2985 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
2990 #line 816 "rcparse.y"
2992 default_style
= SS_RIGHT
| WS_GROUP
;
2993 base_style
= SS_RIGHT
;
2995 class.u
.id
= CTL_STATIC
;
2996 res_text_field
= (yyvsp
[(2) - (2)].id
);
3001 #line 824 "rcparse.y"
3003 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
3008 #line 828 "rcparse.y"
3010 default_style
= SBS_HORZ
;
3013 class.u
.id
= CTL_SCROLLBAR
;
3014 res_text_field
= res_null_text
;
3019 #line 836 "rcparse.y"
3021 (yyval
.dialog_control
) = (yyvsp
[(3) - (3)].dialog_control
);
3026 #line 840 "rcparse.y"
3028 default_style
= BS_3STATE
| WS_TABSTOP
;
3029 base_style
= BS_3STATE
;
3031 class.u
.id
= CTL_BUTTON
;
3032 res_text_field
= (yyvsp
[(2) - (2)].id
);
3037 #line 848 "rcparse.y"
3039 (yyval
.dialog_control
) = (yyvsp
[(4) - (4)].dialog_control
);
3044 #line 853 "rcparse.y"
3045 { style
= WS_CHILD
| WS_VISIBLE
; }
3049 #line 855 "rcparse.y"
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
));
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
);
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
);
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
);
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
);
3103 (yyval
.id
)=(yyvsp
[(2) - (2)].id
);
3108 #line 917 "rcparse.y"
3110 res_string_to_id (&(yyval
.id
), "");
3115 #line 920 "rcparse.y"
3116 { (yyval
.id
)=(yyvsp
[(1) - (2)].id
); }
3120 #line 925 "rcparse.y"
3122 (yyval
.id
).named
= 0;
3123 (yyval
.id
).u
.id
= (yyvsp
[(1) - (1)].il
);
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
));
3137 #line 939 "rcparse.y"
3139 (yyval
.rcdata_item
) = NULL
;
3144 #line 943 "rcparse.y"
3146 (yyval
.rcdata_item
) = (yyvsp
[(2) - (3)].rcdata
).first
;
3151 #line 952 "rcparse.y"
3152 { style
= WS_CHILD
| WS_VISIBLE
; }
3156 #line 958 "rcparse.y"
3157 { style
= SS_ICON
| WS_CHILD
| WS_VISIBLE
; }
3161 #line 964 "rcparse.y"
3162 { style
= base_style
| WS_CHILD
| WS_VISIBLE
; }
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
)
3171 rcparse_discard_strings ();
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
)
3181 rcparse_discard_strings ();
3186 #line 997 "rcparse.y"
3188 language
= (yyvsp
[(2) - (3)].il
) | ((yyvsp
[(3) - (3)].il
) << SUBLANG_SHIFT
);
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
)
3198 rcparse_discard_strings ();
3203 #line 1016 "rcparse.y"
3205 (yyval
.menuitem
) = NULL
;
3210 #line 1020 "rcparse.y"
3212 if ((yyvsp
[(1) - (2)].menuitem
) == NULL
)
3213 (yyval
.menuitem
) = (yyvsp
[(2) - (2)].menuitem
);
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
);
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
);
3234 #line 1041 "rcparse.y"
3236 (yyval
.menuitem
) = define_menuitem (NULL
, 0, 0, 0, 0, NULL
);
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
));
3248 #line 1052 "rcparse.y"
3255 #line 1056 "rcparse.y"
3257 (yyval
.is
) = (yyvsp
[(1) - (3)].is
) | (yyvsp
[(3) - (3)].is
);
3262 #line 1060 "rcparse.y"
3264 (yyval
.is
) = (yyvsp
[(1) - (2)].is
) | (yyvsp
[(2) - (2)].is
);
3269 #line 1067 "rcparse.y"
3271 (yyval
.is
) = MENUITEM_CHECKED
;
3276 #line 1071 "rcparse.y"
3278 (yyval
.is
) = MENUITEM_GRAYED
;
3283 #line 1075 "rcparse.y"
3285 (yyval
.is
) = MENUITEM_HELP
;
3290 #line 1079 "rcparse.y"
3292 (yyval
.is
) = MENUITEM_INACTIVE
;
3297 #line 1083 "rcparse.y"
3299 (yyval
.is
) = MENUITEM_MENUBARBREAK
;
3304 #line 1087 "rcparse.y"
3306 (yyval
.is
) = MENUITEM_MENUBREAK
;
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
)
3316 rcparse_discard_strings ();
3321 #line 1106 "rcparse.y"
3323 (yyval
.menuitem
) = NULL
;
3328 #line 1110 "rcparse.y"
3330 if ((yyvsp
[(1) - (2)].menuitem
) == NULL
)
3331 (yyval
.menuitem
) = (yyvsp
[(2) - (2)].menuitem
);
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
);
3345 #line 1127 "rcparse.y"
3347 (yyval
.menuitem
) = define_menuitem ((yyvsp
[(2) - (2)].uni
), 0, 0, 0, 0, NULL
);
3352 #line 1131 "rcparse.y"
3354 (yyval
.menuitem
) = define_menuitem ((yyvsp
[(2) - (3)].uni
), (yyvsp
[(3) - (3)].il
), 0, 0, 0, NULL
);
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
);
3366 #line 1139 "rcparse.y"
3368 (yyval
.menuitem
) = define_menuitem (NULL
, 0, 0, 0, 0, NULL
);
3373 #line 1143 "rcparse.y"
3375 (yyval
.menuitem
) = define_menuitem ((yyvsp
[(2) - (5)].uni
), 0, 0, 0, 0, (yyvsp
[(4) - (5)].menuitem
));
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
));
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
));
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
));
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
)
3406 rcparse_discard_strings ();
3411 #line 1177 "rcparse.y"
3418 #line 1181 "rcparse.y"
3421 (yyval
.rcdata
) = (yyvsp
[(2) - (2)].rcdata
);
3426 #line 1189 "rcparse.y"
3428 (yyval
.rcdata
).first
= NULL
;
3429 (yyval
.rcdata
).last
= NULL
;
3434 #line 1194 "rcparse.y"
3436 (yyval
.rcdata
) = (yyvsp
[(1) - (1)].rcdata
);
3441 #line 1201 "rcparse.y"
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
;
3452 #line 1209 "rcparse.y"
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
;
3463 #line 1217 "rcparse.y"
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
;
3474 #line 1225 "rcparse.y"
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
;
3486 #line 1234 "rcparse.y"
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
;
3498 #line 1243 "rcparse.y"
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
;
3510 #line 1257 "rcparse.y"
3511 { sub_res_info
= (yyvsp
[(2) - (3)].res_info
); }
3515 #line 1264 "rcparse.y"
3517 define_stringtable (&sub_res_info
, (yyvsp
[(2) - (3)].il
), (yyvsp
[(3) - (3)].uni
));
3518 if (yychar
!= YYEMPTY
)
3520 rcparse_discard_strings ();
3525 #line 1271 "rcparse.y"
3527 define_stringtable (&sub_res_info
, (yyvsp
[(2) - (4)].il
), (yyvsp
[(4) - (4)].uni
));
3528 if (yychar
!= YYEMPTY
)
3530 rcparse_discard_strings ();
3535 #line 1281 "rcparse.y"
3537 (yyval
.id
)=(yyvsp
[(1) - (1)].id
);
3542 #line 1285 "rcparse.y"
3544 (yyval
.id
).named
= 0;
3545 (yyval
.id
).u
.id
= 23;
3550 #line 1290 "rcparse.y"
3552 (yyval
.id
).named
= 0;
3553 (yyval
.id
).u
.id
= RT_RCDATA
;
3558 #line 1295 "rcparse.y"
3560 (yyval
.id
).named
= 0;
3561 (yyval
.id
).u
.id
= RT_MANIFEST
;
3566 #line 1300 "rcparse.y"
3568 (yyval
.id
).named
= 0;
3569 (yyval
.id
).u
.id
= RT_PLUGPLAY
;
3574 #line 1305 "rcparse.y"
3576 (yyval
.id
).named
= 0;
3577 (yyval
.id
).u
.id
= RT_VXD
;
3582 #line 1310 "rcparse.y"
3584 (yyval
.id
).named
= 0;
3585 (yyval
.id
).u
.id
= RT_DLGINCLUDE
;
3590 #line 1315 "rcparse.y"
3592 (yyval
.id
).named
= 0;
3593 (yyval
.id
).u
.id
= RT_DLGINIT
;
3598 #line 1320 "rcparse.y"
3600 (yyval
.id
).named
= 0;
3601 (yyval
.id
).u
.id
= RT_ANICURSOR
;
3606 #line 1325 "rcparse.y"
3608 (yyval
.id
).named
= 0;
3609 (yyval
.id
).u
.id
= RT_ANIICON
;
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
)
3619 rcparse_discard_strings ();
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
)
3629 rcparse_discard_strings ();
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
));
3641 #line 1358 "rcparse.y"
3642 { (yyval
.toobar_item
)= NULL
; }
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
));
3653 while (c
->next
!= NULL
)
3659 n
->id
= (yyvsp
[(3) - (3)].id
);
3660 if ((yyvsp
[(1) - (3)].toobar_item
) == NULL
)
3661 (yyval
.toobar_item
) = n
;
3663 (yyval
.toobar_item
) = (yyvsp
[(1) - (3)].toobar_item
);
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
));
3675 while (c
->next
!= NULL
)
3683 if ((yyvsp
[(1) - (2)].toobar_item
) == NULL
)
3684 (yyval
.toobar_item
) = n
;
3686 (yyval
.toobar_item
) = (yyvsp
[(1) - (2)].toobar_item
);
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
)
3696 rcparse_discard_strings ();
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
));
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
);
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
);
3728 #line 1432 "rcparse.y"
3730 (yyvsp
[(1) - (3)].fixver
)->file_flags_mask
= (yyvsp
[(3) - (3)].il
);
3731 (yyval
.fixver
) = (yyvsp
[(1) - (3)].fixver
);
3736 #line 1437 "rcparse.y"
3738 (yyvsp
[(1) - (3)].fixver
)->file_flags
= (yyvsp
[(3) - (3)].il
);
3739 (yyval
.fixver
) = (yyvsp
[(1) - (3)].fixver
);
3744 #line 1442 "rcparse.y"
3746 (yyvsp
[(1) - (3)].fixver
)->file_os
= (yyvsp
[(3) - (3)].il
);
3747 (yyval
.fixver
) = (yyvsp
[(1) - (3)].fixver
);
3752 #line 1447 "rcparse.y"
3754 (yyvsp
[(1) - (3)].fixver
)->file_type
= (yyvsp
[(3) - (3)].il
);
3755 (yyval
.fixver
) = (yyvsp
[(1) - (3)].fixver
);
3760 #line 1452 "rcparse.y"
3762 (yyvsp
[(1) - (3)].fixver
)->file_subtype
= (yyvsp
[(3) - (3)].il
);
3763 (yyval
.fixver
) = (yyvsp
[(1) - (3)].fixver
);
3768 #line 1466 "rcparse.y"
3770 (yyval
.verinfo
) = NULL
;
3775 #line 1470 "rcparse.y"
3777 (yyval
.verinfo
) = append_ver_stringfileinfo ((yyvsp
[(1) - (8)].verinfo
), (yyvsp
[(4) - (8)].s
), (yyvsp
[(6) - (8)].verstring
));
3782 #line 1474 "rcparse.y"
3784 (yyval
.verinfo
) = append_ver_varfileinfo ((yyvsp
[(1) - (7)].verinfo
), (yyvsp
[(5) - (7)].uni
), (yyvsp
[(6) - (7)].vervar
));
3789 #line 1481 "rcparse.y"
3791 (yyval
.verstring
) = NULL
;
3796 #line 1485 "rcparse.y"
3798 (yyval
.verstring
) = append_verval ((yyvsp
[(1) - (5)].verstring
), (yyvsp
[(3) - (5)].uni
), (yyvsp
[(5) - (5)].uni
));
3803 #line 1492 "rcparse.y"
3805 (yyval
.vervar
) = NULL
;
3810 #line 1496 "rcparse.y"
3812 (yyval
.vervar
) = append_vertrans ((yyvsp
[(1) - (3)].vervar
), (yyvsp
[(2) - (3)].il
), (yyvsp
[(3) - (3)].il
));
3817 #line 1505 "rcparse.y"
3819 (yyval
.id
).named
= 0;
3820 (yyval
.id
).u
.id
= (yyvsp
[(1) - (1)].il
);
3825 #line 1510 "rcparse.y"
3827 res_unistring_to_id (&(yyval
.id
), (yyvsp
[(1) - (1)].uni
));
3832 #line 1519 "rcparse.y"
3834 (yyval
.uni
) = (yyvsp
[(1) - (1)].uni
);
3839 #line 1523 "rcparse.y"
3842 unicode_from_ascii ((rc_uint_type
*) NULL
, &h
, (yyvsp
[(1) - (1)].s
));
3848 #line 1533 "rcparse.y"
3850 (yyval
.id
).named
= 0;
3851 (yyval
.id
).u
.id
= (yyvsp
[(1) - (2)].il
);
3856 #line 1538 "rcparse.y"
3858 res_unistring_to_id (&(yyval
.id
), (yyvsp
[(1) - (1)].uni
));
3863 #line 1542 "rcparse.y"
3865 res_unistring_to_id (&(yyval
.id
), (yyvsp
[(1) - (2)].uni
));
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
;
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
;
3889 #line 1565 "rcparse.y"
3891 (yyval
.res_info
) = (yyvsp
[(1) - (3)].res_info
);
3892 (yyval
.res_info
).characteristics
= (yyvsp
[(3) - (3)].il
);
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
);
3905 #line 1575 "rcparse.y"
3907 (yyval
.res_info
) = (yyvsp
[(1) - (3)].res_info
);
3908 (yyval
.res_info
).version
= (yyvsp
[(3) - (3)].il
);
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
;
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
;
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
;
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
;
3949 #line 1620 "rcparse.y"
3951 (yyval
.memflags
).on
= MEMFLAG_MOVEABLE
;
3952 (yyval
.memflags
).off
= 0;
3957 #line 1625 "rcparse.y"
3959 (yyval
.memflags
).on
= 0;
3960 (yyval
.memflags
).off
= MEMFLAG_MOVEABLE
;
3965 #line 1630 "rcparse.y"
3967 (yyval
.memflags
).on
= MEMFLAG_PURE
;
3968 (yyval
.memflags
).off
= 0;
3973 #line 1635 "rcparse.y"
3975 (yyval
.memflags
).on
= 0;
3976 (yyval
.memflags
).off
= MEMFLAG_PURE
;
3981 #line 1640 "rcparse.y"
3983 (yyval
.memflags
).on
= MEMFLAG_PRELOAD
;
3984 (yyval
.memflags
).off
= 0;
3989 #line 1645 "rcparse.y"
3991 (yyval
.memflags
).on
= 0;
3992 (yyval
.memflags
).off
= MEMFLAG_PRELOAD
;
3997 #line 1650 "rcparse.y"
3999 (yyval
.memflags
).on
= MEMFLAG_DISCARDABLE
;
4000 (yyval
.memflags
).off
= 0;
4005 #line 1660 "rcparse.y"
4007 (yyval
.s
) = (yyvsp
[(1) - (1)].s
);
4012 #line 1664 "rcparse.y"
4014 (yyval
.s
) = (yyvsp
[(1) - (1)].s
);
4019 #line 1672 "rcparse.y"
4021 (yyval
.uni
) = (yyvsp
[(1) - (1)].uni
);
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
));
4032 memcpy (h
, (yyvsp
[(1) - (2)].uni
), l1
* sizeof (unichar
));
4034 memcpy (h
+ l1
, (yyvsp
[(2) - (2)].uni
), l2
* sizeof (unichar
));
4041 #line 1692 "rcparse.y"
4043 (yyval
.uni
) = unichar_dup ((yyvsp
[(1) - (1)].uni
));
4048 #line 1696 "rcparse.y"
4051 unicode_from_ascii ((rc_uint_type
*) NULL
, &h
, (yyvsp
[(1) - (1)].s
));
4057 #line 1705 "rcparse.y"
4059 (yyval
.ss
) = (yyvsp
[(1) - (1)].ss
);
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
);
4071 (yyval
.ss
).length
= l
;
4076 #line 1721 "rcparse.y"
4078 (yyval
.suni
) = (yyvsp
[(1) - (1)].suni
);
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
));
4090 (yyval
.suni
).length
= l
;
4095 #line 1747 "rcparse.y"
4097 style
|= (yyvsp
[(1) - (1)].il
);
4102 #line 1751 "rcparse.y"
4104 style
&=~ (yyvsp
[(2) - (2)].il
);
4109 #line 1755 "rcparse.y"
4111 style
|= (yyvsp
[(3) - (3)].il
);
4116 #line 1759 "rcparse.y"
4118 style
&=~ (yyvsp
[(4) - (4)].il
);
4123 #line 1766 "rcparse.y"
4125 (yyval
.il
) = (yyvsp
[(1) - (1)].i
).val
;
4130 #line 1770 "rcparse.y"
4132 (yyval
.il
) = (yyvsp
[(2) - (3)].il
);
4137 #line 1779 "rcparse.y"
4144 #line 1783 "rcparse.y"
4146 (yyval
.il
) = (yyvsp
[(1) - (1)].il
);
4151 #line 1792 "rcparse.y"
4153 (yyval
.il
) = (yyvsp
[(2) - (2)].il
);
4158 #line 1801 "rcparse.y"
4160 (yyval
.il
) = (yyvsp
[(1) - (1)].i
).val
;
4165 #line 1810 "rcparse.y"
4167 (yyval
.i
) = (yyvsp
[(1) - (1)].i
);
4172 #line 1814 "rcparse.y"
4174 (yyval
.i
) = (yyvsp
[(2) - (3)].i
);
4179 #line 1818 "rcparse.y"
4181 (yyval
.i
).val
= ~ (yyvsp
[(2) - (2)].i
).val
;
4182 (yyval
.i
).dword
= (yyvsp
[(2) - (2)].i
).dword
;
4187 #line 1823 "rcparse.y"
4189 (yyval
.i
).val
= - (yyvsp
[(2) - (2)].i
).val
;
4190 (yyval
.i
).dword
= (yyvsp
[(2) - (2)].i
).dword
;
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
;
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
;
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
;
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
;
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
;
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
;
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
;
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
;
4259 #line 1874 "rcparse.y"
4261 (yyval
.il
) = (yyvsp
[(2) - (2)].il
);
4266 #line 1883 "rcparse.y"
4268 (yyval
.il
) = (yyvsp
[(1) - (1)].i
).val
;
4273 #line 1894 "rcparse.y"
4275 (yyval
.i
) = (yyvsp
[(1) - (1)].i
);
4280 #line 1898 "rcparse.y"
4282 (yyval
.i
) = (yyvsp
[(2) - (3)].i
);
4287 #line 1902 "rcparse.y"
4289 (yyval
.i
).val
= ~ (yyvsp
[(2) - (2)].i
).val
;
4290 (yyval
.i
).dword
= (yyvsp
[(2) - (2)].i
).dword
;
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
;
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
;
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
;
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
;
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
;
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
;
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
;
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
;
4359 /* Line 1267 of yacc.c. */
4360 #line 4361 "rcparse.c"
4363 YY_SYMBOL_PRINT ("-> $$ =", yyr1
[yyn
], &yyval
, &yyloc
);
4367 YY_STACK_PRINT (yyss
, yyssp
);
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. */
4378 yystate
= yypgoto
[yyn
- YYNTOKENS
] + *yyssp
;
4379 if (0 <= yystate
&& yystate
<= YYLAST
&& yycheck
[yystate
] == *yyssp
)
4380 yystate
= yytable
[yystate
];
4382 yystate
= yydefgoto
[yyn
- YYNTOKENS
];
4387 /*------------------------------------.
4388 | yyerrlab -- here on detecting error |
4389 `------------------------------------*/
4391 /* If not already recovering from an error, report this error. */
4395 #if ! YYERROR_VERBOSE
4396 yyerror (YY_("syntax error"));
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
);
4409 yymsg_alloc
= yyalloc
;
4413 yymsg_alloc
= sizeof yymsgbuf
;
4417 if (0 < yysize
&& yysize
<= yymsg_alloc
)
4419 (void) yysyntax_error (yymsg
, yystate
, yychar
);
4424 yyerror (YY_("syntax error"));
4426 goto yyexhaustedlab
;
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
)
4447 yydestruct ("Error: discarding",
4453 /* Else will try to reuse look-ahead token after shifting the error
4458 /*---------------------------------------------------.
4459 | yyerrorlab -- error raised explicitly by YYERROR. |
4460 `---------------------------------------------------*/
4463 /* Pacify compilers like GCC when the user code never invokes
4464 YYERROR and the label yyerrorlab therefore never appears in user
4466 if (/*CONSTCOND*/ 0)
4469 /* Do not reclaim the symbols of the rule which action triggered
4473 YY_STACK_PRINT (yyss
, yyssp
);
4478 /*-------------------------------------------------------------.
4479 | yyerrlab1 -- common code for both syntax error and YYERROR. |
4480 `-------------------------------------------------------------*/
4482 yyerrstatus
= 3; /* Each real token shifted decrements this. */
4486 yyn
= yypact
[yystate
];
4487 if (yyn
!= YYPACT_NINF
)
4490 if (0 <= yyn
&& yyn
<= YYLAST
&& yycheck
[yyn
] == YYTERROR
)
4498 /* Pop the current state because it cannot handle the error token. */
4503 yydestruct ("Error: popping",
4504 yystos
[yystate
], yyvsp
);
4507 YY_STACK_PRINT (yyss
, yyssp
);
4516 /* Shift the error token. */
4517 YY_SYMBOL_PRINT ("Shifting", yystos
[yyn
], yyvsp
, yylsp
);
4523 /*-------------------------------------.
4524 | yyacceptlab -- YYACCEPT comes here. |
4525 `-------------------------------------*/
4530 /*-----------------------------------.
4531 | yyabortlab -- YYABORT comes here. |
4532 `-----------------------------------*/
4538 /*-------------------------------------------------.
4539 | yyexhaustedlab -- memory exhaustion comes here. |
4540 `-------------------------------------------------*/
4542 yyerror (YY_("memory exhausted"));
4548 if (yychar
!= YYEOF
&& yychar
!= YYEMPTY
)
4549 yydestruct ("Cleanup: discarding lookahead",
4551 /* Do not reclaim the symbols of the rule which action triggered
4552 this YYABORT or YYACCEPT. */
4554 YY_STACK_PRINT (yyss
, yyssp
);
4555 while (yyssp
!= yyss
)
4557 yydestruct ("Cleanup: popping",
4558 yystos
[*yyssp
], yyvsp
);
4563 YYSTACK_FREE (yyss
);
4566 if (yymsg
!= yymsgbuf
)
4567 YYSTACK_FREE (yymsg
);
4569 /* Make sure YYID is used. */
4570 return YYID (yyresult
);
4574 #line 1948 "rcparse.y"
4577 /* Set the language from the command line. */
4580 rcparse_set_language (int lang
)