5 #line 6 "rcstokenizer.h"
7 #define YY_INT_ALIGNED short int
9 /* A lexical scanner generated by flex */
12 #define YY_FLEX_MAJOR_VERSION 2
13 #define YY_FLEX_MINOR_VERSION 5
14 #define YY_FLEX_SUBMINOR_VERSION 35
15 #if YY_FLEX_SUBMINOR_VERSION > 0
19 /* First, we deal with platform-specific or compiler-specific issues. */
21 /* begin standard C headers. */
27 /* end standard C headers. */
29 /* flex integer type definitions */
34 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
36 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
38 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
39 * if you want the limit (max/min) macros for int types.
41 #ifndef __STDC_LIMIT_MACROS
42 #define __STDC_LIMIT_MACROS 1
46 typedef int8_t flex_int8_t;
47 typedef uint8_t flex_uint8_t;
48 typedef int16_t flex_int16_t;
49 typedef uint16_t flex_uint16_t;
50 typedef int32_t flex_int32_t;
51 typedef uint32_t flex_uint32_t;
53 typedef signed char flex_int8_t;
54 typedef short int flex_int16_t;
55 typedef int flex_int32_t;
56 typedef unsigned char flex_uint8_t;
57 typedef unsigned short int flex_uint16_t;
58 typedef unsigned int flex_uint32_t;
61 /* Limits of integral types. */
63 #define INT8_MIN (-128)
66 #define INT16_MIN (-32767-1)
69 #define INT32_MIN (-2147483647-1)
72 #define INT8_MAX (127)
75 #define INT16_MAX (32767)
78 #define INT32_MAX (2147483647)
81 #define UINT8_MAX (255U)
84 #define UINT16_MAX (65535U)
87 #define UINT32_MAX (4294967295U)
90 #endif /* ! FLEXINT_H */
94 /* The "const" storage-class-modifier is valid. */
97 #else /* ! __cplusplus */
99 /* C99 requires __STDC__ to be defined as 1. */
100 #if defined (__STDC__)
104 #endif /* defined (__STDC__) */
105 #endif /* ! __cplusplus */
108 #define yyconst const
113 /* An opaque pointer. */
114 #ifndef YY_TYPEDEF_YY_SCANNER_T
115 #define YY_TYPEDEF_YY_SCANNER_T
116 typedef void* yyscan_t;
119 /* For convenience, these vars (plus the bison vars far below)
120 are macros in the reentrant scanner. */
121 #define yyin yyg->yyin_r
122 #define yyout yyg->yyout_r
123 #define yyextra yyg->yyextra_r
124 #define yyleng yyg->yyleng_r
125 #define yytext yyg->yytext_r
126 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
127 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
128 #define yy_flex_debug yyg->yy_flex_debug_r
130 /* Size of default input buffer. */
132 #define YY_BUF_SIZE 16384
135 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
136 #define YY_TYPEDEF_YY_BUFFER_STATE
137 typedef struct yy_buffer_state *YY_BUFFER_STATE;
140 #ifndef YY_TYPEDEF_YY_SIZE_T
141 #define YY_TYPEDEF_YY_SIZE_T
142 typedef size_t yy_size_t;
145 #ifndef YY_STRUCT_YY_BUFFER_STATE
146 #define YY_STRUCT_YY_BUFFER_STATE
147 struct yy_buffer_state
151 char *yy_ch_buf; /* input buffer */
152 char *yy_buf_pos; /* current position in input buffer */
154 /* Size of input buffer in bytes, not including room for EOB
157 yy_size_t yy_buf_size;
159 /* Number of characters read into yy_ch_buf, not including EOB
164 /* Whether we "own" the buffer - i.e., we know we created it,
165 * and can realloc() it to grow it, and should free() it to
168 int yy_is_our_buffer;
170 /* Whether this is an "interactive" input source; if so, and
171 * if we're using stdio for input, then we want to use getc()
172 * instead of fread(), to make sure we stop fetching input after
175 int yy_is_interactive;
177 /* Whether we're considered to be at the beginning of a line.
178 * If so, '^' rules will be active on the next match, otherwise
183 int yy_bs_lineno; /**< The line count. */
184 int yy_bs_column; /**< The column count. */
186 /* Whether to try to fill the input buffer when we reach the
191 int yy_buffer_status;
194 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
196 void rcsrestart (FILE *input_file ,yyscan_t yyscanner );
197 void rcs_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
198 YY_BUFFER_STATE rcs_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
199 void rcs_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
200 void rcs_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
201 void rcspush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
202 void rcspop_buffer_state (yyscan_t yyscanner );
204 YY_BUFFER_STATE rcs_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
205 YY_BUFFER_STATE rcs_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
206 YY_BUFFER_STATE rcs_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
208 void *rcsalloc (yy_size_t ,yyscan_t yyscanner );
209 void *rcsrealloc (void *,yy_size_t ,yyscan_t yyscanner );
210 void rcsfree (void * ,yyscan_t yyscanner );
212 /* Begin user sect3 */
215 #define YY_SKIP_YYWRAP
217 #define yytext_ptr yytext_r
219 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
224 #ifndef YY_NO_UNISTD_H
225 /* Special case for "unistd.h", since it is non-ANSI. We include it way
226 * down here because we want the user's section 1 to have been scanned first.
227 * The user has a chance to override it with an option.
232 #ifndef YY_EXTRA_TYPE
233 #define YY_EXTRA_TYPE void *
236 int rcslex_init (yyscan_t* scanner);
238 int rcslex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
240 /* Accessor methods to globals.
241 These are made visible to non-reentrant scanners for convenience. */
243 int rcslex_destroy (yyscan_t yyscanner );
245 int rcsget_debug (yyscan_t yyscanner );
247 void rcsset_debug (int debug_flag ,yyscan_t yyscanner );
249 YY_EXTRA_TYPE rcsget_extra (yyscan_t yyscanner );
251 void rcsset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
253 FILE *rcsget_in (yyscan_t yyscanner );
255 void rcsset_in (FILE * in_str ,yyscan_t yyscanner );
257 FILE *rcsget_out (yyscan_t yyscanner );
259 void rcsset_out (FILE * out_str ,yyscan_t yyscanner );
261 int rcsget_leng (yyscan_t yyscanner );
263 char *rcsget_text (yyscan_t yyscanner );
265 int rcsget_lineno (yyscan_t yyscanner );
267 void rcsset_lineno (int line_number ,yyscan_t yyscanner );
269 /* Macros after this point can all be overridden by user definitions in
273 #ifndef YY_SKIP_YYWRAP
275 extern "C" int rcswrap (yyscan_t yyscanner );
277 extern int rcswrap (yyscan_t yyscanner );
282 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
285 #ifdef YY_NEED_STRLEN
286 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
293 /* Amount of stuff to slurp up with each read. */
294 #ifndef YY_READ_BUF_SIZE
295 #define YY_READ_BUF_SIZE 8192
298 /* Number of entries by which start-condition stack grows. */
299 #ifndef YY_START_STACK_INCR
300 #define YY_START_STACK_INCR 25
303 /* Default declaration of generated scanner - a define so the user can
304 * easily add parameters.
307 #define YY_DECL_IS_OURS 1
309 extern int rcslex (yyscan_t yyscanner);
311 #define YY_DECL int rcslex (yyscan_t yyscanner)
312 #endif /* !YY_DECL */
314 /* yy_get_previous_state - get the state just before the EOB char was reached */
317 #undef YY_FLUSH_BUFFER
320 #undef yy_set_interactive
321 #undef YY_DO_BEFORE_ACTION
323 #ifdef YY_DECL_IS_OURS
324 #undef YY_DECL_IS_OURS
328 #line 73 "rcstokenizer.l"
331 #line 332 "rcstokenizer.h"
333 #endif /* rcsHEADER_H */