Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmDependsJavaLexer.h
blobc36e593b81386abfc24c6af125b3ed365c2470a6
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmDependsJavaLexer.h,v $
5 Language: C++
6 <<<<<<< cmDependsJavaLexer.h
7 Date: $Date: 2007/07/27 14:55:24 $
8 Version: $Revision: 1.5 $
9 =======
10 Date: $Date: 2008-09-15 21:53:27 $
11 Version: $Revision: 1.6 $
12 >>>>>>> 1.6
14 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
15 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
17 This software is distributed WITHOUT ANY WARRANTY; without even
18 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19 PURPOSE. See the above copyright notices for more information.
21 =========================================================================*/
22 #ifndef cmDependsJava_yyHEADER_H
23 #define cmDependsJava_yyHEADER_H 1
24 #define cmDependsJava_yyIN_HEADER 1
26 #define YY_INT_ALIGNED short int
28 /* A lexical scanner generated by flex */
30 #define FLEX_SCANNER
31 #define YY_FLEX_MAJOR_VERSION 2
32 #define YY_FLEX_MINOR_VERSION 5
33 #define YY_FLEX_SUBMINOR_VERSION 31
34 #if YY_FLEX_SUBMINOR_VERSION > 0
35 #define FLEX_BETA
36 #endif
38 /* First, we deal with platform-specific or compiler-specific issues. */
40 /* begin standard C headers. */
41 #include <stdio.h>
42 #include <string.h>
43 #include <errno.h>
44 #include <stdlib.h>
46 #if defined(__BEOS__) || defined(__HAIKU__)
47 #include <unistd.h> /* prevents a conflict with a #define later on... */
48 #endif
50 /* end standard C headers. */
52 /* flex integer type definitions */
54 #ifndef FLEXINT_H
55 #define FLEXINT_H
57 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
59 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
60 #include <inttypes.h>
61 typedef int8_t flex_int8_t;
62 typedef uint8_t flex_uint8_t;
63 typedef int16_t flex_int16_t;
64 typedef uint16_t flex_uint16_t;
65 typedef int32_t flex_int32_t;
66 typedef uint32_t flex_uint32_t;
67 #else
68 typedef signed char flex_int8_t;
69 typedef short int flex_int16_t;
70 typedef int flex_int32_t;
71 typedef unsigned char flex_uint8_t;
72 typedef unsigned short int flex_uint16_t;
73 typedef unsigned int flex_uint32_t;
74 #endif /* ! C99 */
76 /* Limits of integral types. */
77 #ifndef INT8_MIN
78 #define INT8_MIN (-128)
79 #endif
80 #ifndef INT16_MIN
81 #define INT16_MIN (-32767-1)
82 #endif
83 #ifndef INT32_MIN
84 #define INT32_MIN (-2147483647-1)
85 #endif
86 #ifndef INT8_MAX
87 #define INT8_MAX (127)
88 #endif
89 #ifndef INT16_MAX
90 #define INT16_MAX (32767)
91 #endif
92 #ifndef INT32_MAX
93 #define INT32_MAX (2147483647)
94 #endif
95 #ifndef UINT8_MAX
96 #define UINT8_MAX (255U)
97 #endif
98 #ifndef UINT16_MAX
99 #define UINT16_MAX (65535U)
100 #endif
101 #ifndef UINT32_MAX
102 #define UINT32_MAX (4294967295U)
103 #endif
105 #endif /* ! FLEXINT_H */
107 #ifdef __cplusplus
109 /* The "const" storage-class-modifier is valid. */
110 #define YY_USE_CONST
112 #else /* ! __cplusplus */
114 #if __STDC__
116 #define YY_USE_CONST
118 #endif /* __STDC__ */
119 #endif /* ! __cplusplus */
121 #ifdef YY_USE_CONST
122 #define yyconst const
123 #else
124 #define yyconst
125 #endif
127 /* An opaque pointer. */
128 #ifndef YY_TYPEDEF_YY_SCANNER_T
129 #define YY_TYPEDEF_YY_SCANNER_T
130 typedef void* yyscan_t;
131 #endif
133 /* For convenience, these vars (plus the bison vars far below)
134 are macros in the reentrant scanner. */
135 #define yyin yyg->yyin_r
136 #define yyout yyg->yyout_r
137 #define yyextra yyg->yyextra_r
138 #define yyleng yyg->yyleng_r
139 #define yytext yyg->yytext_r
140 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
141 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
142 #define yy_flex_debug yyg->yy_flex_debug_r
144 int cmDependsJava_yylex_init (yyscan_t* scanner);
146 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
147 #define YY_TYPEDEF_YY_BUFFER_STATE
148 typedef struct yy_buffer_state *YY_BUFFER_STATE;
149 #endif
151 /* The following is because we cannot portably get our hands on size_t
152 * (without autoconf's help, which isn't available because we want
153 * flex-generated scanners to compile on their own).
156 #ifndef YY_TYPEDEF_YY_SIZE_T
157 #define YY_TYPEDEF_YY_SIZE_T
158 typedef unsigned int yy_size_t;
159 #endif
161 #ifndef YY_STRUCT_YY_BUFFER_STATE
162 #define YY_STRUCT_YY_BUFFER_STATE
163 struct yy_buffer_state
165 FILE *yy_input_file;
167 char *yy_ch_buf; /* input buffer */
168 char *yy_buf_pos; /* current position in input buffer */
170 /* Size of input buffer in bytes, not including room for EOB
171 * characters.
173 yy_size_t yy_buf_size;
175 /* Number of characters read into yy_ch_buf, not including EOB
176 * characters.
178 int yy_n_chars;
180 /* Whether we "own" the buffer - i.e., we know we created it,
181 * and can realloc() it to grow it, and should free() it to
182 * delete it.
184 int yy_is_our_buffer;
186 /* Whether this is an "interactive" input source; if so, and
187 * if we're using stdio for input, then we want to use getc()
188 * instead of fread(), to make sure we stop fetching input after
189 * each newline.
191 int yy_is_interactive;
193 /* Whether we're considered to be at the beginning of a line.
194 * If so, '^' rules will be active on the next match, otherwise
195 * not.
197 int yy_at_bol;
199 int yy_bs_lineno; /**< The line count. */
200 int yy_bs_column; /**< The column count. */
202 /* Whether to try to fill the input buffer when we reach the
203 * end of it.
205 int yy_fill_buffer;
207 int yy_buffer_status;
210 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
212 void cmDependsJava_yyrestart (FILE *input_file ,yyscan_t yyscanner );
213 void cmDependsJava_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,
214 yyscan_t yyscanner );
215 YY_BUFFER_STATE cmDependsJava_yy_create_buffer (FILE *file,int size ,
216 yyscan_t yyscanner );
217 void cmDependsJava_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
218 void cmDependsJava_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
219 void cmDependsJava_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,
220 yyscan_t yyscanner );
221 void cmDependsJava_yypop_buffer_state (yyscan_t yyscanner );
223 YY_BUFFER_STATE cmDependsJava_yy_scan_buffer (char *base,yy_size_t size ,
224 yyscan_t yyscanner );
225 YY_BUFFER_STATE cmDependsJava_yy_scan_string (yyconst char *yy_str ,
226 yyscan_t yyscanner );
227 YY_BUFFER_STATE cmDependsJava_yy_scan_bytes (yyconst char *bytes,int len ,
228 yyscan_t yyscanner );
230 void *cmDependsJava_yyalloc (yy_size_t ,yyscan_t yyscanner );
231 void *cmDependsJava_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
232 void cmDependsJava_yyfree (void * ,yyscan_t yyscanner );
234 /* Begin user sect3 */
236 #define cmDependsJava_yywrap(n) 1
237 #define YY_SKIP_YYWRAP
239 #define yytext_ptr yytext_r
241 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
242 #define INITIAL 0
243 #define comment 1
244 #define string 2
246 #endif
248 #ifndef YY_EXTRA_TYPE
249 #define YY_EXTRA_TYPE void *
250 #endif
252 /* Accessor methods to globals.
253 These are made visible to non-reentrant scanners for convenience. */
255 int cmDependsJava_yylex_destroy (yyscan_t yyscanner );
257 int cmDependsJava_yyget_debug (yyscan_t yyscanner );
259 void cmDependsJava_yyset_debug (int debug_flag ,yyscan_t yyscanner );
261 YY_EXTRA_TYPE cmDependsJava_yyget_extra (yyscan_t yyscanner );
263 void cmDependsJava_yyset_extra (YY_EXTRA_TYPE user_defined ,
264 yyscan_t yyscanner );
266 FILE *cmDependsJava_yyget_in (yyscan_t yyscanner );
268 void cmDependsJava_yyset_in (FILE * in_str ,yyscan_t yyscanner );
270 FILE *cmDependsJava_yyget_out (yyscan_t yyscanner );
272 void cmDependsJava_yyset_out (FILE * out_str ,yyscan_t yyscanner );
274 int cmDependsJava_yyget_leng (yyscan_t yyscanner );
276 char *cmDependsJava_yyget_text (yyscan_t yyscanner );
278 int cmDependsJava_yyget_lineno (yyscan_t yyscanner );
280 void cmDependsJava_yyset_lineno (int line_number ,yyscan_t yyscanner );
282 /* Macros after this point can all be overridden by user definitions in
283 * section 1.
286 #ifndef YY_SKIP_YYWRAP
287 #ifdef __cplusplus
288 extern "C" int cmDependsJava_yywrap (yyscan_t yyscanner );
289 #else
290 extern int cmDependsJava_yywrap (yyscan_t yyscanner );
291 #endif
292 #endif
294 #ifndef yytext_ptr
295 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
296 #endif
298 #ifdef YY_NEED_STRLEN
299 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
300 #endif
302 #ifndef YY_NO_INPUT
304 #endif
306 /* Amount of stuff to slurp up with each read. */
307 #ifndef YY_READ_BUF_SIZE
308 #define YY_READ_BUF_SIZE 8192
309 #endif
311 /* Number of entries by which start-condition stack grows. */
312 #ifndef YY_START_STACK_INCR
313 #define YY_START_STACK_INCR 25
314 #endif
316 /* Default declaration of generated scanner - a define so the user can
317 * easily add parameters.
319 #ifndef YY_DECL
320 #define YY_DECL_IS_OURS 1
322 extern int cmDependsJava_yylex (yyscan_t yyscanner);
324 #define YY_DECL int cmDependsJava_yylex (yyscan_t yyscanner)
325 #endif /* !YY_DECL */
327 /* yy_get_previous_state - get the state just before the
328 EOB char was reached */
330 #undef YY_NEW_FILE
331 #undef YY_FLUSH_BUFFER
332 #undef yy_set_bol
333 #undef yy_new_buffer
334 #undef yy_set_interactive
335 #undef yytext_ptr
336 #undef YY_DO_BEFORE_ACTION
338 #ifdef YY_DECL_IS_OURS
339 #undef YY_DECL_IS_OURS
340 #undef YY_DECL
341 #endif
343 #undef cmDependsJava_yyIN_HEADER
344 #endif /* cmDependsJava_yyHEADER_H */