1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmDependsJavaLexer.h,v $
6 Date: $Date: 2007-07-27 14:55:24 $
7 Version: $Revision: 1.5 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmDependsJava_yyHEADER_H
18 #define cmDependsJava_yyHEADER_H 1
19 #define cmDependsJava_yyIN_HEADER 1
21 #define YY_INT_ALIGNED short int
23 /* A lexical scanner generated by flex */
26 #define YY_FLEX_MAJOR_VERSION 2
27 #define YY_FLEX_MINOR_VERSION 5
28 #define YY_FLEX_SUBMINOR_VERSION 31
29 #if YY_FLEX_SUBMINOR_VERSION > 0
33 /* First, we deal with platform-specific or compiler-specific issues. */
35 /* begin standard C headers. */
42 #include <unistd.h> /* prevents a conflict with a #define later on... */
45 /* end standard C headers. */
47 /* flex integer type definitions */
52 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
54 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
56 typedef int8_t flex_int8_t
;
57 typedef uint8_t flex_uint8_t
;
58 typedef int16_t flex_int16_t
;
59 typedef uint16_t flex_uint16_t
;
60 typedef int32_t flex_int32_t
;
61 typedef uint32_t flex_uint32_t
;
63 typedef signed char flex_int8_t
;
64 typedef short int flex_int16_t
;
65 typedef int flex_int32_t
;
66 typedef unsigned char flex_uint8_t
;
67 typedef unsigned short int flex_uint16_t
;
68 typedef unsigned int flex_uint32_t
;
71 /* Limits of integral types. */
73 #define INT8_MIN (-128)
76 #define INT16_MIN (-32767-1)
79 #define INT32_MIN (-2147483647-1)
82 #define INT8_MAX (127)
85 #define INT16_MAX (32767)
88 #define INT32_MAX (2147483647)
91 #define UINT8_MAX (255U)
94 #define UINT16_MAX (65535U)
97 #define UINT32_MAX (4294967295U)
100 #endif /* ! FLEXINT_H */
104 /* The "const" storage-class-modifier is valid. */
107 #else /* ! __cplusplus */
113 #endif /* __STDC__ */
114 #endif /* ! __cplusplus */
117 #define yyconst const
122 /* An opaque pointer. */
123 #ifndef YY_TYPEDEF_YY_SCANNER_T
124 #define YY_TYPEDEF_YY_SCANNER_T
125 typedef void* yyscan_t
;
128 /* For convenience, these vars (plus the bison vars far below)
129 are macros in the reentrant scanner. */
130 #define yyin yyg->yyin_r
131 #define yyout yyg->yyout_r
132 #define yyextra yyg->yyextra_r
133 #define yyleng yyg->yyleng_r
134 #define yytext yyg->yytext_r
135 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
136 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
137 #define yy_flex_debug yyg->yy_flex_debug_r
139 int cmDependsJava_yylex_init (yyscan_t
* scanner
);
141 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
142 #define YY_TYPEDEF_YY_BUFFER_STATE
143 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
146 /* The following is because we cannot portably get our hands on size_t
147 * (without autoconf's help, which isn't available because we want
148 * flex-generated scanners to compile on their own).
151 #ifndef YY_TYPEDEF_YY_SIZE_T
152 #define YY_TYPEDEF_YY_SIZE_T
153 typedef unsigned int yy_size_t
;
156 #ifndef YY_STRUCT_YY_BUFFER_STATE
157 #define YY_STRUCT_YY_BUFFER_STATE
158 struct yy_buffer_state
162 char *yy_ch_buf
; /* input buffer */
163 char *yy_buf_pos
; /* current position in input buffer */
165 /* Size of input buffer in bytes, not including room for EOB
168 yy_size_t yy_buf_size
;
170 /* Number of characters read into yy_ch_buf, not including EOB
175 /* Whether we "own" the buffer - i.e., we know we created it,
176 * and can realloc() it to grow it, and should free() it to
179 int yy_is_our_buffer
;
181 /* Whether this is an "interactive" input source; if so, and
182 * if we're using stdio for input, then we want to use getc()
183 * instead of fread(), to make sure we stop fetching input after
186 int yy_is_interactive
;
188 /* Whether we're considered to be at the beginning of a line.
189 * If so, '^' rules will be active on the next match, otherwise
194 int yy_bs_lineno
; /**< The line count. */
195 int yy_bs_column
; /**< The column count. */
197 /* Whether to try to fill the input buffer when we reach the
202 int yy_buffer_status
;
205 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
207 void cmDependsJava_yyrestart (FILE *input_file
,yyscan_t yyscanner
);
208 void cmDependsJava_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer
,
209 yyscan_t yyscanner
);
210 YY_BUFFER_STATE
cmDependsJava_yy_create_buffer (FILE *file
,int size
,
211 yyscan_t yyscanner
);
212 void cmDependsJava_yy_delete_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
213 void cmDependsJava_yy_flush_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
214 void cmDependsJava_yypush_buffer_state (YY_BUFFER_STATE new_buffer
,
215 yyscan_t yyscanner
);
216 void cmDependsJava_yypop_buffer_state (yyscan_t yyscanner
);
218 YY_BUFFER_STATE
cmDependsJava_yy_scan_buffer (char *base
,yy_size_t size
,
219 yyscan_t yyscanner
);
220 YY_BUFFER_STATE
cmDependsJava_yy_scan_string (yyconst
char *yy_str
,
221 yyscan_t yyscanner
);
222 YY_BUFFER_STATE
cmDependsJava_yy_scan_bytes (yyconst
char *bytes
,int len
,
223 yyscan_t yyscanner
);
225 void *cmDependsJava_yyalloc (yy_size_t
,yyscan_t yyscanner
);
226 void *cmDependsJava_yyrealloc (void *,yy_size_t
,yyscan_t yyscanner
);
227 void cmDependsJava_yyfree (void * ,yyscan_t yyscanner
);
229 /* Begin user sect3 */
231 #define cmDependsJava_yywrap(n) 1
232 #define YY_SKIP_YYWRAP
234 #define yytext_ptr yytext_r
236 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
243 #ifndef YY_EXTRA_TYPE
244 #define YY_EXTRA_TYPE void *
247 /* Accessor methods to globals.
248 These are made visible to non-reentrant scanners for convenience. */
250 int cmDependsJava_yylex_destroy (yyscan_t yyscanner
);
252 int cmDependsJava_yyget_debug (yyscan_t yyscanner
);
254 void cmDependsJava_yyset_debug (int debug_flag
,yyscan_t yyscanner
);
256 YY_EXTRA_TYPE
cmDependsJava_yyget_extra (yyscan_t yyscanner
);
258 void cmDependsJava_yyset_extra (YY_EXTRA_TYPE user_defined
,
259 yyscan_t yyscanner
);
261 FILE *cmDependsJava_yyget_in (yyscan_t yyscanner
);
263 void cmDependsJava_yyset_in (FILE * in_str
,yyscan_t yyscanner
);
265 FILE *cmDependsJava_yyget_out (yyscan_t yyscanner
);
267 void cmDependsJava_yyset_out (FILE * out_str
,yyscan_t yyscanner
);
269 int cmDependsJava_yyget_leng (yyscan_t yyscanner
);
271 char *cmDependsJava_yyget_text (yyscan_t yyscanner
);
273 int cmDependsJava_yyget_lineno (yyscan_t yyscanner
);
275 void cmDependsJava_yyset_lineno (int line_number
,yyscan_t yyscanner
);
277 /* Macros after this point can all be overridden by user definitions in
281 #ifndef YY_SKIP_YYWRAP
283 extern "C" int cmDependsJava_yywrap (yyscan_t yyscanner
);
285 extern int cmDependsJava_yywrap (yyscan_t yyscanner
);
290 static void yy_flex_strncpy (char *,yyconst
char *,int ,yyscan_t yyscanner
);
293 #ifdef YY_NEED_STRLEN
294 static int yy_flex_strlen (yyconst
char * ,yyscan_t yyscanner
);
301 /* Amount of stuff to slurp up with each read. */
302 #ifndef YY_READ_BUF_SIZE
303 #define YY_READ_BUF_SIZE 8192
306 /* Number of entries by which start-condition stack grows. */
307 #ifndef YY_START_STACK_INCR
308 #define YY_START_STACK_INCR 25
311 /* Default declaration of generated scanner - a define so the user can
312 * easily add parameters.
315 #define YY_DECL_IS_OURS 1
317 extern int cmDependsJava_yylex (yyscan_t yyscanner
);
319 #define YY_DECL int cmDependsJava_yylex (yyscan_t yyscanner)
320 #endif /* !YY_DECL */
322 /* yy_get_previous_state - get the state just before the
323 EOB char was reached */
326 #undef YY_FLUSH_BUFFER
329 #undef yy_set_interactive
331 #undef YY_DO_BEFORE_ACTION
333 #ifdef YY_DECL_IS_OURS
334 #undef YY_DECL_IS_OURS
338 #undef cmDependsJava_yyIN_HEADER
339 #endif /* cmDependsJava_yyHEADER_H */