annotate netinstall/iniparse.c @ 448:3078fd1074e8 r21-2-39

Import from CVS: tag r21-2-39
author cvs
date Mon, 13 Aug 2007 11:38:25 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
2 /* A Bison parser, made from /windows/build/xemacs/xemacs/netinstall/iniparse.y
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
3 by GNU Bison version 1.28 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
4
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
5 #define YYBISON 1 /* Identify Bison output. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
6
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
7 #define STRING 257
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
8 #define SETUP_TIMESTAMP 258
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
9 #define SETUP_VERSION 259
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
10 #define VERSION 260
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
11 #define INSTALL 261
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
12 #define SOURCE 262
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
13 #define SDESC 263
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
14 #define LDESC 264
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
15 #define TYPE 265
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
16 #define T_PREV 266
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
17 #define T_CURR 267
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
18 #define T_TEST 268
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
19 #define T_UNKNOWN 269
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
20
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
21 #line 1 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
22
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
23 /*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
24 * Copyright (c) 2000, Red Hat, Inc.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
25 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
26 * This program is free software; you can redistribute it and/or modify
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
27 * it under the terms of the GNU General Public License as published by
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
28 * the Free Software Foundation; either version 2 of the License, or
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
29 * (at your option) any later version.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
30 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
31 * A copy of the GNU General Public License can be found at
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
32 * http://www.gnu.org/
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
33 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
34 * Written by DJ Delorie <dj@cygnus.com>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
35 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
36 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
37
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
38 /* Parse the setup.ini files. inilex.l provides the tokens for this. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
39
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
40 #include <stdio.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
41 #include <stdlib.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
42 #include <string.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
43 #include "win32.h"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
44
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
45 #include "ini.h"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
46 #include "iniparse.h"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
47
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
48 #include "port.h"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
49
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
50 #define YYERROR_VERBOSE 1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
51 /*#define YYDEBUG 1*/
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
52
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
53 static Package *cp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
54 static int trust;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
55 extern unsigned int setup_timestamp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
56 extern char *setup_version;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
57 extern int yylineno;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
58 extern int CDECL yyerror (char *s, ...);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
59
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
60 #define cpt (cp->info+trust)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
61
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
62 #ifndef YYSTYPE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
63 #define YYSTYPE int
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
64 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
65 #include <stdio.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
66
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
67 #ifndef __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
68 #ifndef __STDC__
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
69 #define const
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
70 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
71 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
72
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
73
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
74
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
75 #define YYFINAL 47
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
76 #define YYFLAG -32768
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
77 #define YYNTBASE 18
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
78
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
79 #define YYTRANSLATE(x) ((unsigned)(x) <= 269 ? yytranslate[x] : 27)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
80
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
81 static const char yytranslate[] = { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
82 2, 2, 2, 2, 2, 2, 2, 2, 2, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
83 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
84 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
85 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
86 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
87 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
88 2, 2, 2, 17, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
89 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
90 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
91 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
92 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
93 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
94 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
95 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
96 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
97 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
98 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
99 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
100 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
101 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
102 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
103 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
104 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
105 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
106 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
107 2, 2, 2, 2, 2, 1, 3, 4, 5, 6,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
108 7, 8, 9, 10, 11, 12, 13, 14, 15
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
109 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
110
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
111 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
112 static const short yyprhs[] = { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
113 0, 3, 6, 7, 11, 15, 17, 18, 22, 25,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
114 26, 27, 33, 37, 39, 42, 45, 48, 52, 56,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
115 59, 61, 63, 65, 67, 68
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
116 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
117
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
118 static const short yyrhs[] = { 19,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
119 22, 0, 20, 19, 0, 0, 4, 3, 16, 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
120 5, 3, 16, 0, 16, 0, 0, 1, 21, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
121 0, 23, 22, 0, 0, 0, 17, 3, 16, 24,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
122 25, 0, 26, 16, 25, 0, 26, 0, 6, 3,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
123 0, 9, 3, 0, 10, 3, 0, 7, 3, 3,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
124 0, 8, 3, 3, 0, 11, 3, 0, 12, 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
125 13, 0, 14, 0, 15, 0, 0, 1, 16, 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
126 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
127
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
128 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
129
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
130 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
131 static const short yyrline[] = { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
132 50, 54, 55, 59, 60, 61, 62, 63, 66, 67,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
133 71, 73, 76, 77, 81, 82, 83, 84, 86, 88,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
134 94, 95, 96, 97, 98, 99
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
135 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
136 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
137
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
138
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
139 #if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
140
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
141 static const char * const yytname[] = { "$","error","$undefined.","STRING",
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
142 "SETUP_TIMESTAMP","SETUP_VERSION","VERSION","INSTALL","SOURCE","SDESC","LDESC",
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
143 "TYPE","T_PREV","T_CURR","T_TEST","T_UNKNOWN","'\\n'","'@'","whole_file","setup_headers",
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
144 "setup_header","@1","packages","package","@2","lines","simple_line", NULL
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
145 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
146 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
147
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
148 static const short yyr1[] = { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
149 18, 19, 19, 20, 20, 20, 21, 20, 22, 22,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
150 24, 23, 25, 25, 26, 26, 26, 26, 26, 26,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
151 26, 26, 26, 26, 26, 26
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
152 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
153
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
154 static const short yyr2[] = { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
155 2, 2, 0, 3, 3, 1, 0, 3, 2, 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
156 0, 5, 3, 1, 2, 2, 2, 3, 3, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
157 1, 1, 1, 1, 0, 2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
158 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
159
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
160 static const short yydefact[] = { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
161 7, 0, 0, 6, 10, 0, 0, 0, 0, 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
162 1, 10, 2, 8, 4, 5, 0, 9, 11, 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
163 0, 0, 0, 0, 0, 0, 0, 21, 22, 23,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
164 24, 12, 14, 26, 15, 0, 0, 16, 17, 20,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
165 0, 18, 19, 13, 0, 0, 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
166 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
167
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
168 static const short yydefgoto[] = { 45,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
169 5, 6, 7, 11, 12, 20, 32, 33
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
170 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
171
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
172 static const short yypact[] = { 18,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
173 -32768, -1, 1,-32768, -14, 18, -11, 4, 5, 21,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
174 -32768, -14,-32768,-32768,-32768,-32768, 9,-32768,-32768, 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
175 10, 24, 25, 26, 27, 28, 29,-32768,-32768,-32768,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
176 -32768,-32768, 17,-32768,-32768, 33, 34,-32768,-32768,-32768,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
177 0,-32768,-32768,-32768, 38, 39,-32768
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
178 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
179
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
180 static const short yypgoto[] = {-32768,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
181 35,-32768,-32768, 30,-32768,-32768, 2,-32768
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
182 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
183
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
184
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
185 #define YYLAST 43
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
186
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
187
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
188 static const short yytable[] = { -25,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
189 21, 8, 10, 9, 14, 22, 23, 24, 25, 26,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
190 27, 28, 29, 30, 31, -25, -25, -3, 1, 15,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
191 16, 2, 3, 17, 19, 34, 35, 36, 37, 38,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
192 39, 40, 41, 4, -3, 42, 43, 46, 47, 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
193 13, 18, 44
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
194 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
195
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
196 static const short yycheck[] = { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
197 1, 3, 17, 3, 16, 6, 7, 8, 9, 10,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
198 11, 12, 13, 14, 15, 16, 17, 0, 1, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
199 16, 4, 5, 3, 16, 16, 3, 3, 3, 3,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
200 3, 3, 16, 16, 17, 3, 3, 0, 0, -1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
201 6, 12, 41
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
202 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
203 /* -*-C-*- Note some compilers choke on comments on `#line' lines. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
204 #line 3 "/usr/share/bison.simple"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
205 /* This file comes from bison-1.28. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
206
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
207 /* Skeleton output parser for bison,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
208 Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
209
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
210 This program is free software; you can redistribute it and/or modify
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
211 it under the terms of the GNU General Public License as published by
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
212 the Free Software Foundation; either version 2, or (at your option)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
213 any later version.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
214
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
215 This program is distributed in the hope that it will be useful,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
216 but WITHOUT ANY WARRANTY; without even the implied warranty of
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
217 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
218 GNU General Public License for more details.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
219
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
220 You should have received a copy of the GNU General Public License
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
221 along with this program; if not, write to the Free Software
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
222 Foundation, Inc., 59 Temple Place - Suite 330,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
223 Boston, MA 02111-1307, USA. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
224
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
225 /* As a special exception, when this file is copied by Bison into a
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
226 Bison output file, you may use that output file without restriction.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
227 This special exception was added by the Free Software Foundation
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
228 in version 1.24 of Bison. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
229
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
230 /* This is the parser code that is written into each bison parser
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
231 when the %semantic_parser declaration is not specified in the grammar.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
232 It was written by Richard Stallman by simplifying the hairy parser
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
233 used when %semantic_parser is specified. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
234
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
235 #ifndef YYSTACK_USE_ALLOCA
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
236 #ifdef alloca
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
237 #define YYSTACK_USE_ALLOCA
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
238 #else /* alloca not defined */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
239 #ifdef __GNUC__
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
240 #define YYSTACK_USE_ALLOCA
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
241 #define alloca __builtin_alloca
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
242 #else /* not GNU C. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
243 #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
244 #define YYSTACK_USE_ALLOCA
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
245 #include <alloca.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
246 #else /* not sparc */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
247 /* We think this test detects Watcom and Microsoft C. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
248 /* This used to test MSDOS, but that is a bad idea
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
249 since that symbol is in the user namespace. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
250 #if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
251 #if 0 /* No need for malloc.h, which pollutes the namespace;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
252 instead, just don't use alloca. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
253 #include <malloc.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
254 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
255 #else /* not MSDOS, or __TURBOC__ */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
256 #if defined(_AIX)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
257 /* I don't know what this was needed for, but it pollutes the namespace.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
258 So I turned it off. rms, 2 May 1997. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
259 /* #include <malloc.h> */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
260 #pragma alloca
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
261 #define YYSTACK_USE_ALLOCA
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
262 #else /* not MSDOS, or __TURBOC__, or _AIX */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
263 #if 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
264 #ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
265 and on HPUX 10. Eventually we can turn this on. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
266 #define YYSTACK_USE_ALLOCA
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
267 #define alloca __builtin_alloca
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
268 #endif /* __hpux */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
269 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
270 #endif /* not _AIX */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
271 #endif /* not MSDOS, or __TURBOC__ */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
272 #endif /* not sparc */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
273 #endif /* not GNU C */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
274 #endif /* alloca not defined */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
275 #endif /* YYSTACK_USE_ALLOCA not defined */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
276
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
277 #ifdef YYSTACK_USE_ALLOCA
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
278 #define YYSTACK_ALLOC alloca
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
279 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
280 #define YYSTACK_ALLOC malloc
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
281 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
282
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
283 /* Note: there must be only one dollar sign in this file.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
284 It is replaced by the list of actions, each action
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
285 as one case of the switch. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
286
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
287 #define yyerrok (yyerrstatus = 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
288 #define yyclearin (yychar = YYEMPTY)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
289 #define YYEMPTY -2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
290 #define YYEOF 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
291 #define YYACCEPT goto yyacceptlab
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
292 #define YYABORT goto yyabortlab
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
293 #define YYERROR goto yyerrlab1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
294 /* Like YYERROR except do call yyerror.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
295 This remains here temporarily to ease the
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
296 transition to the new meaning of YYERROR, for GCC.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
297 Once GCC version 2 has supplanted version 1, this can go. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
298 #define YYFAIL goto yyerrlab
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
299 #define YYRECOVERING() (!!yyerrstatus)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
300 #define YYBACKUP(token, value) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
301 do \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
302 if (yychar == YYEMPTY && yylen == 1) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
303 { yychar = (token), yylval = (value); \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
304 yychar1 = YYTRANSLATE (yychar); \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
305 YYPOPSTACK; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
306 goto yybackup; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
307 } \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
308 else \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
309 { yyerror ("syntax error: cannot back up"); YYERROR; } \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
310 while (0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
311
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
312 #define YYTERROR 1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
313 #define YYERRCODE 256
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
314
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
315 #ifndef YYPURE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
316 #define YYLEX yylex()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
317 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
318
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
319 #ifdef YYPURE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
320 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
321 #ifdef YYLEX_PARAM
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
322 #define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
323 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
324 #define YYLEX yylex(&yylval, &yylloc)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
325 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
326 #else /* not YYLSP_NEEDED */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
327 #ifdef YYLEX_PARAM
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
328 #define YYLEX yylex(&yylval, YYLEX_PARAM)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
329 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
330 #define YYLEX yylex(&yylval)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
331 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
332 #endif /* not YYLSP_NEEDED */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
333 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
334
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
335 /* If nonreentrant, generate the variables here */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
336
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
337 #ifndef YYPURE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
338
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
339 int yychar; /* the lookahead symbol */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
340 YYSTYPE yylval; /* the semantic value of the */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
341 /* lookahead symbol */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
342
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
343 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
344 YYLTYPE yylloc; /* location data for the lookahead */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
345 /* symbol */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
346 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
347
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
348 int yynerrs; /* number of parse errors so far */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
349 #endif /* not YYPURE */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
350
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
351 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
352 int yydebug; /* nonzero means print parse trace */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
353 /* Since this is uninitialized, it does not stop multiple parsers
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
354 from coexisting. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
355 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
356
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
357 /* YYINITDEPTH indicates the initial size of the parser's stacks */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
358
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
359 #ifndef YYINITDEPTH
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
360 #define YYINITDEPTH 200
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
361 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
362
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
363 /* YYMAXDEPTH is the maximum size the stacks can grow to
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
364 (effective only if the built-in stack extension method is used). */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
365
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
366 #if YYMAXDEPTH == 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
367 #undef YYMAXDEPTH
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
368 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
369
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
370 #ifndef YYMAXDEPTH
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
371 #define YYMAXDEPTH 10000
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
372 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
373
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
374 /* Define __yy_memcpy. Note that the size argument
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
375 should be passed with type unsigned int, because that is what the non-GCC
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
376 definitions require. With GCC, __builtin_memcpy takes an arg
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
377 of type size_t, but it can handle unsigned int. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
378
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
379 #if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
380 #define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
381 #else /* not GNU C or C++ */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
382 #ifndef __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
383
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
384 /* This is the most reliable way to avoid incompatibilities
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
385 in available built-in functions on various systems. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
386 static void
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
387 __yy_memcpy (to, from, count)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
388 char *to;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
389 char *from;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
390 unsigned int count;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
391 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
392 register char *f = from;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
393 register char *t = to;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
394 register int i = count;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
395
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
396 while (i-- > 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
397 *t++ = *f++;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
398 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
399
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
400 #else /* __cplusplus */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
401
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
402 /* This is the most reliable way to avoid incompatibilities
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
403 in available built-in functions on various systems. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
404 static void
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
405 __yy_memcpy (char *to, char *from, unsigned int count)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
406 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
407 register char *t = to;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
408 register char *f = from;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
409 register int i = count;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
410
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
411 while (i-- > 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
412 *t++ = *f++;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
413 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
414
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
415 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
416 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
417
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
418 #line 217 "/usr/share/bison.simple"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
419
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
420 /* The user can define YYPARSE_PARAM as the name of an argument to be passed
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
421 into yyparse. The argument should have type void *.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
422 It should actually point to an object.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
423 Grammar actions can access the variable by casting it
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
424 to the proper pointer type. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
425
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
426 #ifdef YYPARSE_PARAM
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
427 #ifdef __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
428 #define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
429 #define YYPARSE_PARAM_DECL
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
430 #else /* not __cplusplus */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
431 #define YYPARSE_PARAM_ARG YYPARSE_PARAM
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
432 #define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
433 #endif /* not __cplusplus */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
434 #else /* not YYPARSE_PARAM */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
435 #define YYPARSE_PARAM_ARG
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
436 #define YYPARSE_PARAM_DECL
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
437 #endif /* not YYPARSE_PARAM */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
438
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
439 /* Prevent warning if -Wstrict-prototypes. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
440 #ifdef __GNUC__
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
441 #ifdef YYPARSE_PARAM
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
442 int yyparse (void *);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
443 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
444 int yyparse (void);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
445 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
446 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
447
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
448 int
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
449 yyparse(YYPARSE_PARAM_ARG)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
450 YYPARSE_PARAM_DECL
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
451 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
452 register int yystate;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
453 register int yyn;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
454 register short *yyssp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
455 register YYSTYPE *yyvsp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
456 int yyerrstatus; /* number of tokens to shift before error messages enabled */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
457 int yychar1 = 0; /* lookahead token as an internal (translated) token number */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
458
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
459 short yyssa[YYINITDEPTH]; /* the state stack */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
460 YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
461
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
462 short *yyss = yyssa; /* refer to the stacks thru separate pointers */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
463 YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
464
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
465 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
466 YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
467 YYLTYPE *yyls = yylsa;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
468 YYLTYPE *yylsp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
469
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
470 #define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
471 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
472 #define YYPOPSTACK (yyvsp--, yyssp--)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
473 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
474
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
475 int yystacksize = YYINITDEPTH;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
476 int yyfree_stacks = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
477
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
478 #ifdef YYPURE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
479 int yychar;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
480 YYSTYPE yylval;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
481 int yynerrs;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
482 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
483 YYLTYPE yylloc;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
484 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
485 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
486
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
487 YYSTYPE yyval; /* the variable used to return */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
488 /* semantic values from the action */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
489 /* routines */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
490
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
491 int yylen;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
492
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
493 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
494 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
495 fprintf(stderr, "Starting parse\n");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
496 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
497
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
498 yystate = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
499 yyerrstatus = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
500 yynerrs = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
501 yychar = YYEMPTY; /* Cause a token to be read. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
502
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
503 /* Initialize stack pointers.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
504 Waste one element of value and location stack
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
505 so that they stay on the same level as the state stack.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
506 The wasted elements are never initialized. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
507
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
508 yyssp = yyss - 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
509 yyvsp = yyvs;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
510 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
511 yylsp = yyls;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
512 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
513
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
514 /* Push a new state, which is found in yystate . */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
515 /* In all cases, when you get here, the value and location stacks
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
516 have just been pushed. so pushing a state here evens the stacks. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
517 yynewstate:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
518
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
519 *++yyssp = yystate;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
520
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
521 if (yyssp >= yyss + yystacksize - 1)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
522 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
523 /* Give user a chance to reallocate the stack */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
524 /* Use copies of these so that the &'s don't force the real ones into memory. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
525 YYSTYPE *yyvs1 = yyvs;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
526 short *yyss1 = yyss;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
527 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
528 YYLTYPE *yyls1 = yyls;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
529 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
530
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
531 /* Get the current used size of the three stacks, in elements. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
532 int size = yyssp - yyss + 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
533
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
534 #ifdef yyoverflow
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
535 /* Each stack pointer address is followed by the size of
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
536 the data in use in that stack, in bytes. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
537 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
538 /* This used to be a conditional around just the two extra args,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
539 but that might be undefined if yyoverflow is a macro. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
540 yyoverflow("parser stack overflow",
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
541 &yyss1, size * sizeof (*yyssp),
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
542 &yyvs1, size * sizeof (*yyvsp),
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
543 &yyls1, size * sizeof (*yylsp),
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
544 &yystacksize);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
545 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
546 yyoverflow("parser stack overflow",
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
547 &yyss1, size * sizeof (*yyssp),
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
548 &yyvs1, size * sizeof (*yyvsp),
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
549 &yystacksize);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
550 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
551
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
552 yyss = yyss1; yyvs = yyvs1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
553 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
554 yyls = yyls1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
555 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
556 #else /* no yyoverflow */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
557 /* Extend the stack our own way. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
558 if (yystacksize >= YYMAXDEPTH)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
559 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
560 yyerror("parser stack overflow");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
561 if (yyfree_stacks)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
562 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
563 free (yyss);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
564 free (yyvs);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
565 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
566 free (yyls);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
567 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
568 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
569 return 2;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
570 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
571 yystacksize *= 2;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
572 if (yystacksize > YYMAXDEPTH)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
573 yystacksize = YYMAXDEPTH;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
574 #ifndef YYSTACK_USE_ALLOCA
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
575 yyfree_stacks = 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
576 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
577 yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
578 __yy_memcpy ((char *)yyss, (char *)yyss1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
579 size * (unsigned int) sizeof (*yyssp));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
580 yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
581 __yy_memcpy ((char *)yyvs, (char *)yyvs1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
582 size * (unsigned int) sizeof (*yyvsp));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
583 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
584 yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
585 __yy_memcpy ((char *)yyls, (char *)yyls1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
586 size * (unsigned int) sizeof (*yylsp));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
587 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
588 #endif /* no yyoverflow */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
589
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
590 yyssp = yyss + size - 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
591 yyvsp = yyvs + size - 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
592 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
593 yylsp = yyls + size - 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
594 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
595
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
596 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
597 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
598 fprintf(stderr, "Stack size increased to %d\n", yystacksize);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
599 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
600
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
601 if (yyssp >= yyss + yystacksize - 1)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
602 YYABORT;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
603 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
604
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
605 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
606 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
607 fprintf(stderr, "Entering state %d\n", yystate);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
608 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
609
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
610 goto yybackup;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
611 yybackup:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
612
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
613 /* Do appropriate processing given the current state. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
614 /* Read a lookahead token if we need one and don't already have one. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
615 /* yyresume: */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
616
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
617 /* First try to decide what to do without reference to lookahead token. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
618
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
619 yyn = yypact[yystate];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
620 if (yyn == YYFLAG)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
621 goto yydefault;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
622
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
623 /* Not known => get a lookahead token if don't already have one. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
624
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
625 /* yychar is either YYEMPTY or YYEOF
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
626 or a valid token in external form. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
627
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
628 if (yychar == YYEMPTY)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
629 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
630 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
631 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
632 fprintf(stderr, "Reading a token: ");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
633 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
634 yychar = YYLEX;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
635 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
636
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
637 /* Convert token to internal form (in yychar1) for indexing tables with */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
638
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
639 if (yychar <= 0) /* This means end of input. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
640 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
641 yychar1 = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
642 yychar = YYEOF; /* Don't call YYLEX any more */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
643
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
644 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
645 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
646 fprintf(stderr, "Now at end of input.\n");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
647 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
648 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
649 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
650 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
651 yychar1 = YYTRANSLATE(yychar);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
652
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
653 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
654 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
655 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
656 fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
657 /* Give the individual parser a way to print the precise meaning
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
658 of a token, for further debugging info. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
659 #ifdef YYPRINT
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
660 YYPRINT (stderr, yychar, yylval);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
661 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
662 fprintf (stderr, ")\n");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
663 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
664 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
665 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
666
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
667 yyn += yychar1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
668 if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
669 goto yydefault;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
670
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
671 yyn = yytable[yyn];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
672
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
673 /* yyn is what to do for this token type in this state.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
674 Negative => reduce, -yyn is rule number.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
675 Positive => shift, yyn is new state.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
676 New state is final state => don't bother to shift,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
677 just return success.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
678 0, or most negative number => error. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
679
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
680 if (yyn < 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
681 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
682 if (yyn == YYFLAG)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
683 goto yyerrlab;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
684 yyn = -yyn;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
685 goto yyreduce;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
686 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
687 else if (yyn == 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
688 goto yyerrlab;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
689
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
690 if (yyn == YYFINAL)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
691 YYACCEPT;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
692
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
693 /* Shift the lookahead token. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
694
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
695 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
696 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
697 fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
698 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
699
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
700 /* Discard the token being shifted unless it is eof. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
701 if (yychar != YYEOF)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
702 yychar = YYEMPTY;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
703
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
704 *++yyvsp = yylval;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
705 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
706 *++yylsp = yylloc;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
707 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
708
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
709 /* count tokens shifted since error; after three, turn off error status. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
710 if (yyerrstatus) yyerrstatus--;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
711
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
712 yystate = yyn;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
713 goto yynewstate;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
714
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
715 /* Do the default action for the current state. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
716 yydefault:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
717
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
718 yyn = yydefact[yystate];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
719 if (yyn == 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
720 goto yyerrlab;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
721
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
722 /* Do a reduction. yyn is the number of a rule to reduce with. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
723 yyreduce:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
724 yylen = yyr2[yyn];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
725 if (yylen > 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
726 yyval = yyvsp[1-yylen]; /* implement default value of the action */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
727
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
728 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
729 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
730 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
731 int i;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
732
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
733 fprintf (stderr, "Reducing via rule %d (line %d), ",
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
734 yyn, yyrline[yyn]);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
735
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
736 /* Print the symbols being reduced, and their result. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
737 for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
738 fprintf (stderr, "%s ", yytname[yyrhs[i]]);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
739 fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
740 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
741 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
742
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
743
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
744 switch (yyn) {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
745
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
746 case 4:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
747 #line 59 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
748 { setup_timestamp = strtoul (yyvsp[-1], 0, 0); ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
749 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
750 case 5:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
751 #line 60 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
752 { setup_version = strdup (yyvsp[-1]); ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
753 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
754 case 7:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
755 #line 62 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
756 { yyerror ("unrecognized line in setup.ini headers (do you have the latest setup?)"); ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
757 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
758 case 11:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
759 #line 71 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
760 { new_package(yyvsp[-1]); ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
761 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
762 case 15:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
763 #line 81 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
764 { cpt->version = yyvsp[0]; ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
765 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
766 case 16:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
767 #line 82 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
768 { cp->sdesc = yyvsp[0]; ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
769 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
770 case 17:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
771 #line 83 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
772 { cp->ldesc = yyvsp[0]; ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
773 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
774 case 18:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
775 #line 84 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
776 { cpt->install = yyvsp[-1];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
777 cpt->install_size = atoi(yyvsp[0]); ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
778 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
779 case 19:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
780 #line 86 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
781 { cpt->source = yyvsp[-1];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
782 cpt->source_size = atoi(yyvsp[0]); ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
783 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
784 case 20:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
785 #line 88 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
786 { if (!strcmp (yyvsp[0], "cygwin"))
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
787 cp->type = TY_CYGWIN;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
788 else if (!strcmp (yyvsp[0], "native"))
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
789 cp->type = TY_NATIVE;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
790 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
791 cp->type = TY_GENERIC; ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
792 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
793 case 21:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
794 #line 94 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
795 { trust = TRUST_PREV; ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
796 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
797 case 22:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
798 #line 95 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
799 { trust = TRUST_CURR; ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
800 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
801 case 23:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
802 #line 96 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
803 { trust = TRUST_TEST; ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
804 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
805 case 24:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
806 #line 97 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
807 { trust = TRUST_UNKNOWN; ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
808 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
809 case 26:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
810 #line 99 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
811 { yylineno --;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
812 yyerror ("unrecognized line in package %s (do you have the latest setup?)", cp->name);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
813 yylineno ++;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
814 ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
815 break;}
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
816 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
817 /* the action file gets copied in in place of this dollarsign */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
818 #line 543 "/usr/share/bison.simple"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
819
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
820 yyvsp -= yylen;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
821 yyssp -= yylen;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
822 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
823 yylsp -= yylen;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
824 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
825
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
826 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
827 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
828 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
829 short *ssp1 = yyss - 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
830 fprintf (stderr, "state stack now");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
831 while (ssp1 != yyssp)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
832 fprintf (stderr, " %d", *++ssp1);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
833 fprintf (stderr, "\n");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
834 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
835 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
836
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
837 *++yyvsp = yyval;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
838
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
839 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
840 yylsp++;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
841 if (yylen == 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
842 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
843 yylsp->first_line = yylloc.first_line;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
844 yylsp->first_column = yylloc.first_column;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
845 yylsp->last_line = (yylsp-1)->last_line;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
846 yylsp->last_column = (yylsp-1)->last_column;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
847 yylsp->text = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
848 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
849 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
850 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
851 yylsp->last_line = (yylsp+yylen-1)->last_line;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
852 yylsp->last_column = (yylsp+yylen-1)->last_column;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
853 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
854 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
855
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
856 /* Now "shift" the result of the reduction.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
857 Determine what state that goes to,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
858 based on the state we popped back to
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
859 and the rule number reduced by. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
860
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
861 yyn = yyr1[yyn];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
862
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
863 yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
864 if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
865 yystate = yytable[yystate];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
866 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
867 yystate = yydefgoto[yyn - YYNTBASE];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
868
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
869 goto yynewstate;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
870
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
871 yyerrlab: /* here on detecting error */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
872
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
873 if (! yyerrstatus)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
874 /* If not already recovering from an error, report this error. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
875 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
876 ++yynerrs;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
877
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
878 #ifdef YYERROR_VERBOSE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
879 yyn = yypact[yystate];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
880
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
881 if (yyn > YYFLAG && yyn < YYLAST)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
882 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
883 int size = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
884 char *msg;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
885 int x, count;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
886
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
887 count = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
888 /* Start X at -yyn if nec to avoid negative indexes in yycheck. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
889 for (x = (yyn < 0 ? -yyn : 0);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
890 x < (sizeof(yytname) / sizeof(char *)); x++)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
891 if (yycheck[x + yyn] == x)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
892 size += strlen(yytname[x]) + 15, count++;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
893 msg = (char *) malloc(size + 15);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
894 if (msg != 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
895 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
896 strcpy(msg, "parse error");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
897
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
898 if (count < 5)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
899 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
900 count = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
901 for (x = (yyn < 0 ? -yyn : 0);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
902 x < (sizeof(yytname) / sizeof(char *)); x++)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
903 if (yycheck[x + yyn] == x)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
904 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
905 strcat(msg, count == 0 ? ", expecting `" : " or `");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
906 strcat(msg, yytname[x]);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
907 strcat(msg, "'");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
908 count++;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
909 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
910 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
911 yyerror(msg);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
912 free(msg);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
913 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
914 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
915 yyerror ("parse error; also virtual memory exceeded");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
916 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
917 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
918 #endif /* YYERROR_VERBOSE */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
919 yyerror("parse error");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
920 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
921
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
922 goto yyerrlab1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
923 yyerrlab1: /* here on error raised explicitly by an action */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
924
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
925 if (yyerrstatus == 3)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
926 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
927 /* if just tried and failed to reuse lookahead token after an error, discard it. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
928
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
929 /* return failure if at end of input */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
930 if (yychar == YYEOF)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
931 YYABORT;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
932
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
933 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
934 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
935 fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
936 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
937
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
938 yychar = YYEMPTY;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
939 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
940
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
941 /* Else will try to reuse lookahead token
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
942 after shifting the error token. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
943
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
944 yyerrstatus = 3; /* Each real token shifted decrements this */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
945
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
946 goto yyerrhandle;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
947
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
948 yyerrdefault: /* current state does not do anything special for the error token. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
949
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
950 #if 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
951 /* This is wrong; only states that explicitly want error tokens
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
952 should shift them. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
953 yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
954 if (yyn) goto yydefault;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
955 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
956
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
957 yyerrpop: /* pop the current state because it cannot handle the error token */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
958
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
959 if (yyssp == yyss) YYABORT;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
960 yyvsp--;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
961 yystate = *--yyssp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
962 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
963 yylsp--;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
964 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
965
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
966 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
967 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
968 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
969 short *ssp1 = yyss - 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
970 fprintf (stderr, "Error: state stack now");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
971 while (ssp1 != yyssp)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
972 fprintf (stderr, " %d", *++ssp1);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
973 fprintf (stderr, "\n");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
974 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
975 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
976
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
977 yyerrhandle:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
978
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
979 yyn = yypact[yystate];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
980 if (yyn == YYFLAG)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
981 goto yyerrdefault;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
982
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
983 yyn += YYTERROR;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
984 if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
985 goto yyerrdefault;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
986
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
987 yyn = yytable[yyn];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
988 if (yyn < 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
989 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
990 if (yyn == YYFLAG)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
991 goto yyerrpop;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
992 yyn = -yyn;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
993 goto yyreduce;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
994 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
995 else if (yyn == 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
996 goto yyerrpop;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
997
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
998 if (yyn == YYFINAL)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
999 YYACCEPT;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1000
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1001 #if YYDEBUG != 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1002 if (yydebug)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1003 fprintf(stderr, "Shifting error token, ");
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1004 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1005
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1006 *++yyvsp = yylval;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1007 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1008 *++yylsp = yylloc;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1009 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1010
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1011 yystate = yyn;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1012 goto yynewstate;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1013
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1014 yyacceptlab:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1015 /* YYACCEPT comes here. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1016 if (yyfree_stacks)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1017 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1018 free (yyss);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1019 free (yyvs);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1020 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1021 free (yyls);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1022 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1023 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1024 return 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1025
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1026 yyabortlab:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1027 /* YYABORT comes here. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1028 if (yyfree_stacks)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1029 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1030 free (yyss);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1031 free (yyvs);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1032 #ifdef YYLSP_NEEDED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1033 free (yyls);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1034 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1035 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1036 return 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1037 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1038 #line 105 "/windows/build/xemacs/xemacs/netinstall/iniparse.y"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1039
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1040
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1041 Package *package = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1042 Package *xemacs_package = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1043 int npackages = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1044 static int maxpackages = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1045
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1046 Package *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1047 new_package (char *name)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1048 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1049 if (package == 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1050 maxpackages = npackages = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1051 if (npackages >= maxpackages)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1052 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1053 maxpackages += 10;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1054 if (package)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1055 package = (Package *) realloc (package, maxpackages * sizeof (Package));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1056 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1057 package = (Package *) malloc (maxpackages * sizeof (Package));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1058 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1059 cp = package + npackages;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1060 npackages ++;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1061
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1062 memset (cp, 0, sizeof (Package));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1063 cp->name = name;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1064
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1065 trust = TRUST_CURR;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1066
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1067 return cp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1068 }