annotate netinstall/inilex.c @ 460:223736d75acb r21-2-45

Import from CVS: tag r21-2-45
author cvs
date Mon, 13 Aug 2007 11:43:24 +0200
parents 3078fd1074e8
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 /* A lexical scanner generated by flex */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
3 /* Scanner skeleton version:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
4 * $Header: /afs/informatik.uni-tuebingen.de/local/web/xemacs/xemacs-cvs/XEmacs/xemacs/netinstall/Attic/inilex.c,v 1.1.2.3 2000/12/27 09:35:04 andyp Exp $
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
5 */
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 FLEX_SCANNER
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
8 #define YY_FLEX_MAJOR_VERSION 2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
9 #define YY_FLEX_MINOR_VERSION 5
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
10
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
11 #include <stdio.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
12
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
13
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
14 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
15 #ifdef c_plusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
16 #ifndef __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
17 #define __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
18 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
19 #endif
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
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
22 #ifdef __cplusplus
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 #include <stdlib.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
25 #include <unistd.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
26
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
27 /* Use prototypes in function declarations. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
28 #define YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
29
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
30 /* The "const" storage-class-modifier is valid. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
31 #define YY_USE_CONST
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
32
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
33 #else /* ! __cplusplus */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
34
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
35 #if __STDC__
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 #define YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
38 #define YY_USE_CONST
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 #endif /* __STDC__ */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
41 #endif /* ! __cplusplus */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
42
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
43 #ifdef __TURBOC__
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
44 #pragma warn -rch
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
45 #pragma warn -use
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
46 #include <io.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
47 #include <stdlib.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
48 #define YY_USE_CONST
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
49 #define YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
50 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
51
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
52 #ifdef YY_USE_CONST
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
53 #define yyconst const
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
54 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
55 #define yyconst
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
56 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
57
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
58
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
59 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
60 #define YY_PROTO(proto) proto
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
61 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
62 #define YY_PROTO(proto) ()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
63 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
64
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
65 /* Returned upon end-of-file. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
66 #define YY_NULL 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
67
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
68 /* Promotes a possibly negative, possibly signed char to an unsigned
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
69 * integer for use as an array index. If the signed char is negative,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
70 * we want to instead treat it as an 8-bit unsigned char, hence the
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
71 * double cast.
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 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
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 /* Enter a start condition. This macro really ought to take a parameter,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
76 * but we do it the disgusting crufty way forced on us by the ()-less
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
77 * definition of BEGIN.
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 BEGIN yy_start = 1 + 2 *
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 /* Translate the current start state into a value that can be later handed
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
82 * to BEGIN to return to the state. The YYSTATE alias is for lex
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
83 * compatibility.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
84 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
85 #define YY_START ((yy_start - 1) / 2)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
86 #define YYSTATE YY_START
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
87
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
88 /* Action number for EOF rule of a given start state. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
89 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
90
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
91 /* Special action meaning "start processing a new file". */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
92 #define YY_NEW_FILE yyrestart( yyin )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
93
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
94 #define YY_END_OF_BUFFER_CHAR 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
95
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
96 /* Size of default input buffer. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
97 #define YY_BUF_SIZE 16384
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
98
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
99 typedef struct yy_buffer_state *YY_BUFFER_STATE;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
100
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
101 extern int yyleng;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
102 extern FILE *yyin, *yyout;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
103
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
104 #define EOB_ACT_CONTINUE_SCAN 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
105 #define EOB_ACT_END_OF_FILE 1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
106 #define EOB_ACT_LAST_MATCH 2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
107
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
108 /* The funky do-while in the following #define is used to turn the definition
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
109 * int a single C statement (which needs a semi-colon terminator). This
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
110 * avoids problems with code like:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
111 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
112 * if ( condition_holds )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
113 * yyless( 5 );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
114 * else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
115 * do_something_else();
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 * Prior to using the do-while the compiler would get upset at the
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
118 * "else" because it interpreted the "if" statement as being all
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
119 * done when it reached the ';' after the yyless() call.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
120 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
121
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
122 /* Return all but the first 'n' matched characters back to the input stream. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
123
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
124 #define yyless(n) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
125 do \
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 /* Undo effects of setting up yytext. */ \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
128 *yy_cp = yy_hold_char; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
129 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
130 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
131 } \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
132 while ( 0 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
133
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
134 #define unput(c) yyunput( c, yytext_ptr )
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 /* The following is because we cannot portably get our hands on size_t
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
137 * (without autoconf's help, which isn't available because we want
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
138 * flex-generated scanners to compile on their own).
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
139 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
140 typedef unsigned int yy_size_t;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
141
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
142
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
143 struct yy_buffer_state
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
144 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
145 FILE *yy_input_file;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
146
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
147 char *yy_ch_buf; /* input buffer */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
148 char *yy_buf_pos; /* current position in input buffer */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
149
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
150 /* Size of input buffer in bytes, not including room for EOB
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
151 * characters.
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 yy_size_t yy_buf_size;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
154
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
155 /* Number of characters read into yy_ch_buf, not including EOB
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
156 * characters.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
157 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
158 int yy_n_chars;
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 /* Whether we "own" the buffer - i.e., we know we created it,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
161 * and can realloc() it to grow it, and should free() it to
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
162 * delete it.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
163 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
164 int yy_is_our_buffer;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
165
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
166 /* Whether this is an "interactive" input source; if so, and
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
167 * if we're using stdio for input, then we want to use getc()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
168 * instead of fread(), to make sure we stop fetching input after
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
169 * each newline.
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 int yy_is_interactive;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
172
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
173 /* Whether we're considered to be at the beginning of a line.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
174 * If so, '^' rules will be active on the next match, otherwise
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
175 * not.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
176 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
177 int yy_at_bol;
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 /* Whether to try to fill the input buffer when we reach the
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
180 * end of it.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
181 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
182 int yy_fill_buffer;
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 int yy_buffer_status;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
185 #define YY_BUFFER_NEW 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
186 #define YY_BUFFER_NORMAL 1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
187 /* When an EOF's been seen but there's still some text to process
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
188 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
189 * shouldn't try reading from the input source any more. We might
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
190 * still have a bunch of tokens to match, though, because of
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
191 * possible backing-up.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
192 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
193 * When we actually see the EOF, we change the status to "new"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
194 * (via yyrestart()), so that the user can continue scanning by
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
195 * just pointing yyin at a new input file.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
196 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
197 #define YY_BUFFER_EOF_PENDING 2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
198 };
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
199
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
200 static YY_BUFFER_STATE yy_current_buffer = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
201
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
202 /* We provide macros for accessing buffer states in case in the
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
203 * future we want to put the buffer states in a more general
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
204 * "scanner state".
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
205 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
206 #define YY_CURRENT_BUFFER yy_current_buffer
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
207
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
208
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
209 /* yy_hold_char holds the character lost when yytext is formed. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
210 static char yy_hold_char;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
211
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
212 static int yy_n_chars; /* number of characters read into yy_ch_buf */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
213
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 int yyleng;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
216
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
217 /* Points to current character in buffer. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
218 static char *yy_c_buf_p = (char *) 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
219 static int yy_init = 1; /* whether we need to initialize */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
220 static int yy_start = 0; /* start state number */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
221
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
222 /* Flag which is used to allow yywrap()'s to do buffer switches
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
223 * instead of setting up a fresh yyin. A bit of a hack ...
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 static int yy_did_buffer_switch_on_eof;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
226
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
227 void yyrestart YY_PROTO(( FILE *input_file ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
228
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
229 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
230 void yy_load_buffer_state YY_PROTO(( void ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
231 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
232 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
233 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
234 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
235 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
236
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
237 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
238 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *str ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
239 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
240
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
241 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
242 static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
243 static void yy_flex_free YY_PROTO(( void * ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
244
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
245 #define yy_new_buffer yy_create_buffer
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
246
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
247 #define yy_set_interactive(is_interactive) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
248 { \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
249 if ( ! yy_current_buffer ) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
250 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
251 yy_current_buffer->yy_is_interactive = is_interactive; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
252 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
253
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
254 #define yy_set_bol(at_bol) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
255 { \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
256 if ( ! yy_current_buffer ) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
257 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
258 yy_current_buffer->yy_at_bol = at_bol; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
259 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
260
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
261 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
262
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
263
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
264 #define YY_USES_REJECT
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
265
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
266 #define yywrap() 1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
267 #define YY_SKIP_YYWRAP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
268 typedef unsigned char YY_CHAR;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
269 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
270 typedef int yy_state_type;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
271 extern int yylineno;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
272 int yylineno = 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
273 extern char *yytext;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
274 #define yytext_ptr yytext
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
275
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
276 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
277 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
278 static int yy_get_next_buffer YY_PROTO(( void ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
279 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
280
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
281 /* Done after the current pattern has been matched and before the
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
282 * corresponding action - sets up yytext.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
283 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
284 #define YY_DO_BEFORE_ACTION \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
285 yytext_ptr = yy_bp; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
286 yyleng = (int) (yy_cp - yy_bp); \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
287 yy_hold_char = *yy_cp; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
288 *yy_cp = '\0'; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
289 yy_c_buf_p = yy_cp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
290
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
291 #define YY_NUM_RULES 21
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
292 #define YY_END_OF_BUFFER 22
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
293 static yyconst short int yy_acclist[188] =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
294 { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
295 22, 20, 21, 17, 20, 21, 19, 21, 20, 21,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
296 20, 21, 16, 20, 21, 20, 21, 16, 20, 21,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
297 16, 20, 21, 16, 20, 21, 16, 20, 21, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
298 20, 21, 16, 20, 21, 16, 20, 21, 16, 20,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
299 21, 16, 20, 21, 16, 20, 21, 16, 20, 21,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
300 17, 1, 18, 16, 16, 16, 16, 16, 16, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
301 16, 16, 10, 16, 16, 16, 16, 16, 16, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
302 15, 16, 16, 16, 16, 16, 16, 16, 16, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
303 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
304 16, 16, 16, 16, 16, 16, 16, 16, 16, 13,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
305
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
306 15, 16, 16, 16, 16, 16, 6, 16, 16, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
307 16, 16, 16, 6, 10, 16, 11, 15, 14, 15,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
308 12, 15, 16, 9, 8, 16, 16, 16, 16, 9,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
309 10, 8, 10, 16, 16, 16, 16, 16, 16, 7,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
310 16, 16, 16, 16, 7, 10, 16, 5, 16, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
311 4, 5, 10, 16, 16, 4, 10, 16, 16, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
312 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
313 16, 16, 16, 16, 16, 16, 16, 16, 3, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
314 3, 10, 16, 16, 2, 2, 10
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
315 } ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
316
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
317 static yyconst short int yy_accept[167] =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
318 { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
319 1, 1, 1, 2, 4, 7, 9, 11, 13, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
320 18, 21, 24, 27, 30, 33, 36, 39, 42, 45,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
321 48, 51, 52, 52, 53, 53, 54, 55, 55, 55,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
322 55, 55, 55, 56, 57, 58, 59, 60, 61, 62,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
323 63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
324 72, 72, 72, 72, 73, 74, 75, 76, 77, 78,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
325 79, 80, 81, 82, 83, 84, 85, 86, 86, 86,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
326 86, 86, 87, 88, 89, 90, 91, 92, 93, 94,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
327 95, 96, 97, 98, 99, 100, 100, 102, 102, 102,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
328 103, 104, 105, 106, 107, 108, 109, 110, 111, 112,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
329
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
330 113, 114, 116, 117, 119, 121, 123, 124, 125, 126,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
331 127, 128, 129, 130, 132, 134, 135, 136, 137, 138,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
332 139, 140, 141, 142, 143, 144, 145, 147, 148, 149,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
333 150, 151, 152, 154, 155, 156, 158, 159, 160, 161,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
334 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
335 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
336 183, 184, 185, 186, 188, 188
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
337 } ;
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 static yyconst int yy_ec[256] =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
340 { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
341 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
342 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
343 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
344 1, 2, 1, 4, 5, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
345 1, 1, 1, 1, 6, 7, 7, 7, 7, 7,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
346 7, 7, 7, 7, 7, 7, 7, 8, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
347 1, 1, 1, 1, 7, 7, 7, 7, 7, 7,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
348 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
349 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
350 9, 1, 10, 1, 7, 1, 11, 7, 12, 13,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
351
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
352 14, 7, 7, 7, 15, 7, 7, 16, 17, 18,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
353 19, 20, 7, 21, 22, 23, 24, 25, 7, 26,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
354 27, 7, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
355 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
356 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
357 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
358 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
359 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
360 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
361 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
364 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
365 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
366 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
367 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
368 1, 1, 1, 1, 1
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
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
371 static yyconst int yy_meta[28] =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
372 { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
373 1, 1, 1, 1, 1, 2, 2, 3, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
374 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
375 2, 2, 2, 2, 2, 2, 2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
376 } ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
377
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
378 static yyconst short int yy_base[171] =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
379 { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
380 0, 27, 264, 265, 261, 265, 258, 258, 0, 43,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
381 242, 246, 45, 231, 243, 248, 52, 48, 54, 57,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
382 61, 253, 250, 265, 250, 265, 0, 242, 61, 62,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
383 66, 64, 229, 236, 235, 225, 223, 226, 224, 236,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
384 265, 69, 72, 75, 71, 73, 82, 74, 265, 82,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
385 86, 90, 83, 220, 220, 219, 216, 218, 224, 215,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
386 90, 93, 99, 100, 91, 102, 101, 101, 226, 104,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
387 107, 224, 222, 221, 212, 219, 222, 214, 117, 119,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
388 124, 118, 125, 220, 126, 217, 265, 216, 215, 208,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
389 215, 214, 215, 206, 265, 200, 127, 210, 209, 112,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
390
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
391 131, 265, 132, 265, 265, 265, 200, 265, 265, 119,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
392 207, 196, 138, 265, 265, 139, 205, 140, 204, 196,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
393 196, 265, 201, 200, 141, 145, 265, 199, 265, 189,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
394 184, 265, 265, 144, 142, 265, 190, 181, 152, 147,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
395 180, 186, 149, 157, 177, 180, 159, 160, 187, 179,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
396 162, 166, 179, 178, 168, 175, 161, 265, 167, 265,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
397 172, 170, 265, 265, 265, 187, 190, 175, 117, 192
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 static yyconst short int yy_def[171] =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
401 { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
402 165, 165, 165, 165, 165, 165, 166, 167, 168, 169,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
403 168, 168, 168, 168, 168, 170, 170, 170, 170, 170,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
404 170, 165, 166, 165, 167, 165, 168, 169, 169, 169,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
405 169, 169, 168, 168, 168, 168, 168, 168, 168, 170,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
406 165, 170, 170, 170, 170, 170, 170, 170, 165, 169,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
407 169, 169, 169, 168, 168, 168, 168, 168, 168, 168,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
408 170, 170, 170, 170, 170, 170, 170, 169, 169, 169,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
409 169, 168, 168, 168, 168, 168, 168, 168, 170, 170,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
410 170, 170, 170, 170, 170, 169, 165, 169, 169, 168,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
411 168, 168, 168, 168, 165, 168, 170, 170, 170, 170,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
412
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
413 170, 165, 170, 165, 165, 165, 168, 165, 165, 168,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
414 168, 168, 170, 165, 165, 170, 170, 170, 168, 168,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
415 168, 165, 168, 170, 170, 170, 165, 170, 165, 168,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
416 168, 165, 165, 170, 170, 165, 168, 168, 170, 170,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
417 168, 168, 170, 170, 168, 168, 170, 170, 168, 168,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
418 170, 170, 168, 168, 170, 170, 168, 165, 170, 165,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
419 168, 170, 165, 165, 0, 165, 165, 165, 165, 165
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
420 } ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
421
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
422 static yyconst short int yy_nxt[293] =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
423 { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
424 4, 5, 6, 7, 8, 9, 9, 4, 10, 4,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
425 9, 9, 9, 9, 11, 12, 9, 9, 9, 9,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
426 9, 13, 14, 9, 15, 9, 9, 4, 5, 6,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
427 7, 8, 16, 16, 4, 10, 4, 16, 16, 16,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
428 16, 17, 18, 16, 16, 16, 16, 16, 19, 20,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
429 16, 21, 16, 16, 29, 41, 30, 35, 36, 41,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
430 43, 41, 31, 37, 41, 32, 44, 45, 41, 42,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
431 49, 49, 46, 49, 48, 49, 41, 53, 41, 41,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
432 41, 41, 41, 47, 50, 62, 52, 51, 63, 41,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
433 61, 49, 49, 64, 67, 49, 65, 41, 41, 49,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
434
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
435 41, 66, 68, 70, 71, 69, 41, 41, 41, 41,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
436 49, 83, 79, 49, 80, 84, 49, 116, 28, 41,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
437 81, 86, 85, 82, 41, 41, 41, 97, 88, 89,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
438 98, 41, 41, 41, 41, 99, 101, 100, 41, 41,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
439 103, 120, 113, 121, 117, 41, 41, 41, 41, 41,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
440 118, 41, 41, 124, 41, 134, 41, 128, 135, 41,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
441 139, 125, 140, 126, 41, 143, 41, 41, 144, 41,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
442 147, 148, 155, 41, 41, 41, 27, 164, 152, 163,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
443 161, 151, 160, 156, 159, 158, 162, 23, 23, 23,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
444 25, 25, 25, 40, 40, 157, 154, 153, 150, 149,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
445
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
446 146, 145, 142, 141, 138, 137, 136, 133, 132, 131,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
447 130, 129, 127, 123, 122, 119, 115, 114, 112, 111,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
448 110, 109, 108, 107, 106, 105, 104, 102, 96, 95,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
449 94, 93, 92, 91, 90, 87, 78, 77, 76, 75,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
450 74, 73, 72, 41, 60, 59, 58, 57, 56, 55,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
451 54, 49, 26, 24, 22, 41, 39, 38, 34, 33,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
452 26, 24, 22, 165, 3, 165, 165, 165, 165, 165,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
453 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
454 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
455 165, 165
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
456
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
457 } ;
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 static yyconst short int yy_chk[293] =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
460 { 0,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
461 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
462 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
463 1, 1, 1, 1, 1, 1, 1, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
464 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
465 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
466 2, 2, 2, 2, 10, 18, 10, 13, 13, 17,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
467 18, 19, 10, 13, 20, 10, 19, 19, 21, 17,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
468 29, 30, 19, 32, 21, 31, 42, 32, 45, 43,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
469 46, 48, 44, 20, 29, 43, 31, 30, 44, 47,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
470 42, 50, 53, 45, 48, 51, 46, 61, 65, 52,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
471
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
472 62, 47, 50, 52, 53, 51, 63, 64, 67, 66,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
473 68, 65, 61, 70, 62, 66, 71, 100, 169, 100,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
474 63, 68, 67, 64, 79, 82, 80, 79, 70, 71,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
475 80, 81, 83, 85, 97, 81, 83, 82, 101, 103,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
476 85, 110, 97, 110, 101, 113, 116, 118, 125, 135,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
477 103, 134, 126, 113, 140, 125, 143, 118, 126, 139,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
478 134, 116, 135, 116, 144, 139, 147, 148, 140, 151,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
479 143, 144, 151, 152, 159, 155, 168, 162, 148, 161,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
480 157, 147, 156, 152, 155, 154, 159, 166, 166, 166,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
481 167, 167, 167, 170, 170, 153, 150, 149, 146, 145,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
482
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
483 142, 141, 138, 137, 131, 130, 128, 124, 123, 121,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
484 120, 119, 117, 112, 111, 107, 99, 98, 96, 94,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
485 93, 92, 91, 90, 89, 88, 86, 84, 78, 77,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
486 76, 75, 74, 73, 72, 69, 60, 59, 58, 57,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
487 56, 55, 54, 40, 39, 38, 37, 36, 35, 34,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
488 33, 28, 25, 23, 22, 16, 15, 14, 12, 11,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
489 8, 7, 5, 3, 165, 165, 165, 165, 165, 165,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
490 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
491 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
492 165, 165
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
493
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
494 } ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
495
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
496 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
497 static char *yy_full_match;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
498 static int yy_lp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
499 #define REJECT \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
500 { \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
501 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
502 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
503 ++yy_lp; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
504 goto find_rule; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
505 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
506 #define yymore() yymore_used_but_not_detected
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
507 #define YY_MORE_ADJ 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
508 char *yytext;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
509 #line 1 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
510 #define INITIAL 0
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
511 #line 2 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
512 /*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
513 * Copyright (c) 2000, Red Hat, Inc.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
514 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
515 * This program is free software; you can redistribute it and/or modify
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
516 * 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
517 * the Free Software Foundation; either version 2 of the License, or
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
518 * (at your option) any later version.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
519 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
520 * A copy of the GNU General Public License can be found at
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
521 * http://www.gnu.org/
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 * Written by DJ Delorie <dj@cygnus.com>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
524 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
525 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
526
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
527 /* tokenize the setup.ini files. We parse a string which we've
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
528 previously downloaded. The program must call ini_init() to specify
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
529 that string. */
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 #include "win32.h"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
532 #include <string.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
533 #include <stdlib.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
534
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
535 #include "ini.h"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
536 #include "iniparse.h"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
537
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
538 #define YY_INPUT(buf,result,max_size) { result = ini_getchar(buf, max_size); }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
539
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
540 static int ini_getchar(char *buf, int max_size);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
541 static void ignore_line ();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
542
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
543 /*%option debug */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
544 #define YY_NEVER_INTERACTIVE 1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
545 #line 546 "lex.yy.c"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
546
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
547 /* Macros after this point can all be overridden by user definitions in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
548 * section 1.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
549 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
550
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
551 #ifndef YY_SKIP_YYWRAP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
552 #ifdef __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
553 extern "C" int yywrap YY_PROTO(( void ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
554 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
555 extern int yywrap YY_PROTO(( void ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
556 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
557 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
558
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
559 #ifndef YY_NO_UNPUT
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
560 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
561 #endif
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 #ifndef yytext_ptr
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
564 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
565 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
566
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
567 #ifndef YY_NO_INPUT
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
568 #ifdef __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
569 static int yyinput YY_PROTO(( void ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
570 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
571 static int input YY_PROTO(( void ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
572 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
573 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
574
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
575 #if YY_STACK_USED
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
576 static int yy_start_stack_ptr = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
577 static int yy_start_stack_depth = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
578 static int *yy_start_stack = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
579 #ifndef YY_NO_PUSH_STATE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
580 static void yy_push_state YY_PROTO(( int new_state ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
581 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
582 #ifndef YY_NO_POP_STATE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
583 static void yy_pop_state YY_PROTO(( void ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
584 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
585 #ifndef YY_NO_TOP_STATE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
586 static int yy_top_state YY_PROTO(( void ));
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
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
589 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
590 #define YY_NO_PUSH_STATE 1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
591 #define YY_NO_POP_STATE 1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
592 #define YY_NO_TOP_STATE 1
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
593 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
594
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
595 #ifdef YY_MALLOC_DECL
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
596 YY_MALLOC_DECL
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
597 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
598 #if __STDC__
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
599 #ifndef __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
600 #include <stdlib.h>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
601 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
602 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
603 /* Just try to get by without declaring the routines. This will fail
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
604 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
605 * or sizeof(void*) != sizeof(int).
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
606 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
607 #endif
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 /* Amount of stuff to slurp up with each read. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
611 #ifndef YY_READ_BUF_SIZE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
612 #define YY_READ_BUF_SIZE 8192
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
613 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
614
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
615 /* Copy whatever the last rule matched to the standard output. */
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 #ifndef ECHO
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
618 /* This used to be an fputs(), but since the string might contain NUL's,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
619 * we now use fwrite().
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
620 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
621 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
622 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
623
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
624 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
625 * is returned in "result".
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
626 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
627 #ifndef YY_INPUT
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
628 #define YY_INPUT(buf,result,max_size) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
629 if ( yy_current_buffer->yy_is_interactive ) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
630 { \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
631 int c = '*', n; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
632 for ( n = 0; n < max_size && \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
633 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
634 buf[n] = (char) c; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
635 if ( c == '\n' ) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
636 buf[n++] = (char) c; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
637 if ( c == EOF && ferror( yyin ) ) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
638 YY_FATAL_ERROR( "input in flex scanner failed" ); \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
639 result = n; \
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 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
642 && ferror( yyin ) ) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
643 YY_FATAL_ERROR( "input in flex scanner failed" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
644 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
645
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
646 /* No semi-colon after return; correct usage is to write "yyterminate();" -
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
647 * we don't want an extra ';' after the "return" because that will cause
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
648 * some compilers to complain about unreachable statements.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
649 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
650 #ifndef yyterminate
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
651 #define yyterminate() return YY_NULL
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
652 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
653
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
654 /* Number of entries by which start-condition stack grows. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
655 #ifndef YY_START_STACK_INCR
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
656 #define YY_START_STACK_INCR 25
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
657 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
658
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
659 /* Report a fatal error. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
660 #ifndef YY_FATAL_ERROR
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
661 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
662 #endif
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 /* Default declaration of generated scanner - a define so the user can
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
665 * easily add parameters.
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 #ifndef YY_DECL
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
668 #define YY_DECL int yylex YY_PROTO(( void ))
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
669 #endif
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 /* Code executed at the beginning of each rule, after yytext and yyleng
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
672 * have been set up.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
673 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
674 #ifndef YY_USER_ACTION
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
675 #define YY_USER_ACTION
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
676 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
677
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
678 /* Code executed at the end of each rule. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
679 #ifndef YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
680 #define YY_BREAK break;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
681 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
682
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
683 #define YY_RULE_SETUP \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
684 if ( yyleng > 0 ) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
685 yy_current_buffer->yy_at_bol = \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
686 (yytext[yyleng - 1] == '\n'); \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
687 YY_USER_ACTION
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
688
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
689 YY_DECL
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
690 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
691 register yy_state_type yy_current_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
692 register char *yy_cp, *yy_bp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
693 register int yy_act;
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 #line 42 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
696
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
697
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
698 #line 699 "lex.yy.c"
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 if ( yy_init )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
701 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
702 yy_init = 0;
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 #ifdef YY_USER_INIT
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
705 YY_USER_INIT;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
706 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
707
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
708 if ( ! yy_start )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
709 yy_start = 1; /* first start state */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
710
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
711 if ( ! yyin )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
712 yyin = stdin;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
713
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
714 if ( ! yyout )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
715 yyout = stdout;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
716
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
717 if ( ! yy_current_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
718 yy_current_buffer =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
719 yy_create_buffer( yyin, YY_BUF_SIZE );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
720
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
721 yy_load_buffer_state();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
722 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
723
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
724 while ( 1 ) /* loops until end-of-file is reached */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
725 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
726 yy_cp = yy_c_buf_p;
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 /* Support of yytext. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
729 *yy_cp = yy_hold_char;
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 /* yy_bp points to the position in yy_ch_buf of the start of
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
732 * the current run.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
733 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
734 yy_bp = yy_cp;
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 yy_current_state = yy_start;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
737 yy_current_state += YY_AT_BOL();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
738 yy_state_ptr = yy_state_buf;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
739 *yy_state_ptr++ = yy_current_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
740 yy_match:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
741 do
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 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
744 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
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 yy_current_state = (int) yy_def[yy_current_state];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
747 if ( yy_current_state >= 166 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
748 yy_c = yy_meta[(unsigned int) yy_c];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
749 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
750 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
751 *yy_state_ptr++ = yy_current_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
752 ++yy_cp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
753 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
754 while ( yy_base[yy_current_state] != 265 );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
755
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
756 yy_find_action:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
757 yy_current_state = *--yy_state_ptr;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
758 yy_lp = yy_accept[yy_current_state];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
759 find_rule: /* we branch to this label when backing up */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
760 for ( ; ; ) /* until we find what rule we matched */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
761 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
762 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
763 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
764 yy_act = yy_acclist[yy_lp];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
765 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
766 yy_full_match = yy_cp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
767 break;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
768 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
769 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
770 --yy_cp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
771 yy_current_state = *--yy_state_ptr;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
772 yy_lp = yy_accept[yy_current_state];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
773 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
774
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
775 YY_DO_BEFORE_ACTION;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
776
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
777 if ( yy_act != YY_END_OF_BUFFER )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
778 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
779 int yyl;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
780 for ( yyl = 0; yyl < yyleng; ++yyl )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
781 if ( yytext[yyl] == '\n' )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
782 ++yylineno;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
783 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
784
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
785 do_action: /* This label is used only to access EOF actions. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
786
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
787
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
788 switch ( yy_act )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
789 { /* beginning of action switch */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
790 case 1:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
791 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
792 #line 44 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
793 { yylval = strdup (yytext+1);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
794 yylval[strlen (yylval)-1] = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
795 return STRING; }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
796 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
797 case 2:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
798 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
799 #line 48 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
800 return SETUP_TIMESTAMP;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
801 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
802 case 3:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
803 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
804 #line 49 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
805 return SETUP_VERSION;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
806 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
807 case 4:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
808 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
809 #line 50 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
810 return VERSION;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
811 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
812 case 5:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
813 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
814 #line 51 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
815 return INSTALL;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
816 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
817 case 6:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
818 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
819 #line 52 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
820 return TYPE;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
821 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
822 case 7:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
823 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
824 #line 53 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
825 return SOURCE;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
826 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
827 case 8:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
828 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
829 #line 54 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
830 return SDESC;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
831 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
832 case 9:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
833 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
834 #line 55 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
835 return LDESC;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
836 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
837 case 10:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
838 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
839 #line 57 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
840 ignore_line ();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
841 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
842 case 11:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
843 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
844 #line 59 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
845 return T_CURR;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
846 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
847 case 12:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
848 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
849 #line 60 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
850 return T_TEST;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
851 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
852 case 13:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
853 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
854 #line 61 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
855 return T_TEST;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
856 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
857 case 14:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
858 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
859 #line 62 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
860 return T_PREV;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
861 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
862 case 15:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
863 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
864 #line 63 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
865 return T_UNKNOWN;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
866 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
867 case 16:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
868 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
869 #line 65 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
870 { yylval = strdup (yytext);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
871 return STRING; }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
872 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
873 case 17:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
874 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
875 #line 68 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
876 /* do nothing */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
877 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
878 case 18:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
879 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
880 #line 70 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
881 /* ignore comments */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
882 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
883 case 19:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
884 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
885 #line 72 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
886 { return yytext[0]; }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
887 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
888 case 20:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
889 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
890 #line 73 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
891 { return yytext[0]; }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
892 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
893 case 21:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
894 YY_RULE_SETUP
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
895 #line 75 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
896 ECHO;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
897 YY_BREAK
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
898 #line 899 "lex.yy.c"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
899 case YY_STATE_EOF(INITIAL):
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
900 yyterminate();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
901
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
902 case YY_END_OF_BUFFER:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
903 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
904 /* Amount of text matched not including the EOB char. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
905 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
906
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
907 /* Undo the effects of YY_DO_BEFORE_ACTION. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
908 *yy_cp = yy_hold_char;
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 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
911 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
912 /* We're scanning a new file or input source. It's
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
913 * possible that this happened because the user
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
914 * just pointed yyin at a new source and called
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
915 * yylex(). If so, then we have to assure
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
916 * consistency between yy_current_buffer and our
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
917 * globals. Here is the right place to do so, because
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
918 * this is the first action (other than possibly a
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
919 * back-up) that will match for the new input source.
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 yy_n_chars = yy_current_buffer->yy_n_chars;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
922 yy_current_buffer->yy_input_file = yyin;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
923 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
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
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
926 /* Note that here we test for yy_c_buf_p "<=" to the position
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
927 * of the first EOB in the buffer, since yy_c_buf_p will
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
928 * already have been incremented past the NUL character
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
929 * (since all states make transitions on EOB to the
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
930 * end-of-buffer state). Contrast this with the test
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
931 * in input().
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 ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
934 { /* This was really a NUL. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
935 yy_state_type yy_next_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
936
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
937 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
938
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
939 yy_current_state = yy_get_previous_state();
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 /* Okay, we're now positioned to make the NUL
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
942 * transition. We couldn't have
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
943 * yy_get_previous_state() go ahead and do it
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
944 * for us because it doesn't know how to deal
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
945 * with the possibility of jamming (and we don't
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
946 * want to build jamming into it because then it
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
947 * will run more slowly).
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
948 */
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 yy_next_state = yy_try_NUL_trans( yy_current_state );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
951
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
952 yy_bp = yytext_ptr + YY_MORE_ADJ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
953
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
954 if ( yy_next_state )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
955 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
956 /* Consume the NUL. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
957 yy_cp = ++yy_c_buf_p;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
958 yy_current_state = yy_next_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
959 goto yy_match;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
960 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
961
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
962 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
963 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
964 yy_cp = yy_c_buf_p;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
965 goto yy_find_action;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
966 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
967 }
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 else switch ( yy_get_next_buffer() )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
970 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
971 case EOB_ACT_END_OF_FILE:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
972 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
973 yy_did_buffer_switch_on_eof = 0;
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 if ( yywrap() )
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 /* Note: because we've taken care in
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
978 * yy_get_next_buffer() to have set up
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
979 * yytext, we can now set up
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
980 * yy_c_buf_p so that if some total
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
981 * hoser (like flex itself) wants to
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
982 * call the scanner after we return the
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
983 * YY_NULL, it'll still work - another
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
984 * YY_NULL will get returned.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
985 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
986 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
987
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
988 yy_act = YY_STATE_EOF(YY_START);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
989 goto do_action;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
990 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
991
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
992 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
993 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
994 if ( ! yy_did_buffer_switch_on_eof )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
995 YY_NEW_FILE;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
996 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
997 break;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
998 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
999
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1000 case EOB_ACT_CONTINUE_SCAN:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1001 yy_c_buf_p =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1002 yytext_ptr + yy_amount_of_matched_text;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1003
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1004 yy_current_state = yy_get_previous_state();
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 yy_cp = yy_c_buf_p;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1007 yy_bp = yytext_ptr + YY_MORE_ADJ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1008 goto yy_match;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1009
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1010 case EOB_ACT_LAST_MATCH:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1011 yy_c_buf_p =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1012 &yy_current_buffer->yy_ch_buf[yy_n_chars];
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 yy_current_state = yy_get_previous_state();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1015
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1016 yy_cp = yy_c_buf_p;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1017 yy_bp = yytext_ptr + YY_MORE_ADJ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1018 goto yy_find_action;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1019 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1020 break;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1021 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1022
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1023 default:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1024 YY_FATAL_ERROR(
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1025 "fatal flex scanner internal error--no action found" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1026 } /* end of action switch */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1027 } /* end of scanning one token */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1028 } /* end of yylex */
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
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1031 /* yy_get_next_buffer - try to read in a new buffer
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1032 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1033 * Returns a code representing an action:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1034 * EOB_ACT_LAST_MATCH -
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1035 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1036 * EOB_ACT_END_OF_FILE - end of file
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
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1039 static int yy_get_next_buffer()
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 register char *dest = yy_current_buffer->yy_ch_buf;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1042 register char *source = yytext_ptr;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1043 register int number_to_move, i;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1044 int ret_val;
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 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1047 YY_FATAL_ERROR(
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1048 "fatal flex scanner internal error--end of buffer missed" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1049
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1050 if ( yy_current_buffer->yy_fill_buffer == 0 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1051 { /* Don't try to fill the buffer, so this is an EOF. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1052 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1053 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1054 /* We matched a singled characater, the EOB, so
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1055 * treat this as a final EOF.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1056 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1057 return EOB_ACT_END_OF_FILE;
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
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1060 else
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 /* We matched some text prior to the EOB, first
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1063 * process it.
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 return EOB_ACT_LAST_MATCH;
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 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1068
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1069 /* Try to read more data. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1070
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1071 /* First move last chars to start of buffer. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1072 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1073
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1074 for ( i = 0; i < number_to_move; ++i )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1075 *(dest++) = *(source++);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1076
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1077 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1078 /* don't do the read, it's not guaranteed to return an EOF,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1079 * just force an EOF
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1080 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1081 yy_n_chars = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1082
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1083 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1084 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1085 int num_to_read =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1086 yy_current_buffer->yy_buf_size - number_to_move - 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1087
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1088 while ( num_to_read <= 0 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1089 { /* Not enough room in the buffer - grow it. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1090 #ifdef YY_USES_REJECT
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1091 YY_FATAL_ERROR(
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1092 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1093 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1094
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1095 /* just a shorter name for the current buffer */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1096 YY_BUFFER_STATE b = yy_current_buffer;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1097
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1098 int yy_c_buf_p_offset =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1099 (int) (yy_c_buf_p - b->yy_ch_buf);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1100
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1101 if ( b->yy_is_our_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1102 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1103 int new_size = b->yy_buf_size * 2;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1104
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1105 if ( new_size <= 0 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1106 b->yy_buf_size += b->yy_buf_size / 8;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1107 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1108 b->yy_buf_size *= 2;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1109
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1110 b->yy_ch_buf = (char *)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1111 /* Include room in for 2 EOB chars. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1112 yy_flex_realloc( (void *) b->yy_ch_buf,
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1113 b->yy_buf_size + 2 );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1114 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1115 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1116 /* Can't grow it, we don't own it. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1117 b->yy_ch_buf = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1118
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1119 if ( ! b->yy_ch_buf )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1120 YY_FATAL_ERROR(
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1121 "fatal error - scanner input buffer overflow" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1122
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1123 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1124
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1125 num_to_read = yy_current_buffer->yy_buf_size -
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1126 number_to_move - 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1127 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1128 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1129
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1130 if ( num_to_read > YY_READ_BUF_SIZE )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1131 num_to_read = YY_READ_BUF_SIZE;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1132
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1133 /* Read in more data. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1134 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1135 yy_n_chars, num_to_read );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1136 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1137
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1138 if ( yy_n_chars == 0 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1139 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1140 if ( number_to_move == YY_MORE_ADJ )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1141 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1142 ret_val = EOB_ACT_END_OF_FILE;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1143 yyrestart( yyin );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1144 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1145
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1146 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1147 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1148 ret_val = EOB_ACT_LAST_MATCH;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1149 yy_current_buffer->yy_buffer_status =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1150 YY_BUFFER_EOF_PENDING;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1151 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1152 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1153
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1154 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1155 ret_val = EOB_ACT_CONTINUE_SCAN;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1156
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1157 yy_n_chars += number_to_move;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1158 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1159 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1160
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1161 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1162
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1163 return ret_val;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1164 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1165
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1166
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1167 /* yy_get_previous_state - get the state just before the EOB char was reached */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1168
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1169 static yy_state_type yy_get_previous_state()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1170 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1171 register yy_state_type yy_current_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1172 register char *yy_cp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1173
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1174 yy_current_state = yy_start;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1175 yy_current_state += YY_AT_BOL();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1176 yy_state_ptr = yy_state_buf;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1177 *yy_state_ptr++ = yy_current_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1178
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1179 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1180 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1181 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1182 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1183 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1184 yy_current_state = (int) yy_def[yy_current_state];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1185 if ( yy_current_state >= 166 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1186 yy_c = yy_meta[(unsigned int) yy_c];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1187 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1188 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1189 *yy_state_ptr++ = yy_current_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1190 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1191
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1192 return yy_current_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1193 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1194
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1195
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1196 /* yy_try_NUL_trans - try to make a transition on the NUL character
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1197 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1198 * synopsis
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1199 * next_state = yy_try_NUL_trans( current_state );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1200 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1201
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1202 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1203 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1204 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1205 static yy_state_type yy_try_NUL_trans( yy_current_state )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1206 yy_state_type yy_current_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1207 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1208 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1209 register int yy_is_jam;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1210
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1211 register YY_CHAR yy_c = 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1212 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1213 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1214 yy_current_state = (int) yy_def[yy_current_state];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1215 if ( yy_current_state >= 166 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1216 yy_c = yy_meta[(unsigned int) yy_c];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1217 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1218 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1219 *yy_state_ptr++ = yy_current_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1220 yy_is_jam = (yy_current_state == 165);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1221
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1222 return yy_is_jam ? 0 : yy_current_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1223 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1224
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1225
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1226 #ifndef YY_NO_UNPUT
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1227 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1228 static void yyunput( int c, register char *yy_bp )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1229 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1230 static void yyunput( c, yy_bp )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1231 int c;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1232 register char *yy_bp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1233 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1234 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1235 register char *yy_cp = yy_c_buf_p;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1236
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1237 /* undo effects of setting up yytext */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1238 *yy_cp = yy_hold_char;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1239
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1240 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1241 { /* need to shift things up to make room */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1242 /* +2 for EOB chars. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1243 register int number_to_move = yy_n_chars + 2;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1244 register char *dest = &yy_current_buffer->yy_ch_buf[
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1245 yy_current_buffer->yy_buf_size + 2];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1246 register char *source =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1247 &yy_current_buffer->yy_ch_buf[number_to_move];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1248
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1249 while ( source > yy_current_buffer->yy_ch_buf )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1250 *--dest = *--source;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1251
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1252 yy_cp += (int) (dest - source);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1253 yy_bp += (int) (dest - source);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1254 yy_n_chars = yy_current_buffer->yy_buf_size;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1255
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1256 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1257 YY_FATAL_ERROR( "flex scanner push-back overflow" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1258 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1259
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1260 *--yy_cp = (char) c;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1261
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1262 if ( c == '\n' )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1263 --yylineno;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1264
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1265 yytext_ptr = yy_bp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1266 yy_hold_char = *yy_cp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1267 yy_c_buf_p = yy_cp;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1268 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1269 #endif /* ifndef YY_NO_UNPUT */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1270
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1271
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1272 #ifdef __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1273 static int yyinput()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1274 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1275 static int input()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1276 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1277 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1278 int c;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1279
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1280 *yy_c_buf_p = yy_hold_char;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1281
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1282 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1283 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1284 /* yy_c_buf_p now points to the character we want to return.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1285 * If this occurs *before* the EOB characters, then it's a
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1286 * valid NUL; if not, then we've hit the end of the buffer.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1287 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1288 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1289 /* This was really a NUL. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1290 *yy_c_buf_p = '\0';
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1291
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1292 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1293 { /* need more input */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1294 yytext_ptr = yy_c_buf_p;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1295 ++yy_c_buf_p;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1296
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1297 switch ( yy_get_next_buffer() )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1298 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1299 case EOB_ACT_END_OF_FILE:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1300 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1301 if ( yywrap() )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1302 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1303 yy_c_buf_p =
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1304 yytext_ptr + YY_MORE_ADJ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1305 return EOF;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1306 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1307
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1308 if ( ! yy_did_buffer_switch_on_eof )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1309 YY_NEW_FILE;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1310 #ifdef __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1311 return yyinput();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1312 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1313 return input();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1314 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1315 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1316
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1317 case EOB_ACT_CONTINUE_SCAN:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1318 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1319 break;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1320
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1321 case EOB_ACT_LAST_MATCH:
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1322 #ifdef __cplusplus
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1323 YY_FATAL_ERROR(
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1324 "unexpected last match in yyinput()" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1325 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1326 YY_FATAL_ERROR(
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1327 "unexpected last match in input()" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1328 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1329 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1330 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1331 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1332
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1333 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1334 *yy_c_buf_p = '\0'; /* preserve yytext */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1335 yy_hold_char = *++yy_c_buf_p;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1336
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1337 yy_current_buffer->yy_at_bol = (c == '\n');
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1338 if ( yy_current_buffer->yy_at_bol )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1339 ++yylineno;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1340
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1341 return c;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1342 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1343
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1344
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1345 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1346 void yyrestart( FILE *input_file )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1347 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1348 void yyrestart( input_file )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1349 FILE *input_file;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1350 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1351 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1352 if ( ! yy_current_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1353 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1354
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1355 yy_init_buffer( yy_current_buffer, input_file );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1356 yy_load_buffer_state();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1357 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1358
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1359
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1360 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1361 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1362 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1363 void yy_switch_to_buffer( new_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1364 YY_BUFFER_STATE new_buffer;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1365 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1366 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1367 if ( yy_current_buffer == new_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1368 return;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1369
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1370 if ( yy_current_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1371 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1372 /* Flush out information for old buffer. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1373 *yy_c_buf_p = yy_hold_char;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1374 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1375 yy_current_buffer->yy_n_chars = yy_n_chars;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1376 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1377
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1378 yy_current_buffer = new_buffer;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1379 yy_load_buffer_state();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1380
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1381 /* We don't actually know whether we did this switch during
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1382 * EOF (yywrap()) processing, but the only time this flag
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1383 * is looked at is after yywrap() is called, so it's safe
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1384 * to go ahead and always set it.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1385 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1386 yy_did_buffer_switch_on_eof = 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1387 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1388
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1389
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1390 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1391 void yy_load_buffer_state( void )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1392 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1393 void yy_load_buffer_state()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1394 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1395 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1396 yy_n_chars = yy_current_buffer->yy_n_chars;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1397 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1398 yyin = yy_current_buffer->yy_input_file;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1399 yy_hold_char = *yy_c_buf_p;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1400 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1401
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1402
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1403 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1404 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1405 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1406 YY_BUFFER_STATE yy_create_buffer( file, size )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1407 FILE *file;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1408 int size;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1409 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1410 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1411 YY_BUFFER_STATE b;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1412
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1413 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1414 if ( ! b )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1415 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1416
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1417 b->yy_buf_size = size;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1418
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1419 /* yy_ch_buf has to be 2 characters longer than the size given because
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1420 * we need to put in 2 end-of-buffer characters.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1421 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1422 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1423 if ( ! b->yy_ch_buf )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1424 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1425
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1426 b->yy_is_our_buffer = 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1427
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1428 yy_init_buffer( b, file );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1429
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1430 return b;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1431 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1432
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1433
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1434 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1435 void yy_delete_buffer( YY_BUFFER_STATE b )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1436 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1437 void yy_delete_buffer( b )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1438 YY_BUFFER_STATE b;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1439 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1440 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1441 if ( ! b )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1442 return;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1443
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1444 if ( b == yy_current_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1445 yy_current_buffer = (YY_BUFFER_STATE) 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1446
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1447 if ( b->yy_is_our_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1448 yy_flex_free( (void *) b->yy_ch_buf );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1449
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1450 yy_flex_free( (void *) b );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1451 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1452
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1453
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1454 #ifndef YY_ALWAYS_INTERACTIVE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1455 #ifndef YY_NEVER_INTERACTIVE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1456 extern int isatty YY_PROTO(( int ));
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1457 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1458 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1459
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1460 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1461 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1462 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1463 void yy_init_buffer( b, file )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1464 YY_BUFFER_STATE b;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1465 FILE *file;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1466 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1467
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1468
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1469 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1470 yy_flush_buffer( b );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1471
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1472 b->yy_input_file = file;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1473 b->yy_fill_buffer = 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1474
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1475 #if YY_ALWAYS_INTERACTIVE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1476 b->yy_is_interactive = 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1477 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1478 #if YY_NEVER_INTERACTIVE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1479 b->yy_is_interactive = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1480 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1481 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1482 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1483 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1484 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1485
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1486
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1487 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1488 void yy_flush_buffer( YY_BUFFER_STATE b )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1489 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1490 void yy_flush_buffer( b )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1491 YY_BUFFER_STATE b;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1492 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1493
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1494 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1495 b->yy_n_chars = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1496
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1497 /* We always need two end-of-buffer characters. The first causes
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1498 * a transition to the end-of-buffer state. The second causes
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1499 * a jam in that state.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1500 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1501 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1502 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1503
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1504 b->yy_buf_pos = &b->yy_ch_buf[0];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1505
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1506 b->yy_at_bol = 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1507 b->yy_buffer_status = YY_BUFFER_NEW;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1508
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1509 if ( b == yy_current_buffer )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1510 yy_load_buffer_state();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1511 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1512
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1513
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1514 #ifndef YY_NO_SCAN_BUFFER
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1515 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1516 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1517 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1518 YY_BUFFER_STATE yy_scan_buffer( base, size )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1519 char *base;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1520 yy_size_t size;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1521 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1522 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1523 YY_BUFFER_STATE b;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1524
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1525 if ( size < 2 ||
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1526 base[size-2] != YY_END_OF_BUFFER_CHAR ||
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1527 base[size-1] != YY_END_OF_BUFFER_CHAR )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1528 /* They forgot to leave room for the EOB's. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1529 return 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1530
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1531 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1532 if ( ! b )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1533 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1534
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1535 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1536 b->yy_buf_pos = b->yy_ch_buf = base;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1537 b->yy_is_our_buffer = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1538 b->yy_input_file = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1539 b->yy_n_chars = b->yy_buf_size;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1540 b->yy_is_interactive = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1541 b->yy_at_bol = 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1542 b->yy_fill_buffer = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1543 b->yy_buffer_status = YY_BUFFER_NEW;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1544
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1545 yy_switch_to_buffer( b );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1546
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1547 return b;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1548 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1549 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1550
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1551
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1552 #ifndef YY_NO_SCAN_STRING
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1553 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1554 YY_BUFFER_STATE yy_scan_string( yyconst char *str )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1555 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1556 YY_BUFFER_STATE yy_scan_string( str )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1557 yyconst char *str;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1558 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1559 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1560 int len;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1561 for ( len = 0; str[len]; ++len )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1562 ;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1563
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1564 return yy_scan_bytes( str, len );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1565 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1566 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1567
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1568
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1569 #ifndef YY_NO_SCAN_BYTES
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1570 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1571 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1572 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1573 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1574 yyconst char *bytes;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1575 int len;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1576 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1577 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1578 YY_BUFFER_STATE b;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1579 char *buf;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1580 yy_size_t n;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1581 int i;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1582
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1583 /* Get memory for full buffer, including space for trailing EOB's. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1584 n = len + 2;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1585 buf = (char *) yy_flex_alloc( n );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1586 if ( ! buf )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1587 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1588
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1589 for ( i = 0; i < len; ++i )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1590 buf[i] = bytes[i];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1591
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1592 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1593
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1594 b = yy_scan_buffer( buf, n );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1595 if ( ! b )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1596 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1597
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1598 /* It's okay to grow etc. this buffer, and we should throw it
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1599 * away when we're done.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1600 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1601 b->yy_is_our_buffer = 1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1602
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1603 return b;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1604 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1605 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1606
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1607
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1608 #ifndef YY_NO_PUSH_STATE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1609 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1610 static void yy_push_state( int new_state )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1611 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1612 static void yy_push_state( new_state )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1613 int new_state;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1614 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1615 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1616 if ( yy_start_stack_ptr >= yy_start_stack_depth )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1617 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1618 yy_size_t new_size;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1619
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1620 yy_start_stack_depth += YY_START_STACK_INCR;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1621 new_size = yy_start_stack_depth * sizeof( int );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1622
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1623 if ( ! yy_start_stack )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1624 yy_start_stack = (int *) yy_flex_alloc( new_size );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1625
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1626 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1627 yy_start_stack = (int *) yy_flex_realloc(
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1628 (void *) yy_start_stack, new_size );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1629
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1630 if ( ! yy_start_stack )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1631 YY_FATAL_ERROR(
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1632 "out of memory expanding start-condition stack" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1633 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1634
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1635 yy_start_stack[yy_start_stack_ptr++] = YY_START;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1636
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1637 BEGIN(new_state);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1638 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1639 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1640
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1641
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1642 #ifndef YY_NO_POP_STATE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1643 static void yy_pop_state()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1644 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1645 if ( --yy_start_stack_ptr < 0 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1646 YY_FATAL_ERROR( "start-condition stack underflow" );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1647
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1648 BEGIN(yy_start_stack[yy_start_stack_ptr]);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1649 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1650 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1651
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1652
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1653 #ifndef YY_NO_TOP_STATE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1654 static int yy_top_state()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1655 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1656 return yy_start_stack[yy_start_stack_ptr - 1];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1657 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1658 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1659
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1660 #ifndef YY_EXIT_FAILURE
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1661 #define YY_EXIT_FAILURE 2
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1662 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1663
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1664 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1665 static void yy_fatal_error( yyconst char msg[] )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1666 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1667 static void yy_fatal_error( msg )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1668 char msg[];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1669 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1670 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1671 (void) fprintf( stderr, "%s\n", msg );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1672 exit( YY_EXIT_FAILURE );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1673 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1674
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1675
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1676
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1677 /* Redefine yyless() so it works in section 3 code. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1678
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1679 #undef yyless
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1680 #define yyless(n) \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1681 do \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1682 { \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1683 /* Undo effects of setting up yytext. */ \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1684 yytext[yyleng] = yy_hold_char; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1685 yy_c_buf_p = yytext + n - YY_MORE_ADJ; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1686 yy_hold_char = *yy_c_buf_p; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1687 *yy_c_buf_p = '\0'; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1688 yyleng = n; \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1689 } \
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1690 while ( 0 )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1691
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1692
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1693 /* Internal utility routines. */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1694
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1695 #ifndef yytext_ptr
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1696 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1697 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1698 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1699 static void yy_flex_strncpy( s1, s2, n )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1700 char *s1;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1701 yyconst char *s2;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1702 int n;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1703 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1704 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1705 register int i;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1706 for ( i = 0; i < n; ++i )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1707 s1[i] = s2[i];
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1708 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1709 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1710
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1711
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1712 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1713 static void *yy_flex_alloc( yy_size_t size )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1714 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1715 static void *yy_flex_alloc( size )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1716 yy_size_t size;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1717 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1718 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1719 return (void *) malloc( size );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1720 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1721
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1722 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1723 static void *yy_flex_realloc( void *ptr, yy_size_t size )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1724 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1725 static void *yy_flex_realloc( ptr, size )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1726 void *ptr;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1727 yy_size_t size;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1728 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1729 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1730 /* The cast to (char *) in the following accommodates both
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1731 * implementations that use char* generic pointers, and those
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1732 * that use void* generic pointers. It works with the latter
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1733 * because both ANSI C and C++ allow castless assignment from
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1734 * any pointer type to void*, and deal with argument conversions
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1735 * as though doing an assignment.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1736 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1737 return (void *) realloc( (char *) ptr, size );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1738 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1739
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1740 #ifdef YY_USE_PROTOS
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1741 static void yy_flex_free( void *ptr )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1742 #else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1743 static void yy_flex_free( ptr )
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1744 void *ptr;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1745 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1746 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1747 free( ptr );
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1748 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1749
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1750 #if YY_MAIN
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1751 int main()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1752 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1753 yylex();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1754 return 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1755 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1756 #endif
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1757 #line 75 "/windows/build/xemacs/xemacs/netinstall/inilex.l"
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1758
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1759
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1760 static char *input_string = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1761 static char *end_input_string;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1762
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1763 void
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1764 ini_init(char *string)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1765 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1766 input_string = string;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1767 end_input_string = input_string + strlen(input_string);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1768 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1769
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1770 static int
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1771 ini_getchar(char *buf, int max_size)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1772 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1773 if (input_string)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1774 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1775 int avail = end_input_string - input_string;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1776 if (avail == 0)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1777 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1778 input_string = end_input_string = 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1779 return 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1780 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1781 if (avail > max_size)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1782 avail = max_size;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1783 memcpy(buf, input_string, avail);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1784 input_string += avail;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1785 return avail;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1786 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1787 else
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1788 return 0;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1789 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1790
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1791 static void
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1792 ignore_line ()
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1793 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1794 char c;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1795 while (c = input ())
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1796 {
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1797 if (c == EOF)
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1798 return;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1799 if (c == '\n')
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1800 return;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1801 }
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1802 }