xref: /OK3568_Linux_fs/external/xserver/hw/xwin/winprefslex.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun 
2*4882a593Smuzhiyun #line 2 "winprefslex.c"
3*4882a593Smuzhiyun 
4*4882a593Smuzhiyun #define  YY_INT_ALIGNED short int
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun /* A lexical scanner generated by flex */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #define FLEX_SCANNER
9*4882a593Smuzhiyun #define YY_FLEX_MAJOR_VERSION 2
10*4882a593Smuzhiyun #define YY_FLEX_MINOR_VERSION 6
11*4882a593Smuzhiyun #define YY_FLEX_SUBMINOR_VERSION 4
12*4882a593Smuzhiyun #if YY_FLEX_SUBMINOR_VERSION > 0
13*4882a593Smuzhiyun #define FLEX_BETA
14*4882a593Smuzhiyun #endif
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun /* First, we deal with  platform-specific or compiler-specific issues. */
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun /* begin standard C headers. */
19*4882a593Smuzhiyun #include <stdio.h>
20*4882a593Smuzhiyun #include <string.h>
21*4882a593Smuzhiyun #include <errno.h>
22*4882a593Smuzhiyun #include <stdlib.h>
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun /* end standard C headers. */
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun /* flex integer type definitions */
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #ifndef FLEXINT_H
29*4882a593Smuzhiyun #define FLEXINT_H
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
36*4882a593Smuzhiyun  * if you want the limit (max/min) macros for int types.
37*4882a593Smuzhiyun  */
38*4882a593Smuzhiyun #ifndef __STDC_LIMIT_MACROS
39*4882a593Smuzhiyun #define __STDC_LIMIT_MACROS 1
40*4882a593Smuzhiyun #endif
41*4882a593Smuzhiyun 
42*4882a593Smuzhiyun #include <inttypes.h>
43*4882a593Smuzhiyun typedef int8_t flex_int8_t;
44*4882a593Smuzhiyun typedef uint8_t flex_uint8_t;
45*4882a593Smuzhiyun typedef int16_t flex_int16_t;
46*4882a593Smuzhiyun typedef uint16_t flex_uint16_t;
47*4882a593Smuzhiyun typedef int32_t flex_int32_t;
48*4882a593Smuzhiyun typedef uint32_t flex_uint32_t;
49*4882a593Smuzhiyun #else
50*4882a593Smuzhiyun typedef signed char flex_int8_t;
51*4882a593Smuzhiyun typedef short int flex_int16_t;
52*4882a593Smuzhiyun typedef int flex_int32_t;
53*4882a593Smuzhiyun typedef unsigned char flex_uint8_t;
54*4882a593Smuzhiyun typedef unsigned short int flex_uint16_t;
55*4882a593Smuzhiyun typedef unsigned int flex_uint32_t;
56*4882a593Smuzhiyun 
57*4882a593Smuzhiyun /* Limits of integral types. */
58*4882a593Smuzhiyun #ifndef INT8_MIN
59*4882a593Smuzhiyun #define INT8_MIN               (-128)
60*4882a593Smuzhiyun #endif
61*4882a593Smuzhiyun #ifndef INT16_MIN
62*4882a593Smuzhiyun #define INT16_MIN              (-32767-1)
63*4882a593Smuzhiyun #endif
64*4882a593Smuzhiyun #ifndef INT32_MIN
65*4882a593Smuzhiyun #define INT32_MIN              (-2147483647-1)
66*4882a593Smuzhiyun #endif
67*4882a593Smuzhiyun #ifndef INT8_MAX
68*4882a593Smuzhiyun #define INT8_MAX               (127)
69*4882a593Smuzhiyun #endif
70*4882a593Smuzhiyun #ifndef INT16_MAX
71*4882a593Smuzhiyun #define INT16_MAX              (32767)
72*4882a593Smuzhiyun #endif
73*4882a593Smuzhiyun #ifndef INT32_MAX
74*4882a593Smuzhiyun #define INT32_MAX              (2147483647)
75*4882a593Smuzhiyun #endif
76*4882a593Smuzhiyun #ifndef UINT8_MAX
77*4882a593Smuzhiyun #define UINT8_MAX              (255U)
78*4882a593Smuzhiyun #endif
79*4882a593Smuzhiyun #ifndef UINT16_MAX
80*4882a593Smuzhiyun #define UINT16_MAX             (65535U)
81*4882a593Smuzhiyun #endif
82*4882a593Smuzhiyun #ifndef UINT32_MAX
83*4882a593Smuzhiyun #define UINT32_MAX             (4294967295U)
84*4882a593Smuzhiyun #endif
85*4882a593Smuzhiyun 
86*4882a593Smuzhiyun #ifndef SIZE_MAX
87*4882a593Smuzhiyun #define SIZE_MAX               (~(size_t)0)
88*4882a593Smuzhiyun #endif
89*4882a593Smuzhiyun 
90*4882a593Smuzhiyun #endif /* ! C99 */
91*4882a593Smuzhiyun 
92*4882a593Smuzhiyun #endif /* ! FLEXINT_H */
93*4882a593Smuzhiyun 
94*4882a593Smuzhiyun /* begin standard C++ headers. */
95*4882a593Smuzhiyun 
96*4882a593Smuzhiyun /* TODO: this is always defined, so inline it */
97*4882a593Smuzhiyun #define yyconst const
98*4882a593Smuzhiyun 
99*4882a593Smuzhiyun #if defined(__GNUC__) && __GNUC__ >= 3
100*4882a593Smuzhiyun #define yynoreturn __attribute__((__noreturn__))
101*4882a593Smuzhiyun #else
102*4882a593Smuzhiyun #define yynoreturn
103*4882a593Smuzhiyun #endif
104*4882a593Smuzhiyun 
105*4882a593Smuzhiyun /* Returned upon end-of-file. */
106*4882a593Smuzhiyun #define YY_NULL 0
107*4882a593Smuzhiyun 
108*4882a593Smuzhiyun /* Promotes a possibly negative, possibly signed char to an
109*4882a593Smuzhiyun  *   integer in range [0..255] for use as an array index.
110*4882a593Smuzhiyun  */
111*4882a593Smuzhiyun #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
112*4882a593Smuzhiyun 
113*4882a593Smuzhiyun /* Enter a start condition.  This macro really ought to take a parameter,
114*4882a593Smuzhiyun  * but we do it the disgusting crufty way forced on us by the ()-less
115*4882a593Smuzhiyun  * definition of BEGIN.
116*4882a593Smuzhiyun  */
117*4882a593Smuzhiyun #define BEGIN (yy_start) = 1 + 2 *
118*4882a593Smuzhiyun /* Translate the current start state into a value that can be later handed
119*4882a593Smuzhiyun  * to BEGIN to return to the state.  The YYSTATE alias is for lex
120*4882a593Smuzhiyun  * compatibility.
121*4882a593Smuzhiyun  */
122*4882a593Smuzhiyun #define YY_START (((yy_start) - 1) / 2)
123*4882a593Smuzhiyun #define YYSTATE YY_START
124*4882a593Smuzhiyun /* Action number for EOF rule of a given start state. */
125*4882a593Smuzhiyun #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
126*4882a593Smuzhiyun /* Special action meaning "start processing a new file". */
127*4882a593Smuzhiyun #define YY_NEW_FILE yyrestart( yyin  )
128*4882a593Smuzhiyun #define YY_END_OF_BUFFER_CHAR 0
129*4882a593Smuzhiyun 
130*4882a593Smuzhiyun /* Size of default input buffer. */
131*4882a593Smuzhiyun #ifndef YY_BUF_SIZE
132*4882a593Smuzhiyun #ifdef __ia64__
133*4882a593Smuzhiyun /* On IA-64, the buffer size is 16k, not 8k.
134*4882a593Smuzhiyun  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
135*4882a593Smuzhiyun  * Ditto for the __ia64__ case accordingly.
136*4882a593Smuzhiyun  */
137*4882a593Smuzhiyun #define YY_BUF_SIZE 32768
138*4882a593Smuzhiyun #else
139*4882a593Smuzhiyun #define YY_BUF_SIZE 16384
140*4882a593Smuzhiyun #endif /* __ia64__ */
141*4882a593Smuzhiyun #endif
142*4882a593Smuzhiyun 
143*4882a593Smuzhiyun /* The state buf must be large enough to hold one state per character in the main buffer.
144*4882a593Smuzhiyun  */
145*4882a593Smuzhiyun #define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
146*4882a593Smuzhiyun 
147*4882a593Smuzhiyun #ifndef YY_TYPEDEF_YY_BUFFER_STATE
148*4882a593Smuzhiyun #define YY_TYPEDEF_YY_BUFFER_STATE
149*4882a593Smuzhiyun typedef struct yy_buffer_state *YY_BUFFER_STATE;
150*4882a593Smuzhiyun #endif
151*4882a593Smuzhiyun 
152*4882a593Smuzhiyun #ifndef YY_TYPEDEF_YY_SIZE_T
153*4882a593Smuzhiyun #define YY_TYPEDEF_YY_SIZE_T
154*4882a593Smuzhiyun typedef size_t yy_size_t;
155*4882a593Smuzhiyun #endif
156*4882a593Smuzhiyun 
157*4882a593Smuzhiyun extern int yyleng;
158*4882a593Smuzhiyun 
159*4882a593Smuzhiyun extern FILE *yyin, *yyout;
160*4882a593Smuzhiyun 
161*4882a593Smuzhiyun #define EOB_ACT_CONTINUE_SCAN 0
162*4882a593Smuzhiyun #define EOB_ACT_END_OF_FILE 1
163*4882a593Smuzhiyun #define EOB_ACT_LAST_MATCH 2
164*4882a593Smuzhiyun 
165*4882a593Smuzhiyun     /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
166*4882a593Smuzhiyun      *       access to the local variable yy_act. Since yyless() is a macro, it would break
167*4882a593Smuzhiyun      *       existing scanners that call yyless() from OUTSIDE yylex.
168*4882a593Smuzhiyun      *       One obvious solution it to make yy_act a global. I tried that, and saw
169*4882a593Smuzhiyun      *       a 5% performance hit in a non-yylineno scanner, because yy_act is
170*4882a593Smuzhiyun      *       normally declared as a register variable-- so it is not worth it.
171*4882a593Smuzhiyun      */
172*4882a593Smuzhiyun     #define  YY_LESS_LINENO(n) \
173*4882a593Smuzhiyun             do { \
174*4882a593Smuzhiyun                 int yyl;\
175*4882a593Smuzhiyun                 for ( yyl = n; yyl < yyleng; ++yyl )\
176*4882a593Smuzhiyun                     if ( yytext[yyl] == '\n' )\
177*4882a593Smuzhiyun                         --yylineno;\
178*4882a593Smuzhiyun             }while(0)
179*4882a593Smuzhiyun     #define YY_LINENO_REWIND_TO(dst) \
180*4882a593Smuzhiyun             do {\
181*4882a593Smuzhiyun                 const char *p;\
182*4882a593Smuzhiyun                 for ( p = yy_cp-1; p >= (dst); --p)\
183*4882a593Smuzhiyun                     if ( *p == '\n' )\
184*4882a593Smuzhiyun                         --yylineno;\
185*4882a593Smuzhiyun             }while(0)
186*4882a593Smuzhiyun 
187*4882a593Smuzhiyun /* Return all but the first "n" matched characters back to the input stream. */
188*4882a593Smuzhiyun #define yyless(n) \
189*4882a593Smuzhiyun 	do \
190*4882a593Smuzhiyun 		{ \
191*4882a593Smuzhiyun 		/* Undo effects of setting up yytext. */ \
192*4882a593Smuzhiyun         int yyless_macro_arg = (n); \
193*4882a593Smuzhiyun         YY_LESS_LINENO(yyless_macro_arg);\
194*4882a593Smuzhiyun 		*yy_cp = (yy_hold_char); \
195*4882a593Smuzhiyun 		YY_RESTORE_YY_MORE_OFFSET \
196*4882a593Smuzhiyun 		(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
197*4882a593Smuzhiyun 		YY_DO_BEFORE_ACTION; /* set up yytext again */ \
198*4882a593Smuzhiyun 		} \
199*4882a593Smuzhiyun 	while ( 0 )
200*4882a593Smuzhiyun #define unput(c) yyunput( c, (yytext_ptr)  )
201*4882a593Smuzhiyun 
202*4882a593Smuzhiyun #ifndef YY_STRUCT_YY_BUFFER_STATE
203*4882a593Smuzhiyun #define YY_STRUCT_YY_BUFFER_STATE
204*4882a593Smuzhiyun struct yy_buffer_state
205*4882a593Smuzhiyun 	{
206*4882a593Smuzhiyun 	FILE *yy_input_file;
207*4882a593Smuzhiyun 
208*4882a593Smuzhiyun 	char *yy_ch_buf;		/* input buffer */
209*4882a593Smuzhiyun 	char *yy_buf_pos;		/* current position in input buffer */
210*4882a593Smuzhiyun 
211*4882a593Smuzhiyun 	/* Size of input buffer in bytes, not including room for EOB
212*4882a593Smuzhiyun 	 * characters.
213*4882a593Smuzhiyun 	 */
214*4882a593Smuzhiyun 	int yy_buf_size;
215*4882a593Smuzhiyun 
216*4882a593Smuzhiyun 	/* Number of characters read into yy_ch_buf, not including EOB
217*4882a593Smuzhiyun 	 * characters.
218*4882a593Smuzhiyun 	 */
219*4882a593Smuzhiyun 	int yy_n_chars;
220*4882a593Smuzhiyun 
221*4882a593Smuzhiyun 	/* Whether we "own" the buffer - i.e., we know we created it,
222*4882a593Smuzhiyun 	 * and can realloc() it to grow it, and should free() it to
223*4882a593Smuzhiyun 	 * delete it.
224*4882a593Smuzhiyun 	 */
225*4882a593Smuzhiyun 	int yy_is_our_buffer;
226*4882a593Smuzhiyun 
227*4882a593Smuzhiyun 	/* Whether this is an "interactive" input source; if so, and
228*4882a593Smuzhiyun 	 * if we're using stdio for input, then we want to use getc()
229*4882a593Smuzhiyun 	 * instead of fread(), to make sure we stop fetching input after
230*4882a593Smuzhiyun 	 * each newline.
231*4882a593Smuzhiyun 	 */
232*4882a593Smuzhiyun 	int yy_is_interactive;
233*4882a593Smuzhiyun 
234*4882a593Smuzhiyun 	/* Whether we're considered to be at the beginning of a line.
235*4882a593Smuzhiyun 	 * If so, '^' rules will be active on the next match, otherwise
236*4882a593Smuzhiyun 	 * not.
237*4882a593Smuzhiyun 	 */
238*4882a593Smuzhiyun 	int yy_at_bol;
239*4882a593Smuzhiyun 
240*4882a593Smuzhiyun     int yy_bs_lineno; /**< The line count. */
241*4882a593Smuzhiyun     int yy_bs_column; /**< The column count. */
242*4882a593Smuzhiyun 
243*4882a593Smuzhiyun 	/* Whether to try to fill the input buffer when we reach the
244*4882a593Smuzhiyun 	 * end of it.
245*4882a593Smuzhiyun 	 */
246*4882a593Smuzhiyun 	int yy_fill_buffer;
247*4882a593Smuzhiyun 
248*4882a593Smuzhiyun 	int yy_buffer_status;
249*4882a593Smuzhiyun 
250*4882a593Smuzhiyun #define YY_BUFFER_NEW 0
251*4882a593Smuzhiyun #define YY_BUFFER_NORMAL 1
252*4882a593Smuzhiyun 	/* When an EOF's been seen but there's still some text to process
253*4882a593Smuzhiyun 	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
254*4882a593Smuzhiyun 	 * shouldn't try reading from the input source any more.  We might
255*4882a593Smuzhiyun 	 * still have a bunch of tokens to match, though, because of
256*4882a593Smuzhiyun 	 * possible backing-up.
257*4882a593Smuzhiyun 	 *
258*4882a593Smuzhiyun 	 * When we actually see the EOF, we change the status to "new"
259*4882a593Smuzhiyun 	 * (via yyrestart()), so that the user can continue scanning by
260*4882a593Smuzhiyun 	 * just pointing yyin at a new input file.
261*4882a593Smuzhiyun 	 */
262*4882a593Smuzhiyun #define YY_BUFFER_EOF_PENDING 2
263*4882a593Smuzhiyun 
264*4882a593Smuzhiyun 	};
265*4882a593Smuzhiyun #endif /* !YY_STRUCT_YY_BUFFER_STATE */
266*4882a593Smuzhiyun 
267*4882a593Smuzhiyun /* Stack of input buffers. */
268*4882a593Smuzhiyun static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
269*4882a593Smuzhiyun static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
270*4882a593Smuzhiyun static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
271*4882a593Smuzhiyun 
272*4882a593Smuzhiyun /* We provide macros for accessing buffer states in case in the
273*4882a593Smuzhiyun  * future we want to put the buffer states in a more general
274*4882a593Smuzhiyun  * "scanner state".
275*4882a593Smuzhiyun  *
276*4882a593Smuzhiyun  * Returns the top of the stack, or NULL.
277*4882a593Smuzhiyun  */
278*4882a593Smuzhiyun #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
279*4882a593Smuzhiyun                           ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
280*4882a593Smuzhiyun                           : NULL)
281*4882a593Smuzhiyun /* Same as previous macro, but useful when we know that the buffer stack is not
282*4882a593Smuzhiyun  * NULL or when we need an lvalue. For internal use only.
283*4882a593Smuzhiyun  */
284*4882a593Smuzhiyun #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
285*4882a593Smuzhiyun 
286*4882a593Smuzhiyun /* yy_hold_char holds the character lost when yytext is formed. */
287*4882a593Smuzhiyun static char yy_hold_char;
288*4882a593Smuzhiyun static int yy_n_chars;		/* number of characters read into yy_ch_buf */
289*4882a593Smuzhiyun int yyleng;
290*4882a593Smuzhiyun 
291*4882a593Smuzhiyun /* Points to current character in buffer. */
292*4882a593Smuzhiyun static char *yy_c_buf_p = NULL;
293*4882a593Smuzhiyun static int yy_init = 0;		/* whether we need to initialize */
294*4882a593Smuzhiyun static int yy_start = 0;	/* start state number */
295*4882a593Smuzhiyun 
296*4882a593Smuzhiyun /* Flag which is used to allow yywrap()'s to do buffer switches
297*4882a593Smuzhiyun  * instead of setting up a fresh yyin.  A bit of a hack ...
298*4882a593Smuzhiyun  */
299*4882a593Smuzhiyun static int yy_did_buffer_switch_on_eof;
300*4882a593Smuzhiyun 
301*4882a593Smuzhiyun void yyrestart ( FILE *input_file  );
302*4882a593Smuzhiyun void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer  );
303*4882a593Smuzhiyun YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size  );
304*4882a593Smuzhiyun void yy_delete_buffer ( YY_BUFFER_STATE b  );
305*4882a593Smuzhiyun void yy_flush_buffer ( YY_BUFFER_STATE b  );
306*4882a593Smuzhiyun void yypush_buffer_state ( YY_BUFFER_STATE new_buffer  );
307*4882a593Smuzhiyun void yypop_buffer_state ( void );
308*4882a593Smuzhiyun 
309*4882a593Smuzhiyun static void yyensure_buffer_stack ( void );
310*4882a593Smuzhiyun static void yy_load_buffer_state ( void );
311*4882a593Smuzhiyun static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file  );
312*4882a593Smuzhiyun #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
313*4882a593Smuzhiyun 
314*4882a593Smuzhiyun YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size  );
315*4882a593Smuzhiyun YY_BUFFER_STATE yy_scan_string ( const char *yy_str  );
316*4882a593Smuzhiyun YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len  );
317*4882a593Smuzhiyun 
318*4882a593Smuzhiyun void *yyalloc ( yy_size_t  );
319*4882a593Smuzhiyun void *yyrealloc ( void *, yy_size_t  );
320*4882a593Smuzhiyun void yyfree ( void *  );
321*4882a593Smuzhiyun 
322*4882a593Smuzhiyun #define yy_new_buffer yy_create_buffer
323*4882a593Smuzhiyun #define yy_set_interactive(is_interactive) \
324*4882a593Smuzhiyun 	{ \
325*4882a593Smuzhiyun 	if ( ! YY_CURRENT_BUFFER ){ \
326*4882a593Smuzhiyun         yyensure_buffer_stack (); \
327*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE =    \
328*4882a593Smuzhiyun             yy_create_buffer( yyin, YY_BUF_SIZE ); \
329*4882a593Smuzhiyun 	} \
330*4882a593Smuzhiyun 	YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
331*4882a593Smuzhiyun 	}
332*4882a593Smuzhiyun #define yy_set_bol(at_bol) \
333*4882a593Smuzhiyun 	{ \
334*4882a593Smuzhiyun 	if ( ! YY_CURRENT_BUFFER ){\
335*4882a593Smuzhiyun         yyensure_buffer_stack (); \
336*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE =    \
337*4882a593Smuzhiyun             yy_create_buffer( yyin, YY_BUF_SIZE ); \
338*4882a593Smuzhiyun 	} \
339*4882a593Smuzhiyun 	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
340*4882a593Smuzhiyun 	}
341*4882a593Smuzhiyun #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
342*4882a593Smuzhiyun 
343*4882a593Smuzhiyun /* Begin user sect3 */
344*4882a593Smuzhiyun typedef flex_uint8_t YY_CHAR;
345*4882a593Smuzhiyun 
346*4882a593Smuzhiyun FILE *yyin = NULL, *yyout = NULL;
347*4882a593Smuzhiyun 
348*4882a593Smuzhiyun typedef int yy_state_type;
349*4882a593Smuzhiyun 
350*4882a593Smuzhiyun extern int yylineno;
351*4882a593Smuzhiyun int yylineno = 1;
352*4882a593Smuzhiyun 
353*4882a593Smuzhiyun extern char *yytext;
354*4882a593Smuzhiyun #ifdef yytext_ptr
355*4882a593Smuzhiyun #undef yytext_ptr
356*4882a593Smuzhiyun #endif
357*4882a593Smuzhiyun #define yytext_ptr yytext
358*4882a593Smuzhiyun 
359*4882a593Smuzhiyun static yy_state_type yy_get_previous_state ( void );
360*4882a593Smuzhiyun static yy_state_type yy_try_NUL_trans ( yy_state_type current_state  );
361*4882a593Smuzhiyun static int yy_get_next_buffer ( void );
362*4882a593Smuzhiyun static void yynoreturn yy_fatal_error ( const char* msg  );
363*4882a593Smuzhiyun 
364*4882a593Smuzhiyun /* Done after the current pattern has been matched and before the
365*4882a593Smuzhiyun  * corresponding action - sets up yytext.
366*4882a593Smuzhiyun  */
367*4882a593Smuzhiyun #define YY_DO_BEFORE_ACTION \
368*4882a593Smuzhiyun 	(yytext_ptr) = yy_bp; \
369*4882a593Smuzhiyun 	yyleng = (int) (yy_cp - yy_bp); \
370*4882a593Smuzhiyun 	(yy_hold_char) = *yy_cp; \
371*4882a593Smuzhiyun 	*yy_cp = '\0'; \
372*4882a593Smuzhiyun 	(yy_c_buf_p) = yy_cp;
373*4882a593Smuzhiyun #define YY_NUM_RULES 34
374*4882a593Smuzhiyun #define YY_END_OF_BUFFER 35
375*4882a593Smuzhiyun /* This struct is not used in this scanner,
376*4882a593Smuzhiyun    but its presence is necessary. */
377*4882a593Smuzhiyun struct yy_trans_info
378*4882a593Smuzhiyun 	{
379*4882a593Smuzhiyun 	flex_int32_t yy_verify;
380*4882a593Smuzhiyun 	flex_int32_t yy_nxt;
381*4882a593Smuzhiyun 	};
382*4882a593Smuzhiyun static const flex_int16_t yy_accept[195] =
383*4882a593Smuzhiyun     {   0,
384*4882a593Smuzhiyun         0,    0,   35,   33,    4,    3,   33,   33,   33,   33,
385*4882a593Smuzhiyun        33,   33,   33,   33,   33,   33,   33,   33,   33,   33,
386*4882a593Smuzhiyun        33,   30,   31,   33,    4,   33,    0,   33,    0,    1,
387*4882a593Smuzhiyun         1,   33,   33,   33,   33,   33,   33,   33,   33,   33,
388*4882a593Smuzhiyun        33,   33,   33,   33,   33,   33,   33,   33,   33,   33,
389*4882a593Smuzhiyun        33,   33,   32,   32,   33,    0,    2,    2,   33,   33,
390*4882a593Smuzhiyun        33,   33,   33,   33,   33,   33,   33,   33,   33,   33,
391*4882a593Smuzhiyun        33,   33,   33,   33,   33,   33,   33,   33,   33,   33,
392*4882a593Smuzhiyun        33,   33,   33,   33,   33,   33,   33,   23,   33,   33,
393*4882a593Smuzhiyun        33,    5,   33,   33,   33,   33,   33,   33,   33,   33,
394*4882a593Smuzhiyun 
395*4882a593Smuzhiyun        33,   33,   33,   33,   33,   22,   33,   33,   25,   33,
396*4882a593Smuzhiyun        33,   33,    8,   33,   33,   33,   33,   33,   33,   33,
397*4882a593Smuzhiyun        33,   33,   33,   33,   33,   33,   33,   33,   13,   33,
398*4882a593Smuzhiyun        33,   33,   33,   33,   33,   33,   33,   26,   33,   33,
399*4882a593Smuzhiyun        33,    9,   33,   33,   33,   33,   21,   33,   33,   33,
400*4882a593Smuzhiyun        33,   33,   16,   14,   15,   33,   33,   33,   19,   10,
401*4882a593Smuzhiyun        33,   33,   33,   33,   33,   33,   11,   12,   17,   33,
402*4882a593Smuzhiyun        33,   27,   33,   33,   33,   28,   33,   20,   33,   33,
403*4882a593Smuzhiyun        33,   33,   33,   29,   24,    7,   33,   33,   33,   33,
404*4882a593Smuzhiyun        33,    6,   18,    0
405*4882a593Smuzhiyun 
406*4882a593Smuzhiyun     } ;
407*4882a593Smuzhiyun 
408*4882a593Smuzhiyun static const YY_CHAR yy_ec[256] =
409*4882a593Smuzhiyun     {   0,
410*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
411*4882a593Smuzhiyun         1,    1,    4,    1,    1,    1,    1,    1,    1,    1,
412*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
413*4882a593Smuzhiyun         1,    2,    1,    5,    6,    1,    1,    1,    1,    1,
414*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    7,    1,    1,    1,
415*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
416*4882a593Smuzhiyun         1,    1,    1,    1,    8,    9,   10,   11,   12,   13,
417*4882a593Smuzhiyun        14,    1,   15,    1,    1,   16,   17,   18,   19,   20,
418*4882a593Smuzhiyun         1,   21,   22,   23,   24,    1,   25,   26,   27,   28,
419*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,   29,   30,   31,   32,
420*4882a593Smuzhiyun 
421*4882a593Smuzhiyun        33,   34,   35,    1,   36,    1,    1,   37,   38,   39,
422*4882a593Smuzhiyun        40,   41,    1,   42,   43,   44,   45,    1,   46,   47,
423*4882a593Smuzhiyun        48,   49,   50,    1,   51,    1,    1,    1,    1,    1,
424*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
425*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
426*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
427*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
428*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
429*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
430*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
431*4882a593Smuzhiyun 
432*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
433*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
434*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
435*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
436*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
437*4882a593Smuzhiyun         1,    1,    1,    1,    1
438*4882a593Smuzhiyun     } ;
439*4882a593Smuzhiyun 
440*4882a593Smuzhiyun static const YY_CHAR yy_meta[52] =
441*4882a593Smuzhiyun     {   0,
442*4882a593Smuzhiyun         1,    2,    3,    3,    1,    1,    1,    1,    1,    1,
443*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
444*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
445*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
446*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
447*4882a593Smuzhiyun         1
448*4882a593Smuzhiyun     } ;
449*4882a593Smuzhiyun 
450*4882a593Smuzhiyun static const flex_int16_t yy_base[202] =
451*4882a593Smuzhiyun     {   0,
452*4882a593Smuzhiyun         0,    0,  384,    0,  381,  415,   50,   54,  375,   37,
453*4882a593Smuzhiyun        35,   47,   35,   43,   53,   56,   46,   42,   57,   86,
454*4882a593Smuzhiyun        51,    0,    0,    0,  377,   94,  373,   75,   91,  415,
455*4882a593Smuzhiyun        99,  102,   42,   88,   84,   99,   99,   93,   96,   90,
456*4882a593Smuzhiyun        99,  100,  127,   97,  107,  105,  105,  110,  100,  120,
457*4882a593Smuzhiyun       123,  141,    0,  415,  149,  151,  415,  153,  150,  141,
458*4882a593Smuzhiyun       137,  139,  141,  158,  157,  158,  151,  157,  149,  159,
459*4882a593Smuzhiyun       154,  161,  161,  159,  159,  176,  173,  175,  175,  183,
460*4882a593Smuzhiyun       174,  175,  193,  199,  189,  195,  186,    0,  199,  204,
461*4882a593Smuzhiyun       197,    0,  199,  209,  195,  204,  212,  207,  206,  215,
462*4882a593Smuzhiyun 
463*4882a593Smuzhiyun       222,  230,  224,  229,  224,    0,  228,  233,    0,  235,
464*4882a593Smuzhiyun       240,  238,    0,  241,  242,  241,  243,  242,  250,  250,
465*4882a593Smuzhiyun       258,  245,  247,  257,  254,  274,  266,  263,    0,  265,
466*4882a593Smuzhiyun       265,  271,  265,  266,  283,  286,  287,    0,  282,  278,
467*4882a593Smuzhiyun       290,    0,  279,  281,  289,  292,    0,  296,  302,  314,
468*4882a593Smuzhiyun       315,  316,    0,    0,    0,  306,  314,  308,    0,    0,
469*4882a593Smuzhiyun       317,  313,  327,  313,  318,  332,    0,    0,    0,  322,
470*4882a593Smuzhiyun       329,    0,  326,  327,  328,    0,  329,    0,  330,  339,
471*4882a593Smuzhiyun       342,  351,  350,    0,    0,    0,  358,  351,  357,  349,
472*4882a593Smuzhiyun       353,    0,    0,  415,   72,  398,  400,  403,  405,  408,
473*4882a593Smuzhiyun 
474*4882a593Smuzhiyun       411
475*4882a593Smuzhiyun     } ;
476*4882a593Smuzhiyun 
477*4882a593Smuzhiyun static const flex_int16_t yy_def[202] =
478*4882a593Smuzhiyun     {   0,
479*4882a593Smuzhiyun       194,    1,  194,  195,  194,  194,  196,  197,  195,  195,
480*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
481*4882a593Smuzhiyun       195,  195,  195,  195,  194,  196,  198,  197,  199,  194,
482*4882a593Smuzhiyun       199,  200,  195,  195,  195,  195,  195,  195,  195,  195,
483*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
484*4882a593Smuzhiyun       195,  195,  195,  194,  200,  201,  194,  201,  195,  195,
485*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
486*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
487*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
488*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
489*4882a593Smuzhiyun 
490*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
491*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
492*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
493*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
494*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
495*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
496*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
497*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
498*4882a593Smuzhiyun       195,  195,  195,  195,  195,  195,  195,  195,  195,  195,
499*4882a593Smuzhiyun       195,  195,  195,    0,  194,  194,  194,  194,  194,  194,
500*4882a593Smuzhiyun 
501*4882a593Smuzhiyun       194
502*4882a593Smuzhiyun     } ;
503*4882a593Smuzhiyun 
504*4882a593Smuzhiyun static const flex_int16_t yy_nxt[467] =
505*4882a593Smuzhiyun     {   0,
506*4882a593Smuzhiyun         4,    5,    6,    6,    7,    8,    9,   10,   11,    4,
507*4882a593Smuzhiyun        12,   13,   14,    4,   15,    4,   16,   17,   18,    4,
508*4882a593Smuzhiyun        19,   20,   21,    4,    4,    4,    4,    4,   10,   11,
509*4882a593Smuzhiyun         4,   12,   13,   14,    4,   15,    4,   16,   17,   18,
510*4882a593Smuzhiyun         4,   19,   20,   21,    4,    4,    4,    4,    4,   22,
511*4882a593Smuzhiyun        23,   27,   33,   35,   24,   29,   30,   31,   36,   34,
512*4882a593Smuzhiyun        37,   38,   39,   40,   43,   44,   59,   41,   45,   51,
513*4882a593Smuzhiyun        42,   52,   24,   33,   35,   46,   29,   30,   31,   36,
514*4882a593Smuzhiyun        34,   37,   38,   39,   40,   43,   44,   59,   41,   45,
515*4882a593Smuzhiyun        51,   42,   52,   30,   31,   27,   46,   47,   53,   60,
516*4882a593Smuzhiyun 
517*4882a593Smuzhiyun        48,   30,   31,   56,   57,   58,   62,   63,   49,   61,
518*4882a593Smuzhiyun        65,   64,   50,   66,   67,   68,   69,   70,   47,   73,
519*4882a593Smuzhiyun        60,   48,   74,   75,   76,   77,   78,   62,   63,   49,
520*4882a593Smuzhiyun        61,   65,   64,   50,   66,   67,   68,   69,   70,   71,
521*4882a593Smuzhiyun        73,   79,   80,   74,   75,   76,   77,   78,   81,   72,
522*4882a593Smuzhiyun        56,   57,   58,   57,   58,   57,   58,   82,   83,   84,
523*4882a593Smuzhiyun        71,   85,   79,   80,   86,   87,   88,   89,   90,   81,
524*4882a593Smuzhiyun        72,   91,   92,   93,   94,   95,   96,   97,   82,   83,
525*4882a593Smuzhiyun        84,   98,   85,   99,  100,   86,   87,   88,   89,   90,
526*4882a593Smuzhiyun       101,  102,   91,   92,   93,   94,   95,   96,   97,  103,
527*4882a593Smuzhiyun 
528*4882a593Smuzhiyun       104,  105,   98,  106,   99,  100,  107,  108,  109,  110,
529*4882a593Smuzhiyun       111,  101,  102,  114,  112,  115,  116,  117,  118,  119,
530*4882a593Smuzhiyun       103,  104,  105,  120,  106,  113,  121,  107,  108,  109,
531*4882a593Smuzhiyun       110,  111,  122,  123,  114,  112,  115,  116,  117,  118,
532*4882a593Smuzhiyun       119,  124,  125,  126,  120,  127,  113,  121,  128,  129,
533*4882a593Smuzhiyun       130,  131,  132,  122,  123,  133,  134,  135,  136,  137,
534*4882a593Smuzhiyun       138,  139,  124,  125,  126,  140,  127,  141,  142,  128,
535*4882a593Smuzhiyun       129,  130,  131,  132,  143,  144,  133,  134,  135,  136,
536*4882a593Smuzhiyun       137,  138,  139,  145,  146,  147,  140,  148,  141,  142,
537*4882a593Smuzhiyun       149,  150,  151,  152,  153,  143,  144,  154,  155,  156,
538*4882a593Smuzhiyun 
539*4882a593Smuzhiyun       157,  158,  159,  160,  145,  146,  147,  161,  148,  162,
540*4882a593Smuzhiyun       163,  149,  150,  151,  152,  153,  165,  164,  154,  155,
541*4882a593Smuzhiyun       156,  157,  158,  159,  160,  166,  167,  168,  161,  169,
542*4882a593Smuzhiyun       162,  163,  170,  171,  172,  173,  174,  165,  164,  175,
543*4882a593Smuzhiyun       176,  177,  178,  179,  180,  181,  166,  167,  168,  182,
544*4882a593Smuzhiyun       169,  183,  184,  170,  171,  172,  173,  174,  185,  186,
545*4882a593Smuzhiyun       175,  176,  177,  178,  179,  180,  181,  187,  188,  189,
546*4882a593Smuzhiyun       182,  190,  183,  184,  191,  192,  193,   54,   25,  185,
547*4882a593Smuzhiyun       186,   32,   25,  194,  194,  194,  194,  194,  187,  188,
548*4882a593Smuzhiyun       189,  194,  190,  194,  194,  191,  192,  193,   26,   26,
549*4882a593Smuzhiyun 
550*4882a593Smuzhiyun        28,   28,   28,   27,   27,   29,   29,   29,   55,   55,
551*4882a593Smuzhiyun        55,   56,   56,   56,    3,  194,  194,  194,  194,  194,
552*4882a593Smuzhiyun       194,  194,  194,  194,  194,  194,  194,  194,  194,  194,
553*4882a593Smuzhiyun       194,  194,  194,  194,  194,  194,  194,  194,  194,  194,
554*4882a593Smuzhiyun       194,  194,  194,  194,  194,  194,  194,  194,  194,  194,
555*4882a593Smuzhiyun       194,  194,  194,  194,  194,  194,  194,  194,  194,  194,
556*4882a593Smuzhiyun       194,  194,  194,  194,  194,  194
557*4882a593Smuzhiyun     } ;
558*4882a593Smuzhiyun 
559*4882a593Smuzhiyun static const flex_int16_t yy_chk[467] =
560*4882a593Smuzhiyun     {   0,
561*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
562*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
563*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
564*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
565*4882a593Smuzhiyun         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
566*4882a593Smuzhiyun         1,    7,   10,   11,    7,    8,    8,    8,   12,   10,
567*4882a593Smuzhiyun        13,   14,   15,   16,   17,   18,   33,   16,   19,   21,
568*4882a593Smuzhiyun        16,   21,  195,   10,   11,   19,   28,   28,   28,   12,
569*4882a593Smuzhiyun        10,   13,   14,   15,   16,   17,   18,   33,   16,   19,
570*4882a593Smuzhiyun        21,   16,   21,   29,   29,   26,   19,   20,   26,   34,
571*4882a593Smuzhiyun 
572*4882a593Smuzhiyun        20,   31,   31,   32,   32,   32,   35,   36,   20,   34,
573*4882a593Smuzhiyun        37,   36,   20,   38,   39,   40,   41,   42,   20,   44,
574*4882a593Smuzhiyun        34,   20,   45,   46,   47,   48,   49,   35,   36,   20,
575*4882a593Smuzhiyun        34,   37,   36,   20,   38,   39,   40,   41,   42,   43,
576*4882a593Smuzhiyun        44,   50,   51,   45,   46,   47,   48,   49,   52,   43,
577*4882a593Smuzhiyun        55,   55,   55,   56,   56,   58,   58,   59,   60,   61,
578*4882a593Smuzhiyun        43,   62,   50,   51,   63,   64,   65,   66,   67,   52,
579*4882a593Smuzhiyun        43,   68,   69,   70,   71,   72,   73,   74,   59,   60,
580*4882a593Smuzhiyun        61,   75,   62,   76,   77,   63,   64,   65,   66,   67,
581*4882a593Smuzhiyun        78,   79,   68,   69,   70,   71,   72,   73,   74,   80,
582*4882a593Smuzhiyun 
583*4882a593Smuzhiyun        81,   82,   75,   83,   76,   77,   84,   85,   86,   87,
584*4882a593Smuzhiyun        89,   78,   79,   91,   90,   93,   94,   95,   96,   97,
585*4882a593Smuzhiyun        80,   81,   82,   98,   83,   90,   99,   84,   85,   86,
586*4882a593Smuzhiyun        87,   89,  100,  101,   91,   90,   93,   94,   95,   96,
587*4882a593Smuzhiyun        97,  102,  103,  104,   98,  105,   90,   99,  107,  108,
588*4882a593Smuzhiyun       110,  111,  112,  100,  101,  114,  115,  116,  117,  118,
589*4882a593Smuzhiyun       119,  120,  102,  103,  104,  121,  105,  122,  123,  107,
590*4882a593Smuzhiyun       108,  110,  111,  112,  124,  125,  114,  115,  116,  117,
591*4882a593Smuzhiyun       118,  119,  120,  126,  127,  128,  121,  130,  122,  123,
592*4882a593Smuzhiyun       131,  132,  133,  134,  135,  124,  125,  136,  137,  139,
593*4882a593Smuzhiyun 
594*4882a593Smuzhiyun       140,  141,  143,  144,  126,  127,  128,  145,  130,  146,
595*4882a593Smuzhiyun       148,  131,  132,  133,  134,  135,  149,  148,  136,  137,
596*4882a593Smuzhiyun       139,  140,  141,  143,  144,  150,  151,  152,  145,  156,
597*4882a593Smuzhiyun       146,  148,  157,  158,  161,  162,  163,  149,  148,  164,
598*4882a593Smuzhiyun       165,  166,  170,  171,  173,  174,  150,  151,  152,  175,
599*4882a593Smuzhiyun       156,  177,  179,  157,  158,  161,  162,  163,  180,  181,
600*4882a593Smuzhiyun       164,  165,  166,  170,  171,  173,  174,  182,  183,  187,
601*4882a593Smuzhiyun       175,  188,  177,  179,  189,  190,  191,   27,   25,  180,
602*4882a593Smuzhiyun       181,    9,    5,    3,    0,    0,    0,    0,  182,  183,
603*4882a593Smuzhiyun       187,    0,  188,    0,    0,  189,  190,  191,  196,  196,
604*4882a593Smuzhiyun 
605*4882a593Smuzhiyun       197,  197,  197,  198,  198,  199,  199,  199,  200,  200,
606*4882a593Smuzhiyun       200,  201,  201,  201,  194,  194,  194,  194,  194,  194,
607*4882a593Smuzhiyun       194,  194,  194,  194,  194,  194,  194,  194,  194,  194,
608*4882a593Smuzhiyun       194,  194,  194,  194,  194,  194,  194,  194,  194,  194,
609*4882a593Smuzhiyun       194,  194,  194,  194,  194,  194,  194,  194,  194,  194,
610*4882a593Smuzhiyun       194,  194,  194,  194,  194,  194,  194,  194,  194,  194,
611*4882a593Smuzhiyun       194,  194,  194,  194,  194,  194
612*4882a593Smuzhiyun     } ;
613*4882a593Smuzhiyun 
614*4882a593Smuzhiyun /* Table of booleans, true if rule could match eol. */
615*4882a593Smuzhiyun static const flex_int32_t yy_rule_can_match_eol[35] =
616*4882a593Smuzhiyun     {   0,
617*4882a593Smuzhiyun 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
618*4882a593Smuzhiyun     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,     };
619*4882a593Smuzhiyun 
620*4882a593Smuzhiyun static yy_state_type yy_last_accepting_state;
621*4882a593Smuzhiyun static char *yy_last_accepting_cpos;
622*4882a593Smuzhiyun 
623*4882a593Smuzhiyun extern int yy_flex_debug;
624*4882a593Smuzhiyun int yy_flex_debug = 0;
625*4882a593Smuzhiyun 
626*4882a593Smuzhiyun /* The intent behind this definition is that it'll catch
627*4882a593Smuzhiyun  * any uses of REJECT which flex missed.
628*4882a593Smuzhiyun  */
629*4882a593Smuzhiyun #define REJECT reject_used_but_not_detected
630*4882a593Smuzhiyun #define yymore() yymore_used_but_not_detected
631*4882a593Smuzhiyun #define YY_MORE_ADJ 0
632*4882a593Smuzhiyun #define YY_RESTORE_YY_MORE_OFFSET
633*4882a593Smuzhiyun char *yytext;
634*4882a593Smuzhiyun #line 1 "winprefslex.l"
635*4882a593Smuzhiyun #line 2 "winprefslex.l"
636*4882a593Smuzhiyun /*
637*4882a593Smuzhiyun  * Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved.
638*4882a593Smuzhiyun  * Copyright (C) Colin Harrison 2005-2008
639*4882a593Smuzhiyun  *
640*4882a593Smuzhiyun  * Permission is hereby granted, free of charge, to any person obtaining
641*4882a593Smuzhiyun  * a copy of this software and associated documentation files (the
642*4882a593Smuzhiyun  * "Software"), to deal in the Software without restriction, including
643*4882a593Smuzhiyun  * without limitation the rights to use, copy, modify, merge, publish,
644*4882a593Smuzhiyun  * distribute, sublicense, and/or sell copies of the Software, and to
645*4882a593Smuzhiyun  * permit persons to whom the Software is furnished to do so, subject to
646*4882a593Smuzhiyun  * the following conditions:
647*4882a593Smuzhiyun  *
648*4882a593Smuzhiyun  * The above copyright notice and this permission notice shall be
649*4882a593Smuzhiyun  * included in all copies or substantial portions of the Software.
650*4882a593Smuzhiyun  *
651*4882a593Smuzhiyun  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
652*4882a593Smuzhiyun  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
653*4882a593Smuzhiyun  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
654*4882a593Smuzhiyun  * NONINFRINGEMENT. IN NO EVENT SHALL THE XFREE86 PROJECT BE LIABLE FOR
655*4882a593Smuzhiyun  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
656*4882a593Smuzhiyun  * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
657*4882a593Smuzhiyun  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
658*4882a593Smuzhiyun  *
659*4882a593Smuzhiyun  * Except as contained in this notice, the name of the XFree86 Project
660*4882a593Smuzhiyun  * shall not be used in advertising or otherwise to promote the sale, use
661*4882a593Smuzhiyun  * or other dealings in this Software without prior written authorization
662*4882a593Smuzhiyun  * from the XFree86 Project.
663*4882a593Smuzhiyun  *
664*4882a593Smuzhiyun  * Authors:     Earle F. Philhower, III
665*4882a593Smuzhiyun  *              Colin Harrison
666*4882a593Smuzhiyun  */
667*4882a593Smuzhiyun /* $XFree86: $ */
668*4882a593Smuzhiyun 
669*4882a593Smuzhiyun #include <stdio.h>
670*4882a593Smuzhiyun #include <stdlib.h>
671*4882a593Smuzhiyun #include <string.h>
672*4882a593Smuzhiyun #include "winprefsyacc.h"
673*4882a593Smuzhiyun 
674*4882a593Smuzhiyun extern void ErrorF (const char* /*f*/, ...);
675*4882a593Smuzhiyun 
676*4882a593Smuzhiyun /* Copy the parsed string, must be free()d in yacc parser */
makestr(char * str)677*4882a593Smuzhiyun static char *makestr(char *str)
678*4882a593Smuzhiyun {
679*4882a593Smuzhiyun   char *ptr;
680*4882a593Smuzhiyun   ptr = malloc(strlen(str)+1);
681*4882a593Smuzhiyun   if (!ptr)
682*4882a593Smuzhiyun     {
683*4882a593Smuzhiyun       ErrorF ("winMultiWindowLex:makestr() out of memory\n");
684*4882a593Smuzhiyun       exit (-1);
685*4882a593Smuzhiyun     }
686*4882a593Smuzhiyun   strcpy(ptr, str);
687*4882a593Smuzhiyun   return ptr;
688*4882a593Smuzhiyun }
689*4882a593Smuzhiyun 
690*4882a593Smuzhiyun #line 690 "winprefslex.c"
691*4882a593Smuzhiyun #define YY_NO_INPUT 1
692*4882a593Smuzhiyun #line 692 "winprefslex.c"
693*4882a593Smuzhiyun 
694*4882a593Smuzhiyun #define INITIAL 0
695*4882a593Smuzhiyun 
696*4882a593Smuzhiyun #ifndef YY_NO_UNISTD_H
697*4882a593Smuzhiyun /* Special case for "unistd.h", since it is non-ANSI. We include it way
698*4882a593Smuzhiyun  * down here because we want the user's section 1 to have been scanned first.
699*4882a593Smuzhiyun  * The user has a chance to override it with an option.
700*4882a593Smuzhiyun  */
701*4882a593Smuzhiyun #include <unistd.h>
702*4882a593Smuzhiyun #endif
703*4882a593Smuzhiyun 
704*4882a593Smuzhiyun #ifndef YY_EXTRA_TYPE
705*4882a593Smuzhiyun #define YY_EXTRA_TYPE void *
706*4882a593Smuzhiyun #endif
707*4882a593Smuzhiyun 
708*4882a593Smuzhiyun static int yy_init_globals ( void );
709*4882a593Smuzhiyun 
710*4882a593Smuzhiyun /* Accessor methods to globals.
711*4882a593Smuzhiyun    These are made visible to non-reentrant scanners for convenience. */
712*4882a593Smuzhiyun 
713*4882a593Smuzhiyun int yylex_destroy ( void );
714*4882a593Smuzhiyun 
715*4882a593Smuzhiyun int yyget_debug ( void );
716*4882a593Smuzhiyun 
717*4882a593Smuzhiyun void yyset_debug ( int debug_flag  );
718*4882a593Smuzhiyun 
719*4882a593Smuzhiyun YY_EXTRA_TYPE yyget_extra ( void );
720*4882a593Smuzhiyun 
721*4882a593Smuzhiyun void yyset_extra ( YY_EXTRA_TYPE user_defined  );
722*4882a593Smuzhiyun 
723*4882a593Smuzhiyun FILE *yyget_in ( void );
724*4882a593Smuzhiyun 
725*4882a593Smuzhiyun void yyset_in  ( FILE * _in_str  );
726*4882a593Smuzhiyun 
727*4882a593Smuzhiyun FILE *yyget_out ( void );
728*4882a593Smuzhiyun 
729*4882a593Smuzhiyun void yyset_out  ( FILE * _out_str  );
730*4882a593Smuzhiyun 
731*4882a593Smuzhiyun 			int yyget_leng ( void );
732*4882a593Smuzhiyun 
733*4882a593Smuzhiyun char *yyget_text ( void );
734*4882a593Smuzhiyun 
735*4882a593Smuzhiyun int yyget_lineno ( void );
736*4882a593Smuzhiyun 
737*4882a593Smuzhiyun void yyset_lineno ( int _line_number  );
738*4882a593Smuzhiyun 
739*4882a593Smuzhiyun /* Macros after this point can all be overridden by user definitions in
740*4882a593Smuzhiyun  * section 1.
741*4882a593Smuzhiyun  */
742*4882a593Smuzhiyun 
743*4882a593Smuzhiyun #ifndef YY_SKIP_YYWRAP
744*4882a593Smuzhiyun #ifdef __cplusplus
745*4882a593Smuzhiyun extern "C" int yywrap ( void );
746*4882a593Smuzhiyun #else
747*4882a593Smuzhiyun extern int yywrap ( void );
748*4882a593Smuzhiyun #endif
749*4882a593Smuzhiyun #endif
750*4882a593Smuzhiyun 
751*4882a593Smuzhiyun #ifndef YY_NO_UNPUT
752*4882a593Smuzhiyun 
753*4882a593Smuzhiyun #endif
754*4882a593Smuzhiyun 
755*4882a593Smuzhiyun #ifndef yytext_ptr
756*4882a593Smuzhiyun static void yy_flex_strncpy ( char *, const char *, int );
757*4882a593Smuzhiyun #endif
758*4882a593Smuzhiyun 
759*4882a593Smuzhiyun #ifdef YY_NEED_STRLEN
760*4882a593Smuzhiyun static int yy_flex_strlen ( const char * );
761*4882a593Smuzhiyun #endif
762*4882a593Smuzhiyun 
763*4882a593Smuzhiyun #ifndef YY_NO_INPUT
764*4882a593Smuzhiyun #ifdef __cplusplus
765*4882a593Smuzhiyun static int yyinput ( void );
766*4882a593Smuzhiyun #else
767*4882a593Smuzhiyun static int input ( void );
768*4882a593Smuzhiyun #endif
769*4882a593Smuzhiyun 
770*4882a593Smuzhiyun #endif
771*4882a593Smuzhiyun 
772*4882a593Smuzhiyun /* Amount of stuff to slurp up with each read. */
773*4882a593Smuzhiyun #ifndef YY_READ_BUF_SIZE
774*4882a593Smuzhiyun #ifdef __ia64__
775*4882a593Smuzhiyun /* On IA-64, the buffer size is 16k, not 8k */
776*4882a593Smuzhiyun #define YY_READ_BUF_SIZE 16384
777*4882a593Smuzhiyun #else
778*4882a593Smuzhiyun #define YY_READ_BUF_SIZE 8192
779*4882a593Smuzhiyun #endif /* __ia64__ */
780*4882a593Smuzhiyun #endif
781*4882a593Smuzhiyun 
782*4882a593Smuzhiyun /* Copy whatever the last rule matched to the standard output. */
783*4882a593Smuzhiyun #ifndef ECHO
784*4882a593Smuzhiyun /* This used to be an fputs(), but since the string might contain NUL's,
785*4882a593Smuzhiyun  * we now use fwrite().
786*4882a593Smuzhiyun  */
787*4882a593Smuzhiyun #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
788*4882a593Smuzhiyun #endif
789*4882a593Smuzhiyun 
790*4882a593Smuzhiyun /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
791*4882a593Smuzhiyun  * is returned in "result".
792*4882a593Smuzhiyun  */
793*4882a593Smuzhiyun #ifndef YY_INPUT
794*4882a593Smuzhiyun #define YY_INPUT(buf,result,max_size) \
795*4882a593Smuzhiyun 	if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
796*4882a593Smuzhiyun 		{ \
797*4882a593Smuzhiyun 		int c = '*'; \
798*4882a593Smuzhiyun 		int n; \
799*4882a593Smuzhiyun 		for ( n = 0; n < max_size && \
800*4882a593Smuzhiyun 			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
801*4882a593Smuzhiyun 			buf[n] = (char) c; \
802*4882a593Smuzhiyun 		if ( c == '\n' ) \
803*4882a593Smuzhiyun 			buf[n++] = (char) c; \
804*4882a593Smuzhiyun 		if ( c == EOF && ferror( yyin ) ) \
805*4882a593Smuzhiyun 			YY_FATAL_ERROR( "input in flex scanner failed" ); \
806*4882a593Smuzhiyun 		result = n; \
807*4882a593Smuzhiyun 		} \
808*4882a593Smuzhiyun 	else \
809*4882a593Smuzhiyun 		{ \
810*4882a593Smuzhiyun 		errno=0; \
811*4882a593Smuzhiyun 		while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
812*4882a593Smuzhiyun 			{ \
813*4882a593Smuzhiyun 			if( errno != EINTR) \
814*4882a593Smuzhiyun 				{ \
815*4882a593Smuzhiyun 				YY_FATAL_ERROR( "input in flex scanner failed" ); \
816*4882a593Smuzhiyun 				break; \
817*4882a593Smuzhiyun 				} \
818*4882a593Smuzhiyun 			errno=0; \
819*4882a593Smuzhiyun 			clearerr(yyin); \
820*4882a593Smuzhiyun 			} \
821*4882a593Smuzhiyun 		}\
822*4882a593Smuzhiyun \
823*4882a593Smuzhiyun 
824*4882a593Smuzhiyun #endif
825*4882a593Smuzhiyun 
826*4882a593Smuzhiyun /* No semi-colon after return; correct usage is to write "yyterminate();" -
827*4882a593Smuzhiyun  * we don't want an extra ';' after the "return" because that will cause
828*4882a593Smuzhiyun  * some compilers to complain about unreachable statements.
829*4882a593Smuzhiyun  */
830*4882a593Smuzhiyun #ifndef yyterminate
831*4882a593Smuzhiyun #define yyterminate() return YY_NULL
832*4882a593Smuzhiyun #endif
833*4882a593Smuzhiyun 
834*4882a593Smuzhiyun /* Number of entries by which start-condition stack grows. */
835*4882a593Smuzhiyun #ifndef YY_START_STACK_INCR
836*4882a593Smuzhiyun #define YY_START_STACK_INCR 25
837*4882a593Smuzhiyun #endif
838*4882a593Smuzhiyun 
839*4882a593Smuzhiyun /* Report a fatal error. */
840*4882a593Smuzhiyun #ifndef YY_FATAL_ERROR
841*4882a593Smuzhiyun #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
842*4882a593Smuzhiyun #endif
843*4882a593Smuzhiyun 
844*4882a593Smuzhiyun /* end tables serialization structures and prototypes */
845*4882a593Smuzhiyun 
846*4882a593Smuzhiyun /* Default declaration of generated scanner - a define so the user can
847*4882a593Smuzhiyun  * easily add parameters.
848*4882a593Smuzhiyun  */
849*4882a593Smuzhiyun #ifndef YY_DECL
850*4882a593Smuzhiyun #define YY_DECL_IS_OURS 1
851*4882a593Smuzhiyun 
852*4882a593Smuzhiyun extern int yylex (void);
853*4882a593Smuzhiyun 
854*4882a593Smuzhiyun #define YY_DECL int yylex (void)
855*4882a593Smuzhiyun #endif /* !YY_DECL */
856*4882a593Smuzhiyun 
857*4882a593Smuzhiyun /* Code executed at the beginning of each rule, after yytext and yyleng
858*4882a593Smuzhiyun  * have been set up.
859*4882a593Smuzhiyun  */
860*4882a593Smuzhiyun #ifndef YY_USER_ACTION
861*4882a593Smuzhiyun #define YY_USER_ACTION
862*4882a593Smuzhiyun #endif
863*4882a593Smuzhiyun 
864*4882a593Smuzhiyun /* Code executed at the end of each rule. */
865*4882a593Smuzhiyun #ifndef YY_BREAK
866*4882a593Smuzhiyun #define YY_BREAK /*LINTED*/break;
867*4882a593Smuzhiyun #endif
868*4882a593Smuzhiyun 
869*4882a593Smuzhiyun #define YY_RULE_SETUP \
870*4882a593Smuzhiyun 	YY_USER_ACTION
871*4882a593Smuzhiyun 
872*4882a593Smuzhiyun /** The main scanner function which does all the work.
873*4882a593Smuzhiyun  */
874*4882a593Smuzhiyun YY_DECL
875*4882a593Smuzhiyun {
876*4882a593Smuzhiyun 	yy_state_type yy_current_state;
877*4882a593Smuzhiyun 	char *yy_cp, *yy_bp;
878*4882a593Smuzhiyun 	int yy_act;
879*4882a593Smuzhiyun 
880*4882a593Smuzhiyun 	if ( !(yy_init) )
881*4882a593Smuzhiyun 		{
882*4882a593Smuzhiyun 		(yy_init) = 1;
883*4882a593Smuzhiyun 
884*4882a593Smuzhiyun #ifdef YY_USER_INIT
885*4882a593Smuzhiyun 		YY_USER_INIT;
886*4882a593Smuzhiyun #endif
887*4882a593Smuzhiyun 
888*4882a593Smuzhiyun 		if ( ! (yy_start) )
889*4882a593Smuzhiyun 			(yy_start) = 1;	/* first start state */
890*4882a593Smuzhiyun 
891*4882a593Smuzhiyun 		if ( ! yyin )
892*4882a593Smuzhiyun 			yyin = stdin;
893*4882a593Smuzhiyun 
894*4882a593Smuzhiyun 		if ( ! yyout )
895*4882a593Smuzhiyun 			yyout = stdout;
896*4882a593Smuzhiyun 
897*4882a593Smuzhiyun 		if ( ! YY_CURRENT_BUFFER ) {
898*4882a593Smuzhiyun 			yyensure_buffer_stack ();
899*4882a593Smuzhiyun 			YY_CURRENT_BUFFER_LVALUE =
900*4882a593Smuzhiyun 				yy_create_buffer( yyin, YY_BUF_SIZE );
901*4882a593Smuzhiyun 		}
902*4882a593Smuzhiyun 
903*4882a593Smuzhiyun 		yy_load_buffer_state(  );
904*4882a593Smuzhiyun 		}
905*4882a593Smuzhiyun 
906*4882a593Smuzhiyun 	{
907*4882a593Smuzhiyun #line 63 "winprefslex.l"
908*4882a593Smuzhiyun 
909*4882a593Smuzhiyun #line 909 "winprefslex.c"
910*4882a593Smuzhiyun 
911*4882a593Smuzhiyun 	while ( /*CONSTCOND*/1 )		/* loops until end-of-file is reached */
912*4882a593Smuzhiyun 		{
913*4882a593Smuzhiyun 		yy_cp = (yy_c_buf_p);
914*4882a593Smuzhiyun 
915*4882a593Smuzhiyun 		/* Support of yytext. */
916*4882a593Smuzhiyun 		*yy_cp = (yy_hold_char);
917*4882a593Smuzhiyun 
918*4882a593Smuzhiyun 		/* yy_bp points to the position in yy_ch_buf of the start of
919*4882a593Smuzhiyun 		 * the current run.
920*4882a593Smuzhiyun 		 */
921*4882a593Smuzhiyun 		yy_bp = yy_cp;
922*4882a593Smuzhiyun 
923*4882a593Smuzhiyun 		yy_current_state = (yy_start);
924*4882a593Smuzhiyun yy_match:
925*4882a593Smuzhiyun 		do
926*4882a593Smuzhiyun 			{
927*4882a593Smuzhiyun 			YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
928*4882a593Smuzhiyun 			if ( yy_accept[yy_current_state] )
929*4882a593Smuzhiyun 				{
930*4882a593Smuzhiyun 				(yy_last_accepting_state) = yy_current_state;
931*4882a593Smuzhiyun 				(yy_last_accepting_cpos) = yy_cp;
932*4882a593Smuzhiyun 				}
933*4882a593Smuzhiyun 			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
934*4882a593Smuzhiyun 				{
935*4882a593Smuzhiyun 				yy_current_state = (int) yy_def[yy_current_state];
936*4882a593Smuzhiyun 				if ( yy_current_state >= 195 )
937*4882a593Smuzhiyun 					yy_c = yy_meta[yy_c];
938*4882a593Smuzhiyun 				}
939*4882a593Smuzhiyun 			yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
940*4882a593Smuzhiyun 			++yy_cp;
941*4882a593Smuzhiyun 			}
942*4882a593Smuzhiyun 		while ( yy_current_state != 194 );
943*4882a593Smuzhiyun 		yy_cp = (yy_last_accepting_cpos);
944*4882a593Smuzhiyun 		yy_current_state = (yy_last_accepting_state);
945*4882a593Smuzhiyun 
946*4882a593Smuzhiyun yy_find_action:
947*4882a593Smuzhiyun 		yy_act = yy_accept[yy_current_state];
948*4882a593Smuzhiyun 
949*4882a593Smuzhiyun 		YY_DO_BEFORE_ACTION;
950*4882a593Smuzhiyun 
951*4882a593Smuzhiyun 		if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
952*4882a593Smuzhiyun 			{
953*4882a593Smuzhiyun 			int yyl;
954*4882a593Smuzhiyun 			for ( yyl = 0; yyl < yyleng; ++yyl )
955*4882a593Smuzhiyun 				if ( yytext[yyl] == '\n' )
956*4882a593Smuzhiyun 
957*4882a593Smuzhiyun     yylineno++;
958*4882a593Smuzhiyun ;
959*4882a593Smuzhiyun 			}
960*4882a593Smuzhiyun 
961*4882a593Smuzhiyun do_action:	/* This label is used only to access EOF actions. */
962*4882a593Smuzhiyun 
963*4882a593Smuzhiyun 		switch ( yy_act )
964*4882a593Smuzhiyun 	{ /* beginning of action switch */
965*4882a593Smuzhiyun 			case 0: /* must back up */
966*4882a593Smuzhiyun 			/* undo the effects of YY_DO_BEFORE_ACTION */
967*4882a593Smuzhiyun 			*yy_cp = (yy_hold_char);
968*4882a593Smuzhiyun 			yy_cp = (yy_last_accepting_cpos);
969*4882a593Smuzhiyun 			yy_current_state = (yy_last_accepting_state);
970*4882a593Smuzhiyun 			goto yy_find_action;
971*4882a593Smuzhiyun 
972*4882a593Smuzhiyun case 1:
973*4882a593Smuzhiyun /* rule 1 can match eol */
974*4882a593Smuzhiyun YY_RULE_SETUP
975*4882a593Smuzhiyun #line 64 "winprefslex.l"
976*4882a593Smuzhiyun { /* comment */ return NEWLINE; }
977*4882a593Smuzhiyun 	YY_BREAK
978*4882a593Smuzhiyun case 2:
979*4882a593Smuzhiyun /* rule 2 can match eol */
980*4882a593Smuzhiyun YY_RULE_SETUP
981*4882a593Smuzhiyun #line 65 "winprefslex.l"
982*4882a593Smuzhiyun { /* comment */ return NEWLINE; }
983*4882a593Smuzhiyun 	YY_BREAK
984*4882a593Smuzhiyun case 3:
985*4882a593Smuzhiyun /* rule 3 can match eol */
986*4882a593Smuzhiyun YY_RULE_SETUP
987*4882a593Smuzhiyun #line 66 "winprefslex.l"
988*4882a593Smuzhiyun { return NEWLINE; }
989*4882a593Smuzhiyun 	YY_BREAK
990*4882a593Smuzhiyun case 4:
991*4882a593Smuzhiyun YY_RULE_SETUP
992*4882a593Smuzhiyun #line 67 "winprefslex.l"
993*4882a593Smuzhiyun { /* ignore whitespace */ }
994*4882a593Smuzhiyun 	YY_BREAK
995*4882a593Smuzhiyun case 5:
996*4882a593Smuzhiyun YY_RULE_SETUP
997*4882a593Smuzhiyun #line 68 "winprefslex.l"
998*4882a593Smuzhiyun { return MENU; }
999*4882a593Smuzhiyun 	YY_BREAK
1000*4882a593Smuzhiyun case 6:
1001*4882a593Smuzhiyun YY_RULE_SETUP
1002*4882a593Smuzhiyun #line 69 "winprefslex.l"
1003*4882a593Smuzhiyun { return ICONDIRECTORY; }
1004*4882a593Smuzhiyun 	YY_BREAK
1005*4882a593Smuzhiyun case 7:
1006*4882a593Smuzhiyun YY_RULE_SETUP
1007*4882a593Smuzhiyun #line 70 "winprefslex.l"
1008*4882a593Smuzhiyun { return DEFAULTICON; }
1009*4882a593Smuzhiyun 	YY_BREAK
1010*4882a593Smuzhiyun case 8:
1011*4882a593Smuzhiyun YY_RULE_SETUP
1012*4882a593Smuzhiyun #line 71 "winprefslex.l"
1013*4882a593Smuzhiyun { return ICONS; }
1014*4882a593Smuzhiyun 	YY_BREAK
1015*4882a593Smuzhiyun case 9:
1016*4882a593Smuzhiyun YY_RULE_SETUP
1017*4882a593Smuzhiyun #line 72 "winprefslex.l"
1018*4882a593Smuzhiyun { return STYLES; }
1019*4882a593Smuzhiyun 	YY_BREAK
1020*4882a593Smuzhiyun case 10:
1021*4882a593Smuzhiyun YY_RULE_SETUP
1022*4882a593Smuzhiyun #line 73 "winprefslex.l"
1023*4882a593Smuzhiyun { return TOPMOST; }
1024*4882a593Smuzhiyun 	YY_BREAK
1025*4882a593Smuzhiyun case 11:
1026*4882a593Smuzhiyun YY_RULE_SETUP
1027*4882a593Smuzhiyun #line 74 "winprefslex.l"
1028*4882a593Smuzhiyun { return MAXIMIZE; }
1029*4882a593Smuzhiyun 	YY_BREAK
1030*4882a593Smuzhiyun case 12:
1031*4882a593Smuzhiyun YY_RULE_SETUP
1032*4882a593Smuzhiyun #line 75 "winprefslex.l"
1033*4882a593Smuzhiyun { return MINIMIZE; }
1034*4882a593Smuzhiyun 	YY_BREAK
1035*4882a593Smuzhiyun case 13:
1036*4882a593Smuzhiyun YY_RULE_SETUP
1037*4882a593Smuzhiyun #line 76 "winprefslex.l"
1038*4882a593Smuzhiyun { return BOTTOM; }
1039*4882a593Smuzhiyun 	YY_BREAK
1040*4882a593Smuzhiyun case 14:
1041*4882a593Smuzhiyun YY_RULE_SETUP
1042*4882a593Smuzhiyun #line 77 "winprefslex.l"
1043*4882a593Smuzhiyun { return NOTITLE; }
1044*4882a593Smuzhiyun 	YY_BREAK
1045*4882a593Smuzhiyun case 15:
1046*4882a593Smuzhiyun YY_RULE_SETUP
1047*4882a593Smuzhiyun #line 78 "winprefslex.l"
1048*4882a593Smuzhiyun { return OUTLINE; }
1049*4882a593Smuzhiyun 	YY_BREAK
1050*4882a593Smuzhiyun case 16:
1051*4882a593Smuzhiyun YY_RULE_SETUP
1052*4882a593Smuzhiyun #line 79 "winprefslex.l"
1053*4882a593Smuzhiyun { return NOFRAME; }
1054*4882a593Smuzhiyun 	YY_BREAK
1055*4882a593Smuzhiyun case 17:
1056*4882a593Smuzhiyun YY_RULE_SETUP
1057*4882a593Smuzhiyun #line 80 "winprefslex.l"
1058*4882a593Smuzhiyun { return ROOTMENU; }
1059*4882a593Smuzhiyun 	YY_BREAK
1060*4882a593Smuzhiyun case 18:
1061*4882a593Smuzhiyun YY_RULE_SETUP
1062*4882a593Smuzhiyun #line 81 "winprefslex.l"
1063*4882a593Smuzhiyun { return DEFAULTSYSMENU; }
1064*4882a593Smuzhiyun 	YY_BREAK
1065*4882a593Smuzhiyun case 19:
1066*4882a593Smuzhiyun YY_RULE_SETUP
1067*4882a593Smuzhiyun #line 82 "winprefslex.l"
1068*4882a593Smuzhiyun { return SYSMENU; }
1069*4882a593Smuzhiyun 	YY_BREAK
1070*4882a593Smuzhiyun case 20:
1071*4882a593Smuzhiyun YY_RULE_SETUP
1072*4882a593Smuzhiyun #line 83 "winprefslex.l"
1073*4882a593Smuzhiyun { return SEPARATOR; }
1074*4882a593Smuzhiyun 	YY_BREAK
1075*4882a593Smuzhiyun case 21:
1076*4882a593Smuzhiyun YY_RULE_SETUP
1077*4882a593Smuzhiyun #line 84 "winprefslex.l"
1078*4882a593Smuzhiyun { return ATSTART; }
1079*4882a593Smuzhiyun 	YY_BREAK
1080*4882a593Smuzhiyun case 22:
1081*4882a593Smuzhiyun YY_RULE_SETUP
1082*4882a593Smuzhiyun #line 85 "winprefslex.l"
1083*4882a593Smuzhiyun { return ATEND; }
1084*4882a593Smuzhiyun 	YY_BREAK
1085*4882a593Smuzhiyun case 23:
1086*4882a593Smuzhiyun YY_RULE_SETUP
1087*4882a593Smuzhiyun #line 86 "winprefslex.l"
1088*4882a593Smuzhiyun { return EXEC; }
1089*4882a593Smuzhiyun 	YY_BREAK
1090*4882a593Smuzhiyun case 24:
1091*4882a593Smuzhiyun YY_RULE_SETUP
1092*4882a593Smuzhiyun #line 87 "winprefslex.l"
1093*4882a593Smuzhiyun { return ALWAYSONTOP; }
1094*4882a593Smuzhiyun 	YY_BREAK
1095*4882a593Smuzhiyun case 25:
1096*4882a593Smuzhiyun YY_RULE_SETUP
1097*4882a593Smuzhiyun #line 88 "winprefslex.l"
1098*4882a593Smuzhiyun { return DEBUGOUTPUT; }
1099*4882a593Smuzhiyun 	YY_BREAK
1100*4882a593Smuzhiyun case 26:
1101*4882a593Smuzhiyun YY_RULE_SETUP
1102*4882a593Smuzhiyun #line 89 "winprefslex.l"
1103*4882a593Smuzhiyun { return RELOAD; }
1104*4882a593Smuzhiyun 	YY_BREAK
1105*4882a593Smuzhiyun case 27:
1106*4882a593Smuzhiyun YY_RULE_SETUP
1107*4882a593Smuzhiyun #line 90 "winprefslex.l"
1108*4882a593Smuzhiyun { return TRAYICON; }
1109*4882a593Smuzhiyun 	YY_BREAK
1110*4882a593Smuzhiyun case 28:
1111*4882a593Smuzhiyun YY_RULE_SETUP
1112*4882a593Smuzhiyun #line 91 "winprefslex.l"
1113*4882a593Smuzhiyun { return FORCEEXIT; }
1114*4882a593Smuzhiyun 	YY_BREAK
1115*4882a593Smuzhiyun case 29:
1116*4882a593Smuzhiyun YY_RULE_SETUP
1117*4882a593Smuzhiyun #line 92 "winprefslex.l"
1118*4882a593Smuzhiyun { return SILENTEXIT; }
1119*4882a593Smuzhiyun 	YY_BREAK
1120*4882a593Smuzhiyun case 30:
1121*4882a593Smuzhiyun YY_RULE_SETUP
1122*4882a593Smuzhiyun #line 93 "winprefslex.l"
1123*4882a593Smuzhiyun { return LB; }
1124*4882a593Smuzhiyun 	YY_BREAK
1125*4882a593Smuzhiyun case 31:
1126*4882a593Smuzhiyun YY_RULE_SETUP
1127*4882a593Smuzhiyun #line 94 "winprefslex.l"
1128*4882a593Smuzhiyun { return RB; }
1129*4882a593Smuzhiyun 	YY_BREAK
1130*4882a593Smuzhiyun case 32:
1131*4882a593Smuzhiyun YY_RULE_SETUP
1132*4882a593Smuzhiyun #line 95 "winprefslex.l"
1133*4882a593Smuzhiyun { yylval.sVal = makestr(yytext+1); \
1134*4882a593Smuzhiyun                           yylval.sVal[strlen(yylval.sVal)-1] = 0; \
1135*4882a593Smuzhiyun                           return STRING; }
1136*4882a593Smuzhiyun 	YY_BREAK
1137*4882a593Smuzhiyun case 33:
1138*4882a593Smuzhiyun YY_RULE_SETUP
1139*4882a593Smuzhiyun #line 98 "winprefslex.l"
1140*4882a593Smuzhiyun { yylval.sVal = makestr(yytext); \
1141*4882a593Smuzhiyun                           return STRING; }
1142*4882a593Smuzhiyun 	YY_BREAK
1143*4882a593Smuzhiyun case 34:
1144*4882a593Smuzhiyun YY_RULE_SETUP
1145*4882a593Smuzhiyun #line 100 "winprefslex.l"
1146*4882a593Smuzhiyun ECHO;
1147*4882a593Smuzhiyun 	YY_BREAK
1148*4882a593Smuzhiyun #line 1148 "winprefslex.c"
1149*4882a593Smuzhiyun case YY_STATE_EOF(INITIAL):
1150*4882a593Smuzhiyun 	yyterminate();
1151*4882a593Smuzhiyun 
1152*4882a593Smuzhiyun 	case YY_END_OF_BUFFER:
1153*4882a593Smuzhiyun 		{
1154*4882a593Smuzhiyun 		/* Amount of text matched not including the EOB char. */
1155*4882a593Smuzhiyun 		int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1156*4882a593Smuzhiyun 
1157*4882a593Smuzhiyun 		/* Undo the effects of YY_DO_BEFORE_ACTION. */
1158*4882a593Smuzhiyun 		*yy_cp = (yy_hold_char);
1159*4882a593Smuzhiyun 		YY_RESTORE_YY_MORE_OFFSET
1160*4882a593Smuzhiyun 
1161*4882a593Smuzhiyun 		if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1162*4882a593Smuzhiyun 			{
1163*4882a593Smuzhiyun 			/* We're scanning a new file or input source.  It's
1164*4882a593Smuzhiyun 			 * possible that this happened because the user
1165*4882a593Smuzhiyun 			 * just pointed yyin at a new source and called
1166*4882a593Smuzhiyun 			 * yylex().  If so, then we have to assure
1167*4882a593Smuzhiyun 			 * consistency between YY_CURRENT_BUFFER and our
1168*4882a593Smuzhiyun 			 * globals.  Here is the right place to do so, because
1169*4882a593Smuzhiyun 			 * this is the first action (other than possibly a
1170*4882a593Smuzhiyun 			 * back-up) that will match for the new input source.
1171*4882a593Smuzhiyun 			 */
1172*4882a593Smuzhiyun 			(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1173*4882a593Smuzhiyun 			YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1174*4882a593Smuzhiyun 			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1175*4882a593Smuzhiyun 			}
1176*4882a593Smuzhiyun 
1177*4882a593Smuzhiyun 		/* Note that here we test for yy_c_buf_p "<=" to the position
1178*4882a593Smuzhiyun 		 * of the first EOB in the buffer, since yy_c_buf_p will
1179*4882a593Smuzhiyun 		 * already have been incremented past the NUL character
1180*4882a593Smuzhiyun 		 * (since all states make transitions on EOB to the
1181*4882a593Smuzhiyun 		 * end-of-buffer state).  Contrast this with the test
1182*4882a593Smuzhiyun 		 * in input().
1183*4882a593Smuzhiyun 		 */
1184*4882a593Smuzhiyun 		if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1185*4882a593Smuzhiyun 			{ /* This was really a NUL. */
1186*4882a593Smuzhiyun 			yy_state_type yy_next_state;
1187*4882a593Smuzhiyun 
1188*4882a593Smuzhiyun 			(yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1189*4882a593Smuzhiyun 
1190*4882a593Smuzhiyun 			yy_current_state = yy_get_previous_state(  );
1191*4882a593Smuzhiyun 
1192*4882a593Smuzhiyun 			/* Okay, we're now positioned to make the NUL
1193*4882a593Smuzhiyun 			 * transition.  We couldn't have
1194*4882a593Smuzhiyun 			 * yy_get_previous_state() go ahead and do it
1195*4882a593Smuzhiyun 			 * for us because it doesn't know how to deal
1196*4882a593Smuzhiyun 			 * with the possibility of jamming (and we don't
1197*4882a593Smuzhiyun 			 * want to build jamming into it because then it
1198*4882a593Smuzhiyun 			 * will run more slowly).
1199*4882a593Smuzhiyun 			 */
1200*4882a593Smuzhiyun 
1201*4882a593Smuzhiyun 			yy_next_state = yy_try_NUL_trans( yy_current_state );
1202*4882a593Smuzhiyun 
1203*4882a593Smuzhiyun 			yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1204*4882a593Smuzhiyun 
1205*4882a593Smuzhiyun 			if ( yy_next_state )
1206*4882a593Smuzhiyun 				{
1207*4882a593Smuzhiyun 				/* Consume the NUL. */
1208*4882a593Smuzhiyun 				yy_cp = ++(yy_c_buf_p);
1209*4882a593Smuzhiyun 				yy_current_state = yy_next_state;
1210*4882a593Smuzhiyun 				goto yy_match;
1211*4882a593Smuzhiyun 				}
1212*4882a593Smuzhiyun 
1213*4882a593Smuzhiyun 			else
1214*4882a593Smuzhiyun 				{
1215*4882a593Smuzhiyun 				yy_cp = (yy_last_accepting_cpos);
1216*4882a593Smuzhiyun 				yy_current_state = (yy_last_accepting_state);
1217*4882a593Smuzhiyun 				goto yy_find_action;
1218*4882a593Smuzhiyun 				}
1219*4882a593Smuzhiyun 			}
1220*4882a593Smuzhiyun 
1221*4882a593Smuzhiyun 		else switch ( yy_get_next_buffer(  ) )
1222*4882a593Smuzhiyun 			{
1223*4882a593Smuzhiyun 			case EOB_ACT_END_OF_FILE:
1224*4882a593Smuzhiyun 				{
1225*4882a593Smuzhiyun 				(yy_did_buffer_switch_on_eof) = 0;
1226*4882a593Smuzhiyun 
1227*4882a593Smuzhiyun 				if ( yywrap(  ) )
1228*4882a593Smuzhiyun 					{
1229*4882a593Smuzhiyun 					/* Note: because we've taken care in
1230*4882a593Smuzhiyun 					 * yy_get_next_buffer() to have set up
1231*4882a593Smuzhiyun 					 * yytext, we can now set up
1232*4882a593Smuzhiyun 					 * yy_c_buf_p so that if some total
1233*4882a593Smuzhiyun 					 * hoser (like flex itself) wants to
1234*4882a593Smuzhiyun 					 * call the scanner after we return the
1235*4882a593Smuzhiyun 					 * YY_NULL, it'll still work - another
1236*4882a593Smuzhiyun 					 * YY_NULL will get returned.
1237*4882a593Smuzhiyun 					 */
1238*4882a593Smuzhiyun 					(yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
1239*4882a593Smuzhiyun 
1240*4882a593Smuzhiyun 					yy_act = YY_STATE_EOF(YY_START);
1241*4882a593Smuzhiyun 					goto do_action;
1242*4882a593Smuzhiyun 					}
1243*4882a593Smuzhiyun 
1244*4882a593Smuzhiyun 				else
1245*4882a593Smuzhiyun 					{
1246*4882a593Smuzhiyun 					if ( ! (yy_did_buffer_switch_on_eof) )
1247*4882a593Smuzhiyun 						YY_NEW_FILE;
1248*4882a593Smuzhiyun 					}
1249*4882a593Smuzhiyun 				break;
1250*4882a593Smuzhiyun 				}
1251*4882a593Smuzhiyun 
1252*4882a593Smuzhiyun 			case EOB_ACT_CONTINUE_SCAN:
1253*4882a593Smuzhiyun 				(yy_c_buf_p) =
1254*4882a593Smuzhiyun 					(yytext_ptr) + yy_amount_of_matched_text;
1255*4882a593Smuzhiyun 
1256*4882a593Smuzhiyun 				yy_current_state = yy_get_previous_state(  );
1257*4882a593Smuzhiyun 
1258*4882a593Smuzhiyun 				yy_cp = (yy_c_buf_p);
1259*4882a593Smuzhiyun 				yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1260*4882a593Smuzhiyun 				goto yy_match;
1261*4882a593Smuzhiyun 
1262*4882a593Smuzhiyun 			case EOB_ACT_LAST_MATCH:
1263*4882a593Smuzhiyun 				(yy_c_buf_p) =
1264*4882a593Smuzhiyun 				&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1265*4882a593Smuzhiyun 
1266*4882a593Smuzhiyun 				yy_current_state = yy_get_previous_state(  );
1267*4882a593Smuzhiyun 
1268*4882a593Smuzhiyun 				yy_cp = (yy_c_buf_p);
1269*4882a593Smuzhiyun 				yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1270*4882a593Smuzhiyun 				goto yy_find_action;
1271*4882a593Smuzhiyun 			}
1272*4882a593Smuzhiyun 		break;
1273*4882a593Smuzhiyun 		}
1274*4882a593Smuzhiyun 
1275*4882a593Smuzhiyun 	default:
1276*4882a593Smuzhiyun 		YY_FATAL_ERROR(
1277*4882a593Smuzhiyun 			"fatal flex scanner internal error--no action found" );
1278*4882a593Smuzhiyun 	} /* end of action switch */
1279*4882a593Smuzhiyun 		} /* end of scanning one token */
1280*4882a593Smuzhiyun 	} /* end of user's declarations */
1281*4882a593Smuzhiyun } /* end of yylex */
1282*4882a593Smuzhiyun 
1283*4882a593Smuzhiyun /* yy_get_next_buffer - try to read in a new buffer
1284*4882a593Smuzhiyun  *
1285*4882a593Smuzhiyun  * Returns a code representing an action:
1286*4882a593Smuzhiyun  *	EOB_ACT_LAST_MATCH -
1287*4882a593Smuzhiyun  *	EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1288*4882a593Smuzhiyun  *	EOB_ACT_END_OF_FILE - end of file
1289*4882a593Smuzhiyun  */
yy_get_next_buffer(void)1290*4882a593Smuzhiyun static int yy_get_next_buffer (void)
1291*4882a593Smuzhiyun {
1292*4882a593Smuzhiyun     	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1293*4882a593Smuzhiyun 	char *source = (yytext_ptr);
1294*4882a593Smuzhiyun 	int number_to_move, i;
1295*4882a593Smuzhiyun 	int ret_val;
1296*4882a593Smuzhiyun 
1297*4882a593Smuzhiyun 	if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1298*4882a593Smuzhiyun 		YY_FATAL_ERROR(
1299*4882a593Smuzhiyun 		"fatal flex scanner internal error--end of buffer missed" );
1300*4882a593Smuzhiyun 
1301*4882a593Smuzhiyun 	if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1302*4882a593Smuzhiyun 		{ /* Don't try to fill the buffer, so this is an EOF. */
1303*4882a593Smuzhiyun 		if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1304*4882a593Smuzhiyun 			{
1305*4882a593Smuzhiyun 			/* We matched a single character, the EOB, so
1306*4882a593Smuzhiyun 			 * treat this as a final EOF.
1307*4882a593Smuzhiyun 			 */
1308*4882a593Smuzhiyun 			return EOB_ACT_END_OF_FILE;
1309*4882a593Smuzhiyun 			}
1310*4882a593Smuzhiyun 
1311*4882a593Smuzhiyun 		else
1312*4882a593Smuzhiyun 			{
1313*4882a593Smuzhiyun 			/* We matched some text prior to the EOB, first
1314*4882a593Smuzhiyun 			 * process it.
1315*4882a593Smuzhiyun 			 */
1316*4882a593Smuzhiyun 			return EOB_ACT_LAST_MATCH;
1317*4882a593Smuzhiyun 			}
1318*4882a593Smuzhiyun 		}
1319*4882a593Smuzhiyun 
1320*4882a593Smuzhiyun 	/* Try to read more data. */
1321*4882a593Smuzhiyun 
1322*4882a593Smuzhiyun 	/* First move last chars to start of buffer. */
1323*4882a593Smuzhiyun 	number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
1324*4882a593Smuzhiyun 
1325*4882a593Smuzhiyun 	for ( i = 0; i < number_to_move; ++i )
1326*4882a593Smuzhiyun 		*(dest++) = *(source++);
1327*4882a593Smuzhiyun 
1328*4882a593Smuzhiyun 	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1329*4882a593Smuzhiyun 		/* don't do the read, it's not guaranteed to return an EOF,
1330*4882a593Smuzhiyun 		 * just force an EOF
1331*4882a593Smuzhiyun 		 */
1332*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1333*4882a593Smuzhiyun 
1334*4882a593Smuzhiyun 	else
1335*4882a593Smuzhiyun 		{
1336*4882a593Smuzhiyun 			int num_to_read =
1337*4882a593Smuzhiyun 			YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1338*4882a593Smuzhiyun 
1339*4882a593Smuzhiyun 		while ( num_to_read <= 0 )
1340*4882a593Smuzhiyun 			{ /* Not enough room in the buffer - grow it. */
1341*4882a593Smuzhiyun 
1342*4882a593Smuzhiyun 			/* just a shorter name for the current buffer */
1343*4882a593Smuzhiyun 			YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
1344*4882a593Smuzhiyun 
1345*4882a593Smuzhiyun 			int yy_c_buf_p_offset =
1346*4882a593Smuzhiyun 				(int) ((yy_c_buf_p) - b->yy_ch_buf);
1347*4882a593Smuzhiyun 
1348*4882a593Smuzhiyun 			if ( b->yy_is_our_buffer )
1349*4882a593Smuzhiyun 				{
1350*4882a593Smuzhiyun 				int new_size = b->yy_buf_size * 2;
1351*4882a593Smuzhiyun 
1352*4882a593Smuzhiyun 				if ( new_size <= 0 )
1353*4882a593Smuzhiyun 					b->yy_buf_size += b->yy_buf_size / 8;
1354*4882a593Smuzhiyun 				else
1355*4882a593Smuzhiyun 					b->yy_buf_size *= 2;
1356*4882a593Smuzhiyun 
1357*4882a593Smuzhiyun 				b->yy_ch_buf = (char *)
1358*4882a593Smuzhiyun 					/* Include room in for 2 EOB chars. */
1359*4882a593Smuzhiyun 					yyrealloc( (void *) b->yy_ch_buf,
1360*4882a593Smuzhiyun 							 (yy_size_t) (b->yy_buf_size + 2)  );
1361*4882a593Smuzhiyun 				}
1362*4882a593Smuzhiyun 			else
1363*4882a593Smuzhiyun 				/* Can't grow it, we don't own it. */
1364*4882a593Smuzhiyun 				b->yy_ch_buf = NULL;
1365*4882a593Smuzhiyun 
1366*4882a593Smuzhiyun 			if ( ! b->yy_ch_buf )
1367*4882a593Smuzhiyun 				YY_FATAL_ERROR(
1368*4882a593Smuzhiyun 				"fatal error - scanner input buffer overflow" );
1369*4882a593Smuzhiyun 
1370*4882a593Smuzhiyun 			(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1371*4882a593Smuzhiyun 
1372*4882a593Smuzhiyun 			num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1373*4882a593Smuzhiyun 						number_to_move - 1;
1374*4882a593Smuzhiyun 
1375*4882a593Smuzhiyun 			}
1376*4882a593Smuzhiyun 
1377*4882a593Smuzhiyun 		if ( num_to_read > YY_READ_BUF_SIZE )
1378*4882a593Smuzhiyun 			num_to_read = YY_READ_BUF_SIZE;
1379*4882a593Smuzhiyun 
1380*4882a593Smuzhiyun 		/* Read in more data. */
1381*4882a593Smuzhiyun 		YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1382*4882a593Smuzhiyun 			(yy_n_chars), num_to_read );
1383*4882a593Smuzhiyun 
1384*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1385*4882a593Smuzhiyun 		}
1386*4882a593Smuzhiyun 
1387*4882a593Smuzhiyun 	if ( (yy_n_chars) == 0 )
1388*4882a593Smuzhiyun 		{
1389*4882a593Smuzhiyun 		if ( number_to_move == YY_MORE_ADJ )
1390*4882a593Smuzhiyun 			{
1391*4882a593Smuzhiyun 			ret_val = EOB_ACT_END_OF_FILE;
1392*4882a593Smuzhiyun 			yyrestart( yyin  );
1393*4882a593Smuzhiyun 			}
1394*4882a593Smuzhiyun 
1395*4882a593Smuzhiyun 		else
1396*4882a593Smuzhiyun 			{
1397*4882a593Smuzhiyun 			ret_val = EOB_ACT_LAST_MATCH;
1398*4882a593Smuzhiyun 			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1399*4882a593Smuzhiyun 				YY_BUFFER_EOF_PENDING;
1400*4882a593Smuzhiyun 			}
1401*4882a593Smuzhiyun 		}
1402*4882a593Smuzhiyun 
1403*4882a593Smuzhiyun 	else
1404*4882a593Smuzhiyun 		ret_val = EOB_ACT_CONTINUE_SCAN;
1405*4882a593Smuzhiyun 
1406*4882a593Smuzhiyun 	if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1407*4882a593Smuzhiyun 		/* Extend the array by 50%, plus the number we really need. */
1408*4882a593Smuzhiyun 		int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1409*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1410*4882a593Smuzhiyun 			(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size  );
1411*4882a593Smuzhiyun 		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1412*4882a593Smuzhiyun 			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1413*4882a593Smuzhiyun 		/* "- 2" to take care of EOB's */
1414*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
1415*4882a593Smuzhiyun 	}
1416*4882a593Smuzhiyun 
1417*4882a593Smuzhiyun 	(yy_n_chars) += number_to_move;
1418*4882a593Smuzhiyun 	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
1419*4882a593Smuzhiyun 	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
1420*4882a593Smuzhiyun 
1421*4882a593Smuzhiyun 	(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1422*4882a593Smuzhiyun 
1423*4882a593Smuzhiyun 	return ret_val;
1424*4882a593Smuzhiyun }
1425*4882a593Smuzhiyun 
1426*4882a593Smuzhiyun /* yy_get_previous_state - get the state just before the EOB char was reached */
1427*4882a593Smuzhiyun 
yy_get_previous_state(void)1428*4882a593Smuzhiyun     static yy_state_type yy_get_previous_state (void)
1429*4882a593Smuzhiyun {
1430*4882a593Smuzhiyun 	yy_state_type yy_current_state;
1431*4882a593Smuzhiyun 	char *yy_cp;
1432*4882a593Smuzhiyun 
1433*4882a593Smuzhiyun 	yy_current_state = (yy_start);
1434*4882a593Smuzhiyun 
1435*4882a593Smuzhiyun 	for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1436*4882a593Smuzhiyun 		{
1437*4882a593Smuzhiyun 		YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1438*4882a593Smuzhiyun 		if ( yy_accept[yy_current_state] )
1439*4882a593Smuzhiyun 			{
1440*4882a593Smuzhiyun 			(yy_last_accepting_state) = yy_current_state;
1441*4882a593Smuzhiyun 			(yy_last_accepting_cpos) = yy_cp;
1442*4882a593Smuzhiyun 			}
1443*4882a593Smuzhiyun 		while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1444*4882a593Smuzhiyun 			{
1445*4882a593Smuzhiyun 			yy_current_state = (int) yy_def[yy_current_state];
1446*4882a593Smuzhiyun 			if ( yy_current_state >= 195 )
1447*4882a593Smuzhiyun 				yy_c = yy_meta[yy_c];
1448*4882a593Smuzhiyun 			}
1449*4882a593Smuzhiyun 		yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1450*4882a593Smuzhiyun 		}
1451*4882a593Smuzhiyun 
1452*4882a593Smuzhiyun 	return yy_current_state;
1453*4882a593Smuzhiyun }
1454*4882a593Smuzhiyun 
1455*4882a593Smuzhiyun /* yy_try_NUL_trans - try to make a transition on the NUL character
1456*4882a593Smuzhiyun  *
1457*4882a593Smuzhiyun  * synopsis
1458*4882a593Smuzhiyun  *	next_state = yy_try_NUL_trans( current_state );
1459*4882a593Smuzhiyun  */
yy_try_NUL_trans(yy_state_type yy_current_state)1460*4882a593Smuzhiyun     static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state )
1461*4882a593Smuzhiyun {
1462*4882a593Smuzhiyun 	int yy_is_jam;
1463*4882a593Smuzhiyun     	char *yy_cp = (yy_c_buf_p);
1464*4882a593Smuzhiyun 
1465*4882a593Smuzhiyun 	YY_CHAR yy_c = 1;
1466*4882a593Smuzhiyun 	if ( yy_accept[yy_current_state] )
1467*4882a593Smuzhiyun 		{
1468*4882a593Smuzhiyun 		(yy_last_accepting_state) = yy_current_state;
1469*4882a593Smuzhiyun 		(yy_last_accepting_cpos) = yy_cp;
1470*4882a593Smuzhiyun 		}
1471*4882a593Smuzhiyun 	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1472*4882a593Smuzhiyun 		{
1473*4882a593Smuzhiyun 		yy_current_state = (int) yy_def[yy_current_state];
1474*4882a593Smuzhiyun 		if ( yy_current_state >= 195 )
1475*4882a593Smuzhiyun 			yy_c = yy_meta[yy_c];
1476*4882a593Smuzhiyun 		}
1477*4882a593Smuzhiyun 	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1478*4882a593Smuzhiyun 	yy_is_jam = (yy_current_state == 194);
1479*4882a593Smuzhiyun 
1480*4882a593Smuzhiyun 		return yy_is_jam ? 0 : yy_current_state;
1481*4882a593Smuzhiyun }
1482*4882a593Smuzhiyun 
1483*4882a593Smuzhiyun #ifndef YY_NO_UNPUT
1484*4882a593Smuzhiyun 
1485*4882a593Smuzhiyun #endif
1486*4882a593Smuzhiyun 
1487*4882a593Smuzhiyun #ifndef YY_NO_INPUT
1488*4882a593Smuzhiyun #ifdef __cplusplus
yyinput(void)1489*4882a593Smuzhiyun     static int yyinput (void)
1490*4882a593Smuzhiyun #else
1491*4882a593Smuzhiyun     static int input  (void)
1492*4882a593Smuzhiyun #endif
1493*4882a593Smuzhiyun 
1494*4882a593Smuzhiyun {
1495*4882a593Smuzhiyun 	int c;
1496*4882a593Smuzhiyun 
1497*4882a593Smuzhiyun 	*(yy_c_buf_p) = (yy_hold_char);
1498*4882a593Smuzhiyun 
1499*4882a593Smuzhiyun 	if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1500*4882a593Smuzhiyun 		{
1501*4882a593Smuzhiyun 		/* yy_c_buf_p now points to the character we want to return.
1502*4882a593Smuzhiyun 		 * If this occurs *before* the EOB characters, then it's a
1503*4882a593Smuzhiyun 		 * valid NUL; if not, then we've hit the end of the buffer.
1504*4882a593Smuzhiyun 		 */
1505*4882a593Smuzhiyun 		if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1506*4882a593Smuzhiyun 			/* This was really a NUL. */
1507*4882a593Smuzhiyun 			*(yy_c_buf_p) = '\0';
1508*4882a593Smuzhiyun 
1509*4882a593Smuzhiyun 		else
1510*4882a593Smuzhiyun 			{ /* need more input */
1511*4882a593Smuzhiyun 			int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
1512*4882a593Smuzhiyun 			++(yy_c_buf_p);
1513*4882a593Smuzhiyun 
1514*4882a593Smuzhiyun 			switch ( yy_get_next_buffer(  ) )
1515*4882a593Smuzhiyun 				{
1516*4882a593Smuzhiyun 				case EOB_ACT_LAST_MATCH:
1517*4882a593Smuzhiyun 					/* This happens because yy_g_n_b()
1518*4882a593Smuzhiyun 					 * sees that we've accumulated a
1519*4882a593Smuzhiyun 					 * token and flags that we need to
1520*4882a593Smuzhiyun 					 * try matching the token before
1521*4882a593Smuzhiyun 					 * proceeding.  But for input(),
1522*4882a593Smuzhiyun 					 * there's no matching to consider.
1523*4882a593Smuzhiyun 					 * So convert the EOB_ACT_LAST_MATCH
1524*4882a593Smuzhiyun 					 * to EOB_ACT_END_OF_FILE.
1525*4882a593Smuzhiyun 					 */
1526*4882a593Smuzhiyun 
1527*4882a593Smuzhiyun 					/* Reset buffer status. */
1528*4882a593Smuzhiyun 					yyrestart( yyin );
1529*4882a593Smuzhiyun 
1530*4882a593Smuzhiyun 					/*FALLTHROUGH*/
1531*4882a593Smuzhiyun 
1532*4882a593Smuzhiyun 				case EOB_ACT_END_OF_FILE:
1533*4882a593Smuzhiyun 					{
1534*4882a593Smuzhiyun 					if ( yywrap(  ) )
1535*4882a593Smuzhiyun 						return 0;
1536*4882a593Smuzhiyun 
1537*4882a593Smuzhiyun 					if ( ! (yy_did_buffer_switch_on_eof) )
1538*4882a593Smuzhiyun 						YY_NEW_FILE;
1539*4882a593Smuzhiyun #ifdef __cplusplus
1540*4882a593Smuzhiyun 					return yyinput();
1541*4882a593Smuzhiyun #else
1542*4882a593Smuzhiyun 					return input();
1543*4882a593Smuzhiyun #endif
1544*4882a593Smuzhiyun 					}
1545*4882a593Smuzhiyun 
1546*4882a593Smuzhiyun 				case EOB_ACT_CONTINUE_SCAN:
1547*4882a593Smuzhiyun 					(yy_c_buf_p) = (yytext_ptr) + offset;
1548*4882a593Smuzhiyun 					break;
1549*4882a593Smuzhiyun 				}
1550*4882a593Smuzhiyun 			}
1551*4882a593Smuzhiyun 		}
1552*4882a593Smuzhiyun 
1553*4882a593Smuzhiyun 	c = *(unsigned char *) (yy_c_buf_p);	/* cast for 8-bit char's */
1554*4882a593Smuzhiyun 	*(yy_c_buf_p) = '\0';	/* preserve yytext */
1555*4882a593Smuzhiyun 	(yy_hold_char) = *++(yy_c_buf_p);
1556*4882a593Smuzhiyun 
1557*4882a593Smuzhiyun 	if ( c == '\n' )
1558*4882a593Smuzhiyun 
1559*4882a593Smuzhiyun     yylineno++;
1560*4882a593Smuzhiyun ;
1561*4882a593Smuzhiyun 
1562*4882a593Smuzhiyun 	return c;
1563*4882a593Smuzhiyun }
1564*4882a593Smuzhiyun #endif	/* ifndef YY_NO_INPUT */
1565*4882a593Smuzhiyun 
1566*4882a593Smuzhiyun /** Immediately switch to a different input stream.
1567*4882a593Smuzhiyun  * @param input_file A readable stream.
1568*4882a593Smuzhiyun  *
1569*4882a593Smuzhiyun  * @note This function does not reset the start condition to @c INITIAL .
1570*4882a593Smuzhiyun  */
yyrestart(FILE * input_file)1571*4882a593Smuzhiyun     void yyrestart  (FILE * input_file )
1572*4882a593Smuzhiyun {
1573*4882a593Smuzhiyun 
1574*4882a593Smuzhiyun 	if ( ! YY_CURRENT_BUFFER ){
1575*4882a593Smuzhiyun         yyensure_buffer_stack ();
1576*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE =
1577*4882a593Smuzhiyun             yy_create_buffer( yyin, YY_BUF_SIZE );
1578*4882a593Smuzhiyun 	}
1579*4882a593Smuzhiyun 
1580*4882a593Smuzhiyun 	yy_init_buffer( YY_CURRENT_BUFFER, input_file );
1581*4882a593Smuzhiyun 	yy_load_buffer_state(  );
1582*4882a593Smuzhiyun }
1583*4882a593Smuzhiyun 
1584*4882a593Smuzhiyun /** Switch to a different input buffer.
1585*4882a593Smuzhiyun  * @param new_buffer The new input buffer.
1586*4882a593Smuzhiyun  *
1587*4882a593Smuzhiyun  */
yy_switch_to_buffer(YY_BUFFER_STATE new_buffer)1588*4882a593Smuzhiyun     void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
1589*4882a593Smuzhiyun {
1590*4882a593Smuzhiyun 
1591*4882a593Smuzhiyun 	/* TODO. We should be able to replace this entire function body
1592*4882a593Smuzhiyun 	 * with
1593*4882a593Smuzhiyun 	 *		yypop_buffer_state();
1594*4882a593Smuzhiyun 	 *		yypush_buffer_state(new_buffer);
1595*4882a593Smuzhiyun      */
1596*4882a593Smuzhiyun 	yyensure_buffer_stack ();
1597*4882a593Smuzhiyun 	if ( YY_CURRENT_BUFFER == new_buffer )
1598*4882a593Smuzhiyun 		return;
1599*4882a593Smuzhiyun 
1600*4882a593Smuzhiyun 	if ( YY_CURRENT_BUFFER )
1601*4882a593Smuzhiyun 		{
1602*4882a593Smuzhiyun 		/* Flush out information for old buffer. */
1603*4882a593Smuzhiyun 		*(yy_c_buf_p) = (yy_hold_char);
1604*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1605*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1606*4882a593Smuzhiyun 		}
1607*4882a593Smuzhiyun 
1608*4882a593Smuzhiyun 	YY_CURRENT_BUFFER_LVALUE = new_buffer;
1609*4882a593Smuzhiyun 	yy_load_buffer_state(  );
1610*4882a593Smuzhiyun 
1611*4882a593Smuzhiyun 	/* We don't actually know whether we did this switch during
1612*4882a593Smuzhiyun 	 * EOF (yywrap()) processing, but the only time this flag
1613*4882a593Smuzhiyun 	 * is looked at is after yywrap() is called, so it's safe
1614*4882a593Smuzhiyun 	 * to go ahead and always set it.
1615*4882a593Smuzhiyun 	 */
1616*4882a593Smuzhiyun 	(yy_did_buffer_switch_on_eof) = 1;
1617*4882a593Smuzhiyun }
1618*4882a593Smuzhiyun 
yy_load_buffer_state(void)1619*4882a593Smuzhiyun static void yy_load_buffer_state  (void)
1620*4882a593Smuzhiyun {
1621*4882a593Smuzhiyun     	(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1622*4882a593Smuzhiyun 	(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1623*4882a593Smuzhiyun 	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1624*4882a593Smuzhiyun 	(yy_hold_char) = *(yy_c_buf_p);
1625*4882a593Smuzhiyun }
1626*4882a593Smuzhiyun 
1627*4882a593Smuzhiyun /** Allocate and initialize an input buffer state.
1628*4882a593Smuzhiyun  * @param file A readable stream.
1629*4882a593Smuzhiyun  * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1630*4882a593Smuzhiyun  *
1631*4882a593Smuzhiyun  * @return the allocated buffer state.
1632*4882a593Smuzhiyun  */
yy_create_buffer(FILE * file,int size)1633*4882a593Smuzhiyun     YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size )
1634*4882a593Smuzhiyun {
1635*4882a593Smuzhiyun 	YY_BUFFER_STATE b;
1636*4882a593Smuzhiyun 
1637*4882a593Smuzhiyun 	b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state )  );
1638*4882a593Smuzhiyun 	if ( ! b )
1639*4882a593Smuzhiyun 		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1640*4882a593Smuzhiyun 
1641*4882a593Smuzhiyun 	b->yy_buf_size = size;
1642*4882a593Smuzhiyun 
1643*4882a593Smuzhiyun 	/* yy_ch_buf has to be 2 characters longer than the size given because
1644*4882a593Smuzhiyun 	 * we need to put in 2 end-of-buffer characters.
1645*4882a593Smuzhiyun 	 */
1646*4882a593Smuzhiyun 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
1647*4882a593Smuzhiyun 	if ( ! b->yy_ch_buf )
1648*4882a593Smuzhiyun 		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1649*4882a593Smuzhiyun 
1650*4882a593Smuzhiyun 	b->yy_is_our_buffer = 1;
1651*4882a593Smuzhiyun 
1652*4882a593Smuzhiyun 	yy_init_buffer( b, file );
1653*4882a593Smuzhiyun 
1654*4882a593Smuzhiyun 	return b;
1655*4882a593Smuzhiyun }
1656*4882a593Smuzhiyun 
1657*4882a593Smuzhiyun /** Destroy the buffer.
1658*4882a593Smuzhiyun  * @param b a buffer created with yy_create_buffer()
1659*4882a593Smuzhiyun  *
1660*4882a593Smuzhiyun  */
yy_delete_buffer(YY_BUFFER_STATE b)1661*4882a593Smuzhiyun     void yy_delete_buffer (YY_BUFFER_STATE  b )
1662*4882a593Smuzhiyun {
1663*4882a593Smuzhiyun 
1664*4882a593Smuzhiyun 	if ( ! b )
1665*4882a593Smuzhiyun 		return;
1666*4882a593Smuzhiyun 
1667*4882a593Smuzhiyun 	if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1668*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1669*4882a593Smuzhiyun 
1670*4882a593Smuzhiyun 	if ( b->yy_is_our_buffer )
1671*4882a593Smuzhiyun 		yyfree( (void *) b->yy_ch_buf  );
1672*4882a593Smuzhiyun 
1673*4882a593Smuzhiyun 	yyfree( (void *) b  );
1674*4882a593Smuzhiyun }
1675*4882a593Smuzhiyun 
1676*4882a593Smuzhiyun /* Initializes or reinitializes a buffer.
1677*4882a593Smuzhiyun  * This function is sometimes called more than once on the same buffer,
1678*4882a593Smuzhiyun  * such as during a yyrestart() or at EOF.
1679*4882a593Smuzhiyun  */
yy_init_buffer(YY_BUFFER_STATE b,FILE * file)1680*4882a593Smuzhiyun     static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file )
1681*4882a593Smuzhiyun 
1682*4882a593Smuzhiyun {
1683*4882a593Smuzhiyun 	int oerrno = errno;
1684*4882a593Smuzhiyun 
1685*4882a593Smuzhiyun 	yy_flush_buffer( b );
1686*4882a593Smuzhiyun 
1687*4882a593Smuzhiyun 	b->yy_input_file = file;
1688*4882a593Smuzhiyun 	b->yy_fill_buffer = 1;
1689*4882a593Smuzhiyun 
1690*4882a593Smuzhiyun     /* If b is the current buffer, then yy_init_buffer was _probably_
1691*4882a593Smuzhiyun      * called from yyrestart() or through yy_get_next_buffer.
1692*4882a593Smuzhiyun      * In that case, we don't want to reset the lineno or column.
1693*4882a593Smuzhiyun      */
1694*4882a593Smuzhiyun     if (b != YY_CURRENT_BUFFER){
1695*4882a593Smuzhiyun         b->yy_bs_lineno = 1;
1696*4882a593Smuzhiyun         b->yy_bs_column = 0;
1697*4882a593Smuzhiyun     }
1698*4882a593Smuzhiyun 
1699*4882a593Smuzhiyun         b->yy_is_interactive = 0;
1700*4882a593Smuzhiyun 
1701*4882a593Smuzhiyun 	errno = oerrno;
1702*4882a593Smuzhiyun }
1703*4882a593Smuzhiyun 
1704*4882a593Smuzhiyun /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1705*4882a593Smuzhiyun  * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1706*4882a593Smuzhiyun  *
1707*4882a593Smuzhiyun  */
yy_flush_buffer(YY_BUFFER_STATE b)1708*4882a593Smuzhiyun     void yy_flush_buffer (YY_BUFFER_STATE  b )
1709*4882a593Smuzhiyun {
1710*4882a593Smuzhiyun     	if ( ! b )
1711*4882a593Smuzhiyun 		return;
1712*4882a593Smuzhiyun 
1713*4882a593Smuzhiyun 	b->yy_n_chars = 0;
1714*4882a593Smuzhiyun 
1715*4882a593Smuzhiyun 	/* We always need two end-of-buffer characters.  The first causes
1716*4882a593Smuzhiyun 	 * a transition to the end-of-buffer state.  The second causes
1717*4882a593Smuzhiyun 	 * a jam in that state.
1718*4882a593Smuzhiyun 	 */
1719*4882a593Smuzhiyun 	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1720*4882a593Smuzhiyun 	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1721*4882a593Smuzhiyun 
1722*4882a593Smuzhiyun 	b->yy_buf_pos = &b->yy_ch_buf[0];
1723*4882a593Smuzhiyun 
1724*4882a593Smuzhiyun 	b->yy_at_bol = 1;
1725*4882a593Smuzhiyun 	b->yy_buffer_status = YY_BUFFER_NEW;
1726*4882a593Smuzhiyun 
1727*4882a593Smuzhiyun 	if ( b == YY_CURRENT_BUFFER )
1728*4882a593Smuzhiyun 		yy_load_buffer_state(  );
1729*4882a593Smuzhiyun }
1730*4882a593Smuzhiyun 
1731*4882a593Smuzhiyun /** Pushes the new state onto the stack. The new state becomes
1732*4882a593Smuzhiyun  *  the current state. This function will allocate the stack
1733*4882a593Smuzhiyun  *  if necessary.
1734*4882a593Smuzhiyun  *  @param new_buffer The new state.
1735*4882a593Smuzhiyun  *
1736*4882a593Smuzhiyun  */
yypush_buffer_state(YY_BUFFER_STATE new_buffer)1737*4882a593Smuzhiyun void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1738*4882a593Smuzhiyun {
1739*4882a593Smuzhiyun     	if (new_buffer == NULL)
1740*4882a593Smuzhiyun 		return;
1741*4882a593Smuzhiyun 
1742*4882a593Smuzhiyun 	yyensure_buffer_stack();
1743*4882a593Smuzhiyun 
1744*4882a593Smuzhiyun 	/* This block is copied from yy_switch_to_buffer. */
1745*4882a593Smuzhiyun 	if ( YY_CURRENT_BUFFER )
1746*4882a593Smuzhiyun 		{
1747*4882a593Smuzhiyun 		/* Flush out information for old buffer. */
1748*4882a593Smuzhiyun 		*(yy_c_buf_p) = (yy_hold_char);
1749*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1750*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1751*4882a593Smuzhiyun 		}
1752*4882a593Smuzhiyun 
1753*4882a593Smuzhiyun 	/* Only push if top exists. Otherwise, replace top. */
1754*4882a593Smuzhiyun 	if (YY_CURRENT_BUFFER)
1755*4882a593Smuzhiyun 		(yy_buffer_stack_top)++;
1756*4882a593Smuzhiyun 	YY_CURRENT_BUFFER_LVALUE = new_buffer;
1757*4882a593Smuzhiyun 
1758*4882a593Smuzhiyun 	/* copied from yy_switch_to_buffer. */
1759*4882a593Smuzhiyun 	yy_load_buffer_state(  );
1760*4882a593Smuzhiyun 	(yy_did_buffer_switch_on_eof) = 1;
1761*4882a593Smuzhiyun }
1762*4882a593Smuzhiyun 
1763*4882a593Smuzhiyun /** Removes and deletes the top of the stack, if present.
1764*4882a593Smuzhiyun  *  The next element becomes the new top.
1765*4882a593Smuzhiyun  *
1766*4882a593Smuzhiyun  */
yypop_buffer_state(void)1767*4882a593Smuzhiyun void yypop_buffer_state (void)
1768*4882a593Smuzhiyun {
1769*4882a593Smuzhiyun     	if (!YY_CURRENT_BUFFER)
1770*4882a593Smuzhiyun 		return;
1771*4882a593Smuzhiyun 
1772*4882a593Smuzhiyun 	yy_delete_buffer(YY_CURRENT_BUFFER );
1773*4882a593Smuzhiyun 	YY_CURRENT_BUFFER_LVALUE = NULL;
1774*4882a593Smuzhiyun 	if ((yy_buffer_stack_top) > 0)
1775*4882a593Smuzhiyun 		--(yy_buffer_stack_top);
1776*4882a593Smuzhiyun 
1777*4882a593Smuzhiyun 	if (YY_CURRENT_BUFFER) {
1778*4882a593Smuzhiyun 		yy_load_buffer_state(  );
1779*4882a593Smuzhiyun 		(yy_did_buffer_switch_on_eof) = 1;
1780*4882a593Smuzhiyun 	}
1781*4882a593Smuzhiyun }
1782*4882a593Smuzhiyun 
1783*4882a593Smuzhiyun /* Allocates the stack if it does not exist.
1784*4882a593Smuzhiyun  *  Guarantees space for at least one push.
1785*4882a593Smuzhiyun  */
yyensure_buffer_stack(void)1786*4882a593Smuzhiyun static void yyensure_buffer_stack (void)
1787*4882a593Smuzhiyun {
1788*4882a593Smuzhiyun 	yy_size_t num_to_alloc;
1789*4882a593Smuzhiyun 
1790*4882a593Smuzhiyun 	if (!(yy_buffer_stack)) {
1791*4882a593Smuzhiyun 
1792*4882a593Smuzhiyun 		/* First allocation is just for 2 elements, since we don't know if this
1793*4882a593Smuzhiyun 		 * scanner will even need a stack. We use 2 instead of 1 to avoid an
1794*4882a593Smuzhiyun 		 * immediate realloc on the next call.
1795*4882a593Smuzhiyun          */
1796*4882a593Smuzhiyun       num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
1797*4882a593Smuzhiyun 		(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
1798*4882a593Smuzhiyun 								(num_to_alloc * sizeof(struct yy_buffer_state*)
1799*4882a593Smuzhiyun 								);
1800*4882a593Smuzhiyun 		if ( ! (yy_buffer_stack) )
1801*4882a593Smuzhiyun 			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1802*4882a593Smuzhiyun 
1803*4882a593Smuzhiyun 		memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1804*4882a593Smuzhiyun 
1805*4882a593Smuzhiyun 		(yy_buffer_stack_max) = num_to_alloc;
1806*4882a593Smuzhiyun 		(yy_buffer_stack_top) = 0;
1807*4882a593Smuzhiyun 		return;
1808*4882a593Smuzhiyun 	}
1809*4882a593Smuzhiyun 
1810*4882a593Smuzhiyun 	if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1811*4882a593Smuzhiyun 
1812*4882a593Smuzhiyun 		/* Increase the buffer to prepare for a possible push. */
1813*4882a593Smuzhiyun 		yy_size_t grow_size = 8 /* arbitrary grow size */;
1814*4882a593Smuzhiyun 
1815*4882a593Smuzhiyun 		num_to_alloc = (yy_buffer_stack_max) + grow_size;
1816*4882a593Smuzhiyun 		(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
1817*4882a593Smuzhiyun 								((yy_buffer_stack),
1818*4882a593Smuzhiyun 								num_to_alloc * sizeof(struct yy_buffer_state*)
1819*4882a593Smuzhiyun 								);
1820*4882a593Smuzhiyun 		if ( ! (yy_buffer_stack) )
1821*4882a593Smuzhiyun 			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1822*4882a593Smuzhiyun 
1823*4882a593Smuzhiyun 		/* zero only the new slots.*/
1824*4882a593Smuzhiyun 		memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1825*4882a593Smuzhiyun 		(yy_buffer_stack_max) = num_to_alloc;
1826*4882a593Smuzhiyun 	}
1827*4882a593Smuzhiyun }
1828*4882a593Smuzhiyun 
1829*4882a593Smuzhiyun /** Setup the input buffer state to scan directly from a user-specified character buffer.
1830*4882a593Smuzhiyun  * @param base the character buffer
1831*4882a593Smuzhiyun  * @param size the size in bytes of the character buffer
1832*4882a593Smuzhiyun  *
1833*4882a593Smuzhiyun  * @return the newly allocated buffer state object.
1834*4882a593Smuzhiyun  */
yy_scan_buffer(char * base,yy_size_t size)1835*4882a593Smuzhiyun YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size )
1836*4882a593Smuzhiyun {
1837*4882a593Smuzhiyun 	YY_BUFFER_STATE b;
1838*4882a593Smuzhiyun 
1839*4882a593Smuzhiyun 	if ( size < 2 ||
1840*4882a593Smuzhiyun 	     base[size-2] != YY_END_OF_BUFFER_CHAR ||
1841*4882a593Smuzhiyun 	     base[size-1] != YY_END_OF_BUFFER_CHAR )
1842*4882a593Smuzhiyun 		/* They forgot to leave room for the EOB's. */
1843*4882a593Smuzhiyun 		return NULL;
1844*4882a593Smuzhiyun 
1845*4882a593Smuzhiyun 	b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state )  );
1846*4882a593Smuzhiyun 	if ( ! b )
1847*4882a593Smuzhiyun 		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1848*4882a593Smuzhiyun 
1849*4882a593Smuzhiyun 	b->yy_buf_size = (int) (size - 2);	/* "- 2" to take care of EOB's */
1850*4882a593Smuzhiyun 	b->yy_buf_pos = b->yy_ch_buf = base;
1851*4882a593Smuzhiyun 	b->yy_is_our_buffer = 0;
1852*4882a593Smuzhiyun 	b->yy_input_file = NULL;
1853*4882a593Smuzhiyun 	b->yy_n_chars = b->yy_buf_size;
1854*4882a593Smuzhiyun 	b->yy_is_interactive = 0;
1855*4882a593Smuzhiyun 	b->yy_at_bol = 1;
1856*4882a593Smuzhiyun 	b->yy_fill_buffer = 0;
1857*4882a593Smuzhiyun 	b->yy_buffer_status = YY_BUFFER_NEW;
1858*4882a593Smuzhiyun 
1859*4882a593Smuzhiyun 	yy_switch_to_buffer( b  );
1860*4882a593Smuzhiyun 
1861*4882a593Smuzhiyun 	return b;
1862*4882a593Smuzhiyun }
1863*4882a593Smuzhiyun 
1864*4882a593Smuzhiyun /** Setup the input buffer state to scan a string. The next call to yylex() will
1865*4882a593Smuzhiyun  * scan from a @e copy of @a str.
1866*4882a593Smuzhiyun  * @param yystr a NUL-terminated string to scan
1867*4882a593Smuzhiyun  *
1868*4882a593Smuzhiyun  * @return the newly allocated buffer state object.
1869*4882a593Smuzhiyun  * @note If you want to scan bytes that may contain NUL values, then use
1870*4882a593Smuzhiyun  *       yy_scan_bytes() instead.
1871*4882a593Smuzhiyun  */
yy_scan_string(const char * yystr)1872*4882a593Smuzhiyun YY_BUFFER_STATE yy_scan_string (const char * yystr )
1873*4882a593Smuzhiyun {
1874*4882a593Smuzhiyun 
1875*4882a593Smuzhiyun 	return yy_scan_bytes( yystr, (int) strlen(yystr) );
1876*4882a593Smuzhiyun }
1877*4882a593Smuzhiyun 
1878*4882a593Smuzhiyun /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1879*4882a593Smuzhiyun  * scan from a @e copy of @a bytes.
1880*4882a593Smuzhiyun  * @param yybytes the byte buffer to scan
1881*4882a593Smuzhiyun  * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
1882*4882a593Smuzhiyun  *
1883*4882a593Smuzhiyun  * @return the newly allocated buffer state object.
1884*4882a593Smuzhiyun  */
yy_scan_bytes(const char * yybytes,int _yybytes_len)1885*4882a593Smuzhiyun YY_BUFFER_STATE yy_scan_bytes  (const char * yybytes, int  _yybytes_len )
1886*4882a593Smuzhiyun {
1887*4882a593Smuzhiyun 	YY_BUFFER_STATE b;
1888*4882a593Smuzhiyun 	char *buf;
1889*4882a593Smuzhiyun 	yy_size_t n;
1890*4882a593Smuzhiyun 	int i;
1891*4882a593Smuzhiyun 
1892*4882a593Smuzhiyun 	/* Get memory for full buffer, including space for trailing EOB's. */
1893*4882a593Smuzhiyun 	n = (yy_size_t) (_yybytes_len + 2);
1894*4882a593Smuzhiyun 	buf = (char *) yyalloc( n  );
1895*4882a593Smuzhiyun 	if ( ! buf )
1896*4882a593Smuzhiyun 		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1897*4882a593Smuzhiyun 
1898*4882a593Smuzhiyun 	for ( i = 0; i < _yybytes_len; ++i )
1899*4882a593Smuzhiyun 		buf[i] = yybytes[i];
1900*4882a593Smuzhiyun 
1901*4882a593Smuzhiyun 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1902*4882a593Smuzhiyun 
1903*4882a593Smuzhiyun 	b = yy_scan_buffer( buf, n );
1904*4882a593Smuzhiyun 	if ( ! b )
1905*4882a593Smuzhiyun 		YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1906*4882a593Smuzhiyun 
1907*4882a593Smuzhiyun 	/* It's okay to grow etc. this buffer, and we should throw it
1908*4882a593Smuzhiyun 	 * away when we're done.
1909*4882a593Smuzhiyun 	 */
1910*4882a593Smuzhiyun 	b->yy_is_our_buffer = 1;
1911*4882a593Smuzhiyun 
1912*4882a593Smuzhiyun 	return b;
1913*4882a593Smuzhiyun }
1914*4882a593Smuzhiyun 
1915*4882a593Smuzhiyun #ifndef YY_EXIT_FAILURE
1916*4882a593Smuzhiyun #define YY_EXIT_FAILURE 2
1917*4882a593Smuzhiyun #endif
1918*4882a593Smuzhiyun 
yy_fatal_error(const char * msg)1919*4882a593Smuzhiyun static void yynoreturn yy_fatal_error (const char* msg )
1920*4882a593Smuzhiyun {
1921*4882a593Smuzhiyun 			fprintf( stderr, "%s\n", msg );
1922*4882a593Smuzhiyun 	exit( YY_EXIT_FAILURE );
1923*4882a593Smuzhiyun }
1924*4882a593Smuzhiyun 
1925*4882a593Smuzhiyun /* Redefine yyless() so it works in section 3 code. */
1926*4882a593Smuzhiyun 
1927*4882a593Smuzhiyun #undef yyless
1928*4882a593Smuzhiyun #define yyless(n) \
1929*4882a593Smuzhiyun 	do \
1930*4882a593Smuzhiyun 		{ \
1931*4882a593Smuzhiyun 		/* Undo effects of setting up yytext. */ \
1932*4882a593Smuzhiyun         int yyless_macro_arg = (n); \
1933*4882a593Smuzhiyun         YY_LESS_LINENO(yyless_macro_arg);\
1934*4882a593Smuzhiyun 		yytext[yyleng] = (yy_hold_char); \
1935*4882a593Smuzhiyun 		(yy_c_buf_p) = yytext + yyless_macro_arg; \
1936*4882a593Smuzhiyun 		(yy_hold_char) = *(yy_c_buf_p); \
1937*4882a593Smuzhiyun 		*(yy_c_buf_p) = '\0'; \
1938*4882a593Smuzhiyun 		yyleng = yyless_macro_arg; \
1939*4882a593Smuzhiyun 		} \
1940*4882a593Smuzhiyun 	while ( 0 )
1941*4882a593Smuzhiyun 
1942*4882a593Smuzhiyun /* Accessor  methods (get/set functions) to struct members. */
1943*4882a593Smuzhiyun 
1944*4882a593Smuzhiyun /** Get the current line number.
1945*4882a593Smuzhiyun  *
1946*4882a593Smuzhiyun  */
yyget_lineno(void)1947*4882a593Smuzhiyun int yyget_lineno  (void)
1948*4882a593Smuzhiyun {
1949*4882a593Smuzhiyun 
1950*4882a593Smuzhiyun     return yylineno;
1951*4882a593Smuzhiyun }
1952*4882a593Smuzhiyun 
1953*4882a593Smuzhiyun /** Get the input stream.
1954*4882a593Smuzhiyun  *
1955*4882a593Smuzhiyun  */
yyget_in(void)1956*4882a593Smuzhiyun FILE *yyget_in  (void)
1957*4882a593Smuzhiyun {
1958*4882a593Smuzhiyun         return yyin;
1959*4882a593Smuzhiyun }
1960*4882a593Smuzhiyun 
1961*4882a593Smuzhiyun /** Get the output stream.
1962*4882a593Smuzhiyun  *
1963*4882a593Smuzhiyun  */
yyget_out(void)1964*4882a593Smuzhiyun FILE *yyget_out  (void)
1965*4882a593Smuzhiyun {
1966*4882a593Smuzhiyun         return yyout;
1967*4882a593Smuzhiyun }
1968*4882a593Smuzhiyun 
1969*4882a593Smuzhiyun /** Get the length of the current token.
1970*4882a593Smuzhiyun  *
1971*4882a593Smuzhiyun  */
yyget_leng(void)1972*4882a593Smuzhiyun int yyget_leng  (void)
1973*4882a593Smuzhiyun {
1974*4882a593Smuzhiyun         return yyleng;
1975*4882a593Smuzhiyun }
1976*4882a593Smuzhiyun 
1977*4882a593Smuzhiyun /** Get the current token.
1978*4882a593Smuzhiyun  *
1979*4882a593Smuzhiyun  */
1980*4882a593Smuzhiyun 
yyget_text(void)1981*4882a593Smuzhiyun char *yyget_text  (void)
1982*4882a593Smuzhiyun {
1983*4882a593Smuzhiyun         return yytext;
1984*4882a593Smuzhiyun }
1985*4882a593Smuzhiyun 
1986*4882a593Smuzhiyun /** Set the current line number.
1987*4882a593Smuzhiyun  * @param _line_number line number
1988*4882a593Smuzhiyun  *
1989*4882a593Smuzhiyun  */
yyset_lineno(int _line_number)1990*4882a593Smuzhiyun void yyset_lineno (int  _line_number )
1991*4882a593Smuzhiyun {
1992*4882a593Smuzhiyun 
1993*4882a593Smuzhiyun     yylineno = _line_number;
1994*4882a593Smuzhiyun }
1995*4882a593Smuzhiyun 
1996*4882a593Smuzhiyun /** Set the input stream. This does not discard the current
1997*4882a593Smuzhiyun  * input buffer.
1998*4882a593Smuzhiyun  * @param _in_str A readable stream.
1999*4882a593Smuzhiyun  *
2000*4882a593Smuzhiyun  * @see yy_switch_to_buffer
2001*4882a593Smuzhiyun  */
yyset_in(FILE * _in_str)2002*4882a593Smuzhiyun void yyset_in (FILE *  _in_str )
2003*4882a593Smuzhiyun {
2004*4882a593Smuzhiyun         yyin = _in_str ;
2005*4882a593Smuzhiyun }
2006*4882a593Smuzhiyun 
yyset_out(FILE * _out_str)2007*4882a593Smuzhiyun void yyset_out (FILE *  _out_str )
2008*4882a593Smuzhiyun {
2009*4882a593Smuzhiyun         yyout = _out_str ;
2010*4882a593Smuzhiyun }
2011*4882a593Smuzhiyun 
yyget_debug(void)2012*4882a593Smuzhiyun int yyget_debug  (void)
2013*4882a593Smuzhiyun {
2014*4882a593Smuzhiyun         return yy_flex_debug;
2015*4882a593Smuzhiyun }
2016*4882a593Smuzhiyun 
yyset_debug(int _bdebug)2017*4882a593Smuzhiyun void yyset_debug (int  _bdebug )
2018*4882a593Smuzhiyun {
2019*4882a593Smuzhiyun         yy_flex_debug = _bdebug ;
2020*4882a593Smuzhiyun }
2021*4882a593Smuzhiyun 
yy_init_globals(void)2022*4882a593Smuzhiyun static int yy_init_globals (void)
2023*4882a593Smuzhiyun {
2024*4882a593Smuzhiyun         /* Initialization is the same as for the non-reentrant scanner.
2025*4882a593Smuzhiyun      * This function is called from yylex_destroy(), so don't allocate here.
2026*4882a593Smuzhiyun      */
2027*4882a593Smuzhiyun 
2028*4882a593Smuzhiyun     /* We do not touch yylineno unless the option is enabled. */
2029*4882a593Smuzhiyun     yylineno =  1;
2030*4882a593Smuzhiyun 
2031*4882a593Smuzhiyun     (yy_buffer_stack) = NULL;
2032*4882a593Smuzhiyun     (yy_buffer_stack_top) = 0;
2033*4882a593Smuzhiyun     (yy_buffer_stack_max) = 0;
2034*4882a593Smuzhiyun     (yy_c_buf_p) = NULL;
2035*4882a593Smuzhiyun     (yy_init) = 0;
2036*4882a593Smuzhiyun     (yy_start) = 0;
2037*4882a593Smuzhiyun 
2038*4882a593Smuzhiyun /* Defined in main.c */
2039*4882a593Smuzhiyun #ifdef YY_STDINIT
2040*4882a593Smuzhiyun     yyin = stdin;
2041*4882a593Smuzhiyun     yyout = stdout;
2042*4882a593Smuzhiyun #else
2043*4882a593Smuzhiyun     yyin = NULL;
2044*4882a593Smuzhiyun     yyout = NULL;
2045*4882a593Smuzhiyun #endif
2046*4882a593Smuzhiyun 
2047*4882a593Smuzhiyun     /* For future reference: Set errno on error, since we are called by
2048*4882a593Smuzhiyun      * yylex_init()
2049*4882a593Smuzhiyun      */
2050*4882a593Smuzhiyun     return 0;
2051*4882a593Smuzhiyun }
2052*4882a593Smuzhiyun 
2053*4882a593Smuzhiyun /* yylex_destroy is for both reentrant and non-reentrant scanners. */
yylex_destroy(void)2054*4882a593Smuzhiyun int yylex_destroy  (void)
2055*4882a593Smuzhiyun {
2056*4882a593Smuzhiyun 
2057*4882a593Smuzhiyun     /* Pop the buffer stack, destroying each element. */
2058*4882a593Smuzhiyun 	while(YY_CURRENT_BUFFER){
2059*4882a593Smuzhiyun 		yy_delete_buffer( YY_CURRENT_BUFFER  );
2060*4882a593Smuzhiyun 		YY_CURRENT_BUFFER_LVALUE = NULL;
2061*4882a593Smuzhiyun 		yypop_buffer_state();
2062*4882a593Smuzhiyun 	}
2063*4882a593Smuzhiyun 
2064*4882a593Smuzhiyun 	/* Destroy the stack itself. */
2065*4882a593Smuzhiyun 	yyfree((yy_buffer_stack) );
2066*4882a593Smuzhiyun 	(yy_buffer_stack) = NULL;
2067*4882a593Smuzhiyun 
2068*4882a593Smuzhiyun     /* Reset the globals. This is important in a non-reentrant scanner so the next time
2069*4882a593Smuzhiyun      * yylex() is called, initialization will occur. */
2070*4882a593Smuzhiyun     yy_init_globals( );
2071*4882a593Smuzhiyun 
2072*4882a593Smuzhiyun     return 0;
2073*4882a593Smuzhiyun }
2074*4882a593Smuzhiyun 
2075*4882a593Smuzhiyun /*
2076*4882a593Smuzhiyun  * Internal utility routines.
2077*4882a593Smuzhiyun  */
2078*4882a593Smuzhiyun 
2079*4882a593Smuzhiyun #ifndef yytext_ptr
yy_flex_strncpy(char * s1,const char * s2,int n)2080*4882a593Smuzhiyun static void yy_flex_strncpy (char* s1, const char * s2, int n )
2081*4882a593Smuzhiyun {
2082*4882a593Smuzhiyun 
2083*4882a593Smuzhiyun 	int i;
2084*4882a593Smuzhiyun 	for ( i = 0; i < n; ++i )
2085*4882a593Smuzhiyun 		s1[i] = s2[i];
2086*4882a593Smuzhiyun }
2087*4882a593Smuzhiyun #endif
2088*4882a593Smuzhiyun 
2089*4882a593Smuzhiyun #ifdef YY_NEED_STRLEN
yy_flex_strlen(const char * s)2090*4882a593Smuzhiyun static int yy_flex_strlen (const char * s )
2091*4882a593Smuzhiyun {
2092*4882a593Smuzhiyun 	int n;
2093*4882a593Smuzhiyun 	for ( n = 0; s[n]; ++n )
2094*4882a593Smuzhiyun 		;
2095*4882a593Smuzhiyun 
2096*4882a593Smuzhiyun 	return n;
2097*4882a593Smuzhiyun }
2098*4882a593Smuzhiyun #endif
2099*4882a593Smuzhiyun 
yyalloc(yy_size_t size)2100*4882a593Smuzhiyun void *yyalloc (yy_size_t  size )
2101*4882a593Smuzhiyun {
2102*4882a593Smuzhiyun 			return malloc(size);
2103*4882a593Smuzhiyun }
2104*4882a593Smuzhiyun 
yyrealloc(void * ptr,yy_size_t size)2105*4882a593Smuzhiyun void *yyrealloc  (void * ptr, yy_size_t  size )
2106*4882a593Smuzhiyun {
2107*4882a593Smuzhiyun 
2108*4882a593Smuzhiyun 	/* The cast to (char *) in the following accommodates both
2109*4882a593Smuzhiyun 	 * implementations that use char* generic pointers, and those
2110*4882a593Smuzhiyun 	 * that use void* generic pointers.  It works with the latter
2111*4882a593Smuzhiyun 	 * because both ANSI C and C++ allow castless assignment from
2112*4882a593Smuzhiyun 	 * any pointer type to void*, and deal with argument conversions
2113*4882a593Smuzhiyun 	 * as though doing an assignment.
2114*4882a593Smuzhiyun 	 */
2115*4882a593Smuzhiyun 	return realloc(ptr, size);
2116*4882a593Smuzhiyun }
2117*4882a593Smuzhiyun 
yyfree(void * ptr)2118*4882a593Smuzhiyun void yyfree (void * ptr )
2119*4882a593Smuzhiyun {
2120*4882a593Smuzhiyun 			free( (char *) ptr );	/* see yyrealloc() for (char *) cast */
2121*4882a593Smuzhiyun }
2122*4882a593Smuzhiyun 
2123*4882a593Smuzhiyun #define YYTABLES_NAME "yytables"
2124*4882a593Smuzhiyun 
2125*4882a593Smuzhiyun #line 100 "winprefslex.l"
2126*4882a593Smuzhiyun 
2127*4882a593Smuzhiyun 
2128*4882a593Smuzhiyun /*
2129*4882a593Smuzhiyun  * Run-of-the mill requirement for yacc
2130*4882a593Smuzhiyun  */
2131*4882a593Smuzhiyun int
yywrap(void)2132*4882a593Smuzhiyun yywrap (void)
2133*4882a593Smuzhiyun {
2134*4882a593Smuzhiyun   return 1;
2135*4882a593Smuzhiyun }
2136*4882a593Smuzhiyun 
2137*4882a593Smuzhiyun /*
2138*4882a593Smuzhiyun  * Run a file through the yacc parser
2139*4882a593Smuzhiyun  */
2140*4882a593Smuzhiyun int
parse_file(FILE * file)2141*4882a593Smuzhiyun parse_file (FILE *file)
2142*4882a593Smuzhiyun {
2143*4882a593Smuzhiyun   int ret;
2144*4882a593Smuzhiyun 
2145*4882a593Smuzhiyun   if (!file)
2146*4882a593Smuzhiyun     return 1;
2147*4882a593Smuzhiyun 
2148*4882a593Smuzhiyun   yylineno = 1;
2149*4882a593Smuzhiyun   yyin = file;
2150*4882a593Smuzhiyun   ret = yyparse ();
2151*4882a593Smuzhiyun   yylex_destroy ();
2152*4882a593Smuzhiyun   return ret;
2153*4882a593Smuzhiyun }
2154*4882a593Smuzhiyun 
2155*4882a593Smuzhiyun 
2156