]> git.cworth.org Git - ttt/blob - src/ttt-lex.h
* PROTOCOL: Removed unused servername
[ttt] / src / ttt-lex.h
1 #ifndef yyHEADER_H
2 #define yyHEADER_H 1
3 #define yyIN_HEADER 1
4
5 #line 6 "ttt-lex.h"
6
7 #define  YY_INT_ALIGNED short int
8
9 /* A lexical scanner generated by flex */
10
11 #define FLEX_SCANNER
12 #define YY_FLEX_MAJOR_VERSION 2
13 #define YY_FLEX_MINOR_VERSION 5
14 #define YY_FLEX_SUBMINOR_VERSION 31
15 #if YY_FLEX_SUBMINOR_VERSION > 0
16 #define FLEX_BETA
17 #endif
18
19 /* First, we deal with  platform-specific or compiler-specific issues. */
20
21 /* begin standard C headers. */
22 #include <stdio.h>
23 #include <string.h>
24 #include <errno.h>
25 #include <stdlib.h>
26
27 /* end standard C headers. */
28
29 /* flex integer type definitions */
30
31 #ifndef FLEXINT_H
32 #define FLEXINT_H
33
34 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
35
36 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
37 #include <inttypes.h>
38 typedef int8_t flex_int8_t;
39 typedef uint8_t flex_uint8_t;
40 typedef int16_t flex_int16_t;
41 typedef uint16_t flex_uint16_t;
42 typedef int32_t flex_int32_t;
43 typedef uint32_t flex_uint32_t;
44 #else
45 typedef signed char flex_int8_t;
46 typedef short int flex_int16_t;
47 typedef int flex_int32_t;
48 typedef unsigned char flex_uint8_t; 
49 typedef unsigned short int flex_uint16_t;
50 typedef unsigned int flex_uint32_t;
51 #endif /* ! C99 */
52
53 /* Limits of integral types. */
54 #ifndef INT8_MIN
55 #define INT8_MIN               (-128)
56 #endif
57 #ifndef INT16_MIN
58 #define INT16_MIN              (-32767-1)
59 #endif
60 #ifndef INT32_MIN
61 #define INT32_MIN              (-2147483647-1)
62 #endif
63 #ifndef INT8_MAX
64 #define INT8_MAX               (127)
65 #endif
66 #ifndef INT16_MAX
67 #define INT16_MAX              (32767)
68 #endif
69 #ifndef INT32_MAX
70 #define INT32_MAX              (2147483647)
71 #endif
72 #ifndef UINT8_MAX
73 #define UINT8_MAX              (255U)
74 #endif
75 #ifndef UINT16_MAX
76 #define UINT16_MAX             (65535U)
77 #endif
78 #ifndef UINT32_MAX
79 #define UINT32_MAX             (4294967295U)
80 #endif
81
82 #endif /* ! FLEXINT_H */
83
84 #ifdef __cplusplus
85
86 /* The "const" storage-class-modifier is valid. */
87 #define YY_USE_CONST
88
89 #else   /* ! __cplusplus */
90
91 #if __STDC__
92
93 #define YY_USE_CONST
94
95 #endif  /* __STDC__ */
96 #endif  /* ! __cplusplus */
97
98 #ifdef YY_USE_CONST
99 #define yyconst const
100 #else
101 #define yyconst
102 #endif
103
104 /* An opaque pointer. */
105 #ifndef YY_TYPEDEF_YY_SCANNER_T
106 #define YY_TYPEDEF_YY_SCANNER_T
107 typedef void* yyscan_t;
108 #endif
109
110 /* For convenience, these vars (plus the bison vars far below)
111    are macros in the reentrant scanner. */
112 #define yyin yyg->yyin_r
113 #define yyout yyg->yyout_r
114 #define yyextra yyg->yyextra_r
115 #define yyleng yyg->yyleng_r
116 #define yytext yyg->yytext_r
117 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
118 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
119 #define yy_flex_debug yyg->yy_flex_debug_r
120
121 int yylex_init (yyscan_t* scanner);
122
123 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
124 #define YY_TYPEDEF_YY_BUFFER_STATE
125 typedef struct yy_buffer_state *YY_BUFFER_STATE;
126 #endif
127
128 /* The following is because we cannot portably get our hands on size_t
129  * (without autoconf's help, which isn't available because we want
130  * flex-generated scanners to compile on their own).
131  */
132
133 #ifndef YY_TYPEDEF_YY_SIZE_T
134 #define YY_TYPEDEF_YY_SIZE_T
135 typedef unsigned int yy_size_t;
136 #endif
137
138 #ifndef YY_STRUCT_YY_BUFFER_STATE
139 #define YY_STRUCT_YY_BUFFER_STATE
140 struct yy_buffer_state
141         {
142         FILE *yy_input_file;
143
144         char *yy_ch_buf;                /* input buffer */
145         char *yy_buf_pos;               /* current position in input buffer */
146
147         /* Size of input buffer in bytes, not including room for EOB
148          * characters.
149          */
150         yy_size_t yy_buf_size;
151
152         /* Number of characters read into yy_ch_buf, not including EOB
153          * characters.
154          */
155         int yy_n_chars;
156
157         /* Whether we "own" the buffer - i.e., we know we created it,
158          * and can realloc() it to grow it, and should free() it to
159          * delete it.
160          */
161         int yy_is_our_buffer;
162
163         /* Whether this is an "interactive" input source; if so, and
164          * if we're using stdio for input, then we want to use getc()
165          * instead of fread(), to make sure we stop fetching input after
166          * each newline.
167          */
168         int yy_is_interactive;
169
170         /* Whether we're considered to be at the beginning of a line.
171          * If so, '^' rules will be active on the next match, otherwise
172          * not.
173          */
174         int yy_at_bol;
175
176     int yy_bs_lineno; /**< The line count. */
177     int yy_bs_column; /**< The column count. */
178     
179         /* Whether to try to fill the input buffer when we reach the
180          * end of it.
181          */
182         int yy_fill_buffer;
183
184         int yy_buffer_status;
185
186         };
187 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
188
189 void yyrestart (FILE *input_file ,yyscan_t yyscanner );
190 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
191 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
192 void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
193 void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
194 void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
195 void yypop_buffer_state (yyscan_t yyscanner );
196
197 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
198 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
199 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
200
201 void *yyalloc (yy_size_t ,yyscan_t yyscanner );
202 void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
203 void yyfree (void * ,yyscan_t yyscanner );
204
205 #define yywrap(n) 1
206 #define YY_SKIP_YYWRAP
207
208 #define yytext_ptr yytext_r
209
210 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
211 #define INITIAL 0
212
213 #endif
214
215 #ifndef YY_NO_UNISTD_H
216 /* Special case for "unistd.h", since it is non-ANSI. We include it way
217  * down here because we want the user's section 1 to have been scanned first.
218  * The user has a chance to override it with an option.
219  */
220 #include <unistd.h>
221 #endif
222
223 #ifndef YY_EXTRA_TYPE
224 #define YY_EXTRA_TYPE void *
225 #endif
226
227 /* Accessor methods to globals.
228    These are made visible to non-reentrant scanners for convenience. */
229
230 int yylex_destroy (yyscan_t yyscanner );
231
232 int yyget_debug (yyscan_t yyscanner );
233
234 void yyset_debug (int debug_flag ,yyscan_t yyscanner );
235
236 YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner );
237
238 void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
239
240 FILE *yyget_in (yyscan_t yyscanner );
241
242 void yyset_in  (FILE * in_str ,yyscan_t yyscanner );
243
244 FILE *yyget_out (yyscan_t yyscanner );
245
246 void yyset_out  (FILE * out_str ,yyscan_t yyscanner );
247
248 int yyget_leng (yyscan_t yyscanner );
249
250 char *yyget_text (yyscan_t yyscanner );
251
252 int yyget_lineno (yyscan_t yyscanner );
253
254 void yyset_lineno (int line_number ,yyscan_t yyscanner );
255
256 /* Macros after this point can all be overridden by user definitions in
257  * section 1.
258  */
259
260 #ifndef YY_SKIP_YYWRAP
261 #ifdef __cplusplus
262 extern "C" int yywrap (yyscan_t yyscanner );
263 #else
264 extern int yywrap (yyscan_t yyscanner );
265 #endif
266 #endif
267
268 #ifndef yytext_ptr
269 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
270 #endif
271
272 #ifdef YY_NEED_STRLEN
273 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
274 #endif
275
276 #ifndef YY_NO_INPUT
277
278 #endif
279
280 /* Amount of stuff to slurp up with each read. */
281 #ifndef YY_READ_BUF_SIZE
282 #define YY_READ_BUF_SIZE 8192
283 #endif
284
285 /* Number of entries by which start-condition stack grows. */
286 #ifndef YY_START_STACK_INCR
287 #define YY_START_STACK_INCR 25
288 #endif
289
290 /* Default declaration of generated scanner - a define so the user can
291  * easily add parameters.
292  */
293 #ifndef YY_DECL
294 #define YY_DECL_IS_OURS 1
295
296 extern int yylex (yyscan_t yyscanner);
297
298 #define YY_DECL int yylex (yyscan_t yyscanner)
299 #endif /* !YY_DECL */
300
301 /* yy_get_previous_state - get the state just before the EOB char was reached */
302
303 #undef YY_NEW_FILE
304 #undef YY_FLUSH_BUFFER
305 #undef yy_set_bol
306 #undef yy_new_buffer
307 #undef yy_set_interactive
308 #undef yytext_ptr
309 #undef YY_DO_BEFORE_ACTION
310
311 #ifdef YY_DECL_IS_OURS
312 #undef YY_DECL_IS_OURS
313 #undef YY_DECL
314 #endif
315 #line 17 "ttt-lex.l"
316
317 #line 320 "ttt-lex.h"
318 #undef yyIN_HEADER
319 #endif /* yyHEADER_H */