Changeset 498
- Timestamp:
- 2004年06月06日 14時11分57秒 (4 years ago)
- Files:
-
- branches/2.10/src/ChangeLog.Meadow (modified) (1 diff)
- branches/2.10/src/GNUmakefile (modified) (1 diff)
- branches/2.10/src/inilex.c (modified) (13 diffs)
- branches/2.10/src/iniparse.c (modified) (38 diffs)
- branches/2.10/src/iniparse.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.10/src/ChangeLog.Meadow
r497 r498 1 1 2004-06-06 KOSEKI Yoshinori <kose@meadowy.org> 2 3 * GNUmakefile (mostlyclean): rm inilex.c iniparse.c iniparse.h. 4 (made by flex) 2 5 3 6 * version.c: Set 2.10.2. branches/2.10/src/GNUmakefile
r468 r498 159 159 .PHONY: mostlyclean clean distclean realclean extraclean 160 160 mostlyclean: 161 $(RM) *.o *.i *.ini core $(PROGS) 161 $(RM) *.o *.i *.ini core $(PROGS) inilex.c iniparse.c iniparse.h 162 162 clean: mostlyclean 163 163 distclean: clean branches/2.10/src/inilex.c
r7 r498 2 2 3 3 /* Scanner skeleton version: 4 * $Header: / usr/local/chgdroot/Meadow/cvsroot/netinstall/src/inilex.c,v 1.1 2002/10/21 15:03:26 koseExp $4 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ 5 5 */ 6 6 … … 10 10 11 11 #include <stdio.h> 12 12 #include <errno.h> 13 13 14 14 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ … … 23 23 24 24 #include <stdlib.h> 25 #ifndef _WIN32 25 26 #include <unistd.h> 27 #endif 26 28 27 29 /* Use prototypes in function declarations. */ … … 62 64 #define YY_PROTO(proto) () 63 65 #endif 66 64 67 65 68 /* Returned upon end-of-file. */ … … 509 512 #define YY_RESTORE_YY_MORE_OFFSET 510 513 char *yytext; 511 #line 1 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"514 #line 1 "inilex.l" 512 515 #define INITIAL 0 513 #line 2 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"516 #line 2 "inilex.l" 514 517 /* 515 518 * Copyright (c) 2000, Red Hat, Inc. … … 545 548 /*%option debug */ 546 549 #define YY_NEVER_INTERACTIVE 1 547 #line 5 48"lex.yy.c"550 #line 551 "lex.yy.c" 548 551 549 552 /* Macros after this point can all be overridden by user definitions in … … 645 648 result = n; \ 646 649 } \ 647 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ 648 && ferror( yyin ) ) \ 649 YY_FATAL_ERROR( "input in flex scanner failed" ); 650 else \ 651 { \ 652 errno=0; \ 653 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ 654 { \ 655 if( errno != EINTR) \ 656 { \ 657 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 658 break; \ 659 } \ 660 errno=0; \ 661 clearerr(yyin); \ 662 } \ 663 } 650 664 #endif 651 665 … … 699 713 register int yy_act; 700 714 701 #line 42 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"702 703 704 #line 7 05"lex.yy.c"715 #line 42 "inilex.l" 716 717 718 #line 719 "lex.yy.c" 705 719 706 720 if ( yy_init ) … … 796 810 case 1: 797 811 YY_RULE_SETUP 798 #line 44 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"812 #line 44 "inilex.l" 799 813 { yylval = strdup (yytext+1); 800 814 yylval[strlen (yylval)-1] = 0; … … 803 817 case 2: 804 818 YY_RULE_SETUP 805 #line 48 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"819 #line 48 "inilex.l" 806 820 return SETUP_TIMESTAMP; 807 821 YY_BREAK 808 822 case 3: 809 823 YY_RULE_SETUP 810 #line 49 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"824 #line 49 "inilex.l" 811 825 return SETUP_VERSION; 812 826 YY_BREAK 813 827 case 4: 814 828 YY_RULE_SETUP 815 #line 50 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"829 #line 50 "inilex.l" 816 830 return VERSION; 817 831 YY_BREAK 818 832 case 5: 819 833 YY_RULE_SETUP 820 #line 51 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"834 #line 51 "inilex.l" 821 835 return INSTALL; 822 836 YY_BREAK 823 837 case 6: 824 838 YY_RULE_SETUP 825 #line 52 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"839 #line 52 "inilex.l" 826 840 return TYPE; 827 841 YY_BREAK 828 842 case 7: 829 843 YY_RULE_SETUP 830 #line 53 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"844 #line 53 "inilex.l" 831 845 return SOURCE; 832 846 YY_BREAK 833 847 case 8: 834 848 YY_RULE_SETUP 835 #line 54 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"849 #line 54 "inilex.l" 836 850 return SDESC; 837 851 YY_BREAK 838 852 case 9: 839 853 YY_RULE_SETUP 840 #line 55 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"854 #line 55 "inilex.l" 841 855 return LDESC; 842 856 YY_BREAK 843 857 case 10: 844 858 YY_RULE_SETUP 845 #line 57 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"859 #line 57 "inilex.l" 846 860 ignore_line (); 847 861 YY_BREAK 848 862 case 11: 849 863 YY_RULE_SETUP 850 #line 59 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"864 #line 59 "inilex.l" 851 865 return T_CURR; 852 866 YY_BREAK 853 867 case 12: 854 868 YY_RULE_SETUP 855 #line 60 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"869 #line 60 "inilex.l" 856 870 return T_TEST; 857 871 YY_BREAK 858 872 case 13: 859 873 YY_RULE_SETUP 860 #line 61 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"874 #line 61 "inilex.l" 861 875 return T_TEST; 862 876 YY_BREAK 863 877 case 14: 864 878 YY_RULE_SETUP 865 #line 62 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"879 #line 62 "inilex.l" 866 880 return T_PREV; 867 881 YY_BREAK 868 882 case 15: 869 883 YY_RULE_SETUP 870 #line 63 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"884 #line 63 "inilex.l" 871 885 return T_UNKNOWN; 872 886 YY_BREAK 873 887 case 16: 874 888 YY_RULE_SETUP 875 #line 65 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"889 #line 65 "inilex.l" 876 890 { yylval = strdup (yytext); 877 891 return STRING; } … … 879 893 case 17: 880 894 YY_RULE_SETUP 881 #line 68 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"895 #line 68 "inilex.l" 882 896 /* do nothing */ 883 897 YY_BREAK 884 898 case 18: 885 899 YY_RULE_SETUP 886 #line 70 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"900 #line 70 "inilex.l" 887 901 /* ignore comments */ 888 902 YY_BREAK 889 903 case 19: 890 904 YY_RULE_SETUP 891 #line 72 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"905 #line 72 "inilex.l" 892 906 { return yytext[0]; } 893 907 YY_BREAK 894 908 case 20: 895 909 YY_RULE_SETUP 896 #line 73 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"910 #line 73 "inilex.l" 897 911 { return yytext[0]; } 898 912 YY_BREAK 899 913 case 21: 900 914 YY_RULE_SETUP 901 #line 75 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"915 #line 75 "inilex.l" 902 916 ECHO; 903 917 YY_BREAK 904 #line 9 05"lex.yy.c"918 #line 919 "lex.yy.c" 905 919 case YY_STATE_EOF(INITIAL): 906 920 yyterminate(); … … 1466 1480 1467 1481 1482 #ifndef _WIN32 1483 #include <unistd.h> 1484 #else 1468 1485 #ifndef YY_ALWAYS_INTERACTIVE 1469 1486 #ifndef YY_NEVER_INTERACTIVE 1470 1487 extern int isatty YY_PROTO(( int )); 1488 #endif 1471 1489 #endif 1472 1490 #endif … … 1788 1806 } 1789 1807 #endif 1790 #line 75 " /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/inilex.l"1808 #line 75 "inilex.l" 1791 1809 1792 1810 branches/2.10/src/iniparse.c
r7 r498 1 /* A Bison parser, made from /usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/iniparse.y 2 by GNU bison 1.35. */ 3 4 #define YYBISON 1 /* Identify Bison output. */ 5 6 # define STRING 257 7 # define SETUP_TIMESTAMP 258 8 # define SETUP_VERSION 259 9 # define VERSION 260 10 # define INSTALL 261 11 # define SOURCE 262 12 # define SDESC 263 13 # define LDESC 264 14 # define TYPE 265 15 # define T_PREV 266 16 # define T_CURR 267 17 # define T_TEST 268 18 # define T_UNKNOWN 269 19 20 #line 1 "/usr/local/src/xemacs/patched/windows-21-4.cygwin/netinstall/iniparse.y" 1 /* A Bison parser, made by GNU Bison 1.875b. */ 2 3 /* Skeleton parser for Yacc-like parsing with Bison, 4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 59 Temple Place - Suite 330, 19 Boston, MA 02111-1307, USA. */ 20 21 /* As a special exception, when this file is copied by Bison into a 22 Bison output file, you may use that output file without restriction. 23 This special exception was added by the Free Software Foundation 24 in version 1.24 of Bison. */ 25 26 /* Written by Richard Stallman by simplifying the original so called 27 ``semantic'' parser. */ 28 29 /* All symbols defined below should begin with yy or YY, to avoid 30 infringing on user name space. This should be done even for local 31 variables, as they might otherwise be expanded by user macros. 32 There are some unavoidable exceptions within include files to 33 define necessary library symbols; they are noted "INFRINGES ON 34 USER NAME SPACE" below. */ 35 36 /* Identify Bison output. */ 37 #define YYBISON 1 38 39 /* Skeleton name. */ 40 #define YYSKELETON_NAME "yacc.c" 41 42 /* Pure parsers. */ 43 #define YYPURE 0 44 45 /* Using locations. */ 46 #define YYLSP_NEEDED 0 47 48 49 50 /* Tokens. */ 51 #ifndef YYTOKENTYPE 52 # define YYTOKENTYPE 53 /* Put the tokens into the symbol table, so that GDB and other debuggers 54 know about them. */ 55 enum yytokentype { 56 STRING = 258, 57 SETUP_TIMESTAMP = 259, 58 SETUP_VERSION = 260, 59 VERSION = 261, 60 INSTALL = 262, 61 SOURCE = 263, 62 SDESC = 264, 63 LDESC = 265, 64 TYPE = 266, 65 T_PREV = 267, 66 T_CURR = 268, 67 T_TEST = 269, 68 T_UNKNOWN = 270 69 }; 70 #endif 71 #define STRING 258 72 #define SETUP_TIMESTAMP 259 73 #define SETUP_VERSION 260 74 #define VERSION 261 75 #define INSTALL 262 76 #define SOURCE 263 77 #define SDESC 264 78 #define LDESC 265 79 #define TYPE 266 80 #define T_PREV 267 81 #define T_CURR 268 82 #define T_TEST 269 83 #define T_UNKNOWN 270 84 85 86 87 88 /* Copy the first part of user declarations. */ 89 #line 1 "iniparse.y" 21 90 22 91 /* … … 59 128 #define cpt (cp->info+trust) 60 129 61 #ifndef YYSTYPE 62 # define YYSTYPE int 63 # define YYSTYPE_IS_TRIVIAL 1 64 #endif 130 131 132 /* Enabling traces. */ 65 133 #ifndef YYDEBUG 66 134 # define YYDEBUG 0 67 135 #endif 68 136 69 70 71 #define YYFINAL 47 72 #define YYFLAG -32768 73 #define YYNTBASE 18 74 75 /* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ 76 #define YYTRANSLATE(x) ((unsigned)(x) <= 269 ? yytranslate[x] : 27) 77 78 /* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ 79 static const char yytranslate[] = 80 { 81 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 82 16, 2, 2, 2, 2, 2, 2, 2, 2, 2, 83 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 84 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 85 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 86 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 87 2, 2, 2, 2, 17, 2, 2, 2, 2, 2, 88 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 89 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 90 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 91 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 92 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 93 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 94 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 95 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 96 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 97 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 98 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 99 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 100 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 101 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 102 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 103 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 104 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 105 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 106 2, 2, 2, 2, 2, 2, 1, 3, 4, 5, 107 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 108 }; 109 110 #if YYDEBUG 111 static const short yyprhs[] = 112 { 113 0, 0, 3, 6, 7, 11, 15, 17, 18, 22, 114 25, 26, 27, 33, 37, 39, 42, 45, 48, 52, 115 56, 59, 61, 63, 65, 67, 68 116 }; 117 static const short yyrhs[] = 118 { 119 19, 22, 0, 20, 19, 0, 0, 4, 3, 16, 120 0, 5, 3, 16, 0, 16, 0, 0, 1, 21, 121 16, 0, 23, 22, 0, 0, 0, 17, 3, 16, 122 24, 25, 0, 26, 16, 25, 0, 26, 0, 6, 123 3, 0, 9, 3, 0, 10, 3, 0, 7, 3, 124 3, 0, 8, 3, 3, 0, 11, 3, 0, 12, 125 0, 13, 0, 14, 0, 15, 0, 0, 1, 16, 126 0 127 }; 128 129 #endif 130 131 #if YYDEBUG 132 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ 133 static const short yyrline[] = 134 { 135 0, 50, 54, 55, 59, 60, 61, 62, 62, 66, 136 67, 71, 71, 76, 77, 81, 82, 83, 84, 86, 137 88, 94, 95, 96, 97, 98, 99 138 }; 139 #endif 140 141 142 #if (YYDEBUG) || defined YYERROR_VERBOSE 143 144 /* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ 145 static const char *const yytname[] = 146 { 147 "$", "error", "$undefined.", "STRING", "SETUP_TIMESTAMP", "SETUP_VERSION", 148 "VERSION", "INSTALL", "SOURCE", "SDESC", "LDESC", "TYPE", "T_PREV", 149 "T_CURR", "T_TEST", "T_UNKNOWN", "'\\n'", "'@'", "whole_file", 150 "setup_headers", "setup_header", "@1", "packages", "package", "@2", 151 "lines", "simple_line", 0 152 }; 153 #endif 154 155 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ 156 static const short yyr1[] = 157 { 158 0, 18, 19, 19, 20, 20, 20, 21, 20, 22, 159 22, 24, 23, 25, 25, 26, 26, 26, 26, 26, 160 26, 26, 26, 26, 26, 26, 26 161 }; 162 163 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ 164 static const short yyr2[] = 165 { 166 0, 2, 2, 0, 3, 3, 1, 0, 3, 2, 167 0, 0, 5, 3, 1, 2, 2, 2, 3, 3, 168 2, 1, 1, 1, 1, 0, 2 169 }; 170 171 /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE 172 doesn't specify something else to do. Zero means the default is an 173 error. */ 174 static const short yydefact[] = 175 { 176 0, 7, 0, 0, 6, 10, 0, 0, 0, 0, 177 0, 1, 10, 2, 8, 4, 5, 0, 9, 11, 178 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 179 23, 24, 12, 14, 26, 15, 0, 0, 16, 17, 180 20, 0, 18, 19, 13, 0, 0, 0 181 }; 182 183 static const short yydefgoto[] = 184 { 185 45, 5, 6, 7, 11, 12, 20, 32, 33 186 }; 187 188 static const short yypact[] = 189 { 190 18,-32768, -1, 1,-32768, -14, 18, -11, 4, 5, 191 21,-32768, -14,-32768,-32768,-32768,-32768, 9,-32768,-32768, 192 0, 10, 24, 25, 26, 27, 28, 29,-32768,-32768, 193 -32768,-32768,-32768, 17,-32768,-32768, 33, 34,-32768,-32768, 194 -32768, 0,-32768,-32768,-32768, 38, 39,-32768 195 }; 196 197 static const short yypgoto[] = 198 { 199 -32768, 35,-32768,-32768, 30,-32768,-32768, 2,-32768 200 }; 201 202 203 #define YYLAST 43 204 205 206 static const short yytable[] = 207 { 208 -25, 21, 8, 10, 9, 14, 22, 23, 24, 25, 209 26, 27, 28, 29, 30, 31, -25, -25, -3, 1, 210 15, 16, 2, 3, 17, 19, 34, 35, 36, 37, 211 38, 39, 40, 41, 4, -3, 42, 43, 46, 47, 212 0, 13, 18, 44 213 }; 214 215 static const short yycheck[] = 216 { 217 0, 1, 3, 17, 3, 16, 6, 7, 8, 9, 218 10, 11, 12, 13, 14, 15, 16, 17, 0, 1, 219 16, 16, 4, 5, 3, 16, 16, 3, 3, 3, 220 3, 3, 3, 16, 16, 17, 3, 3, 0, 0, 221 -1, 6, 12, 41 222 }; 223 /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ 224 #line 3 "/usr/share/bison/bison.simple" 225 226 /* Skeleton output parser for bison, 227 228 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software 229 Foundation, Inc. 230 231 This program is free software; you can redistribute it and/or modify 232 it under the terms of the GNU General Public License as published by 233 the Free Software Foundation; either version 2, or (at your option) 234 any later version. 235 236 This program is distributed in the hope that it will be useful, 237 but WITHOUT ANY WARRANTY; without even the implied warranty of 238 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 239 GNU General Public License for more details. 240 241 You should have received a copy of the GNU General Public License 242 along with this program; if not, write to the Free Software 243 Foundation, Inc., 59 Temple Place - Suite 330, 244 Boston, MA 02111-1307, USA. */ 245 246 /* As a special exception, when this file is copied by Bison into a 247 Bison output file, you may use that output file without restriction. 248 This special exception was added by the Free Software Foundation 249 in version 1.24 of Bison. */ 250 251 /* This is the parser code that is written into each bison parser when 252 the %semantic_parser declaration is not specified in the grammar. 253 It was written by Richard Stallman by simplifying the hairy parser 254 used when %semantic_parser is specified. */ 255 256 /* All symbols defined below should begin with yy or YY, to avoid 257 infringing on user name space. This should be done even for local 258 variables, as they might otherwise be expanded by user macros. 259 There are some unavoidable exceptions within include files to 260 define necessary library symbols; they are noted "INFRINGES ON 261 USER NAME SPACE" below. */ 262 263 #if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) 137 /* Enabling verbose error messages. */ 138 #ifdef YYERROR_VERBOSE 139 # undef YYERROR_VERBOSE 140 # define YYERROR_VERBOSE 1 141 #else 142 # define YYERROR_VERBOSE 0 143 #endif 144 145 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) 146 typedef int YYSTYPE; 147 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 148 # define YYSTYPE_IS_DECLARED 1 149 # define YYSTYPE_IS_TRIVIAL 1 150 #endif 151 152 153 154 /* Copy the second part of user declarations. */ 155 156 157 /* Line 214 of yacc.c. */ 158 #line 159 "iniparse.c" 159 160 #if ! defined (yyoverflow) || YYERROR_VERBOSE 264 161 265 162 /* The parser invokes alloca or malloc; define the necessary symbols. */ … … 290 187 # define YYSTACK_FREE free 291 188 # endif 292 #endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE)*/189 #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ 293 190 294 191 295 192 #if (! defined (yyoverflow) \ 296 193 && (! defined (__cplusplus) \ 297 || (YY LTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))194 || (YYSTYPE_IS_TRIVIAL))) 298 195 299 196 /* A type that is properly aligned for any stack member. */ … … 302 199 short yyss; 303 200 YYSTYPE yyvs; 304 # if YYLSP_NEEDED 305 YYLTYPE yyls; 306 # endif 307 }; 201 }; 308 202 309 203 /* The size of the maximum gap between one aligned stack and the next. */ 310 # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)204 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) 311 205 312 206 /* The size of an array large to enough to hold all stacks, each with 313 207 N elements. */ 314 # if YYLSP_NEEDED 315 # define YYSTACK_BYTES(N) \ 316 ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ 317 + 2 * YYSTACK_GAP_MAX) 318 # else 319 # define YYSTACK_BYTES(N) \ 208 # define YYSTACK_BYTES(N) \ 320 209 ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ 321 + YYSTACK_GAP_MAX) 322 # endif 210 + YYSTACK_GAP_MAXIMUM) 323 211 324 212 /* Copy COUNT objects from FROM to TO. The source and destination do … … 351 239 YYCOPY (&yyptr->Stack, Stack, yysize); \ 352 240 Stack = &yyptr->Stack; \ 353 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX ;\241 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ 354 242 yyptr += yynewbytes / sizeof (*yyptr); \ 355 243 } \ … … 358 246 #endif 359 247 248 #if defined (__STDC__) || defined (__cplusplus) 249 typedef signed char yysigned_char; 250 #else 251 typedef short yysigned_char; 252 #endif 253 254 /* YYFINAL -- State number of the termination state. */ 255 #define YYFINAL 11 256 /* YYLAST -- Last index in YYTABLE. */ 257 #define YYLAST 45 258 259 /* YYNTOKENS -- Number of terminals. */ 260 #define YYNTOKENS 18 261 /* YYNNTS -- Number of nonterminals. */ 262 #define YYNNTS 10 263 /* YYNRULES -- Number of rules. */ 264 #define YYNRULES 27 265 /* YYNRULES -- Number of states. */ 266 #define YYNSTATES 47 267 268 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ 269 #define YYUNDEFTOK 2 270 #define YYMAXUTOK 270 271 272 #define YYTRANSLATE(YYX) \ 273 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) 274 275 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ 276 static const unsigned char yytranslate[] = 277 { 278 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 279 16, 2, 2, 2, 2, 2, 2, 2, 2, 2, 280 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 281 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 282 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 283 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 284 2, 2, 2, 2, 17, 2, 2, 2, 2, 2, 285 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 286 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 287 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 288 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 289 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 290 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 291 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 292 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 293 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 294 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 295 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 296 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 297 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 298 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 299 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 300 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 301 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 302 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 303 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 304 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 305 15 306 }; 307 308 #if YYDEBUG 309 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in 310 YYRHS. */ 311 static const unsigned char yyprhs[] = 312 { 313 0, 0, 3, 6, 9, 10, 14, 18, 20, 21, 314 25, 28, 29, 30, 36, 40, 42, 45, 48, 51, 315 55, 59, 62, 64, 66, 68, 70, 71 316 }; 317 318 /* YYRHS -- A `-1'-separated list of the rules' RHS. */ 319 static const yysigned_char yyrhs[] = 320 { 321 19, 0, -1, 20, 23, -1, 21, 20, -1, -1, 322 4, 3, 16, -1, 5, 3, 16, -1, 16, -1, 323 -1, 1, 22, 16, -1, 24, 23, -1, -1, -1, 324 17, 3, 16, 25, 26, -1, 27, 16, 26, -1, 325 27, -1, 6, 3, -1, 9, 3, -1, 10, 3, 326 -1, 7, 3, 3, -1, 8, 3, 3, -1, 11, 327 3, -1, 12, -1, 13, -1, 14, -1, 15, -1, 328 -1, 1, 16, -1 329 }; 330 331 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ 332 static const unsigned char yyrline[] = 333 { 334 0, 50, 50, 54, 55, 59, 60, 61, 62, 62, 335 66, 67, 71, 71, 76, 77, 81, 82, 83, 84, 336 86, 88, 94, 95, 96, 97, 98, 99 337 }; 338 #endif 339 340 #if YYDEBUG || YYERROR_VERBOSE 341 /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. 342 First, the terminals, then, starting at YYNTOKENS, nonterminals. */ 343 static const char *const yytname[] = 344 { 345 "$end", "error", "$undefined", "STRING", "SETUP_TIMESTAMP", 346 "SETUP_VERSION", "VERSION", "INSTALL", "SOURCE", "SDESC", "LDESC", 347 "TYPE", "T_PREV", "T_CURR", "T_TEST", "T_UNKNOWN", "'\\n'", "'@'", 348 "$accept", "whole_file", "setup_headers", "setup_header", "@1", 349 "packages", "package", "@2", "lines", "simple_line", 0 350 }; 351 #endif 352 353 # ifdef YYPRINT 354 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to 355 token YYLEX-NUM. */ 356 static const unsigned short yytoknum[] = 357 { 358 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 359 265, 266, 267, 268, 269, 270, 10, 64 360 }; 361 # endif 362 363 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ 364 static const unsigned char yyr1[] = 365 { 366 0, 18, 19, 20, 20, 21, 21, 21, 22, 21, 367 23, 23, 25, 24, 26, 26, 27, 27, 27, 27, 368 27, 27, 27, 27, 27, 27, 27, 27 369 }; 370 371 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ 372 static const unsigned char yyr2[] = 373 { 374 0, 2, 2, 2, 0, 3, 3, 1, 0, 3, 375 2, 0, 0, 5, 3, 1, 2, 2, 2, 3, 376 3, 2, 1, 1, 1, 1, 0, 2 377 }; 378 379 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state 380 STATE-NUM when YYTABLE doesn't specify something else to do. Zero 381 means the default is an error. */ 382 static const unsigned char yydefact[] = 383 { 384 0, 8, 0, 0, 7, 0, 11, 0, 0, 0, 385 0, 1, 0, 2, 11, 3, 9, 5, 6, 0, 386 10, 12, 0, 0, 0, 0, 0, 0, 0, 0, 387 22, 23, 24, 25, 13, 15, 27, 16, 0, 0, 388 17, 18, 21, 0, 19, 20, 14 389 }; 390 391 /* YYDEFGOTO[NTERM-NUM]. */ 392 static const yysigned_char yydefgoto[] = 393 { 394 -1, 5, 6, 7, 8, 13, 14, 22, 34, 35 395 }; 396 397 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing 398 STATE-NUM. */ 399 #define YYPACT_NINF -13 400 static const yysigned_char yypact[] = 401 { 402 18, -13, -1, 1, -13, 3, -12, 18, 4, 5, 403 8, -13, 22, -13, -12, -13, -13, -13, -13, 10, 404 -13, -13, 0, 11, 25, 26, 27, 28, 29, 30, 405 -13, -13, -13, -13, -13, 20, -13, -13, 34, 35, 406 -13, -13, -13, 0, -13, -13, -13 407 }; 408 409 /* YYPGOTO[NTERM-NUM]. */ 410 static const yysigned_char yypgoto[] = 411 { 412 -13, -13, 32, -13, -13, 31, -13, -13, -3, -13 413 }; 414 415 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If 416 positive, shift that token. If negative, reduce the rule which 417 number is the opposite. If zero, do what YYDEFACT says. 418 If YYTABLE_NINF, syntax error. */ 419 #define YYTABLE_NINF -27 420 static const yysigned_char yytable[] = 421 { 422 -26, 23, 9, 11, 10, 12, 24, 25, 26, 27, 423 28, 29, 30, 31, 32, 33, -26, -26, -4, 1, 424 16, 17, 2, 3, 18, 19, 21, 36, 37, 38, 425 39, 40, 41, 42, 4, -4, 43, 44, 45, 15, 426 46, 0, 0, 0, 0, 20 427 }; 428 429 static const yysigned_char yycheck[] = 430 { 431 0, 1, 3, 0, 3, 17, 6, 7, 8, 9, 432 10, 11, 12, 13, 14, 15, 16, 17, 0, 1, 433 16, 16, 4, 5, 16, 3, 16, 16, 3, 3, 434 3, 3, 3, 3, 16, 17, 16, 3, 3, 7, 435 43, -1, -1, -1, -1, 14 436 }; 437 438 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing 439 symbol of state STATE-NUM. */ 440 static const unsigned char yystos[] = 441 { 442 0, 1, 4, 5, 16, 19, 20, 21, 22, 3, 443 3, 0, 17, 23, 24, 20, 16, 16, 16, 3, 444 23, 16, 25, 1, 6, 7, 8, 9, 10, 11, 445 12, 13, 14, 15, 26, 27, 16, 3, 3, 3, 446 3, 3, 3, 16, 3, 3, 26 447 }; 360 448 361 449 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) … … 377 465 #define yyerrok (yyerrstatus = 0) 378 466 #define yyclearin (yychar = YYEMPTY) 379 #define YYEMPTY -2467 #define YYEMPTY (-2) 380 468 #define YYEOF 0 469 381 470 #define YYACCEPT goto yyacceptlab 382 #define YYABORT goto yyabortlab471 #define YYABORT goto yyabortlab 383 472 #define YYERROR goto yyerrlab1 473 474 384 475 /* Like YYERROR except do call yyerror. This remains here temporarily 385 476 to ease the transition to the new meaning of YYERROR, for GCC. 386 477 Once GCC version 2 has supplanted version 1, this can go. */ 478 387 479 #define YYFAIL goto yyerrlab 480 388 481 #define YYRECOVERING() (!!yyerrstatus) 482 389 483 #define YYBACKUP(Token, Value) \ 390 484 do \ … … 393 487 yychar = (Token); \ 394 488 yylval = (Value); \ 395 yy char1= YYTRANSLATE (yychar); \489 yytoken = YYTRANSLATE (yychar); \ 396 490 YYPOPSTACK; \ 397 491 goto yybackup; \ … … 399 493 else \ 400 494 { \ 401 yyerror ("syntax error: cannot back up"); \495 yyerror ("syntax error: cannot back up");\ 402 496 YYERROR; \ 403 497 } \ … … 407 501 #define YYERRCODE 256 408 502 409 410 503 /* YYLLOC_DEFAULT -- Compute the default location (before the actions 411 are run). 412 413 When YYLLOC_DEFAULT is run, CURRENT is set the location of the 414 first token. By default, to implement support for ranges, extend 415 its range to the last symbol. */ 504 are run). */ 416 505 417 506 #ifndef YYLLOC_DEFAULT 418 # define YYLLOC_DEFAULT(Current, Rhs, N) \ 419 Current.last_line = Rhs[N].last_line; \ 420 Current.last_column = Rhs[N].last_colu
