Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmDependsFortranLexer.h
blobfa4ac9aed7ca0943de967f3ce7755425f933ae6a
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmDependsFortranLexer.h,v $
5 Language: C++
6 <<<<<<< cmDependsFortranLexer.h
7 Date: $Date: 2007/10/03 19:41:39 $
8 Version: $Revision: 1.7 $
9 =======
10 Date: $Date: 2008-04-21 15:15:56 $
11 Version: $Revision: 1.8 $
12 >>>>>>> 1.8
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 cmDependsFortran_yyHEADER_H
23 #define cmDependsFortran_yyHEADER_H 1
24 #define cmDependsFortran_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 34
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 /* end standard C headers. */
48 /* flex integer type definitions */
50 #ifndef FLEXINT_H
51 #define FLEXINT_H
53 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
55 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
57 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
58 * if you want the limit (max/min) macros for int types.
60 #ifndef __STDC_LIMIT_MACROS
61 #define __STDC_LIMIT_MACROS 1
62 #endif
64 #include <inttypes.h>
65 typedef int8_t flex_int8_t;
66 typedef uint8_t flex_uint8_t;
67 typedef int16_t flex_int16_t;
68 typedef uint16_t flex_uint16_t;
69 typedef int32_t flex_int32_t;
70 typedef uint32_t flex_uint32_t;
71 #else
72 typedef signed char flex_int8_t;
73 typedef short int flex_int16_t;
74 typedef int flex_int32_t;
75 typedef unsigned char flex_uint8_t;
76 typedef unsigned short int flex_uint16_t;
77 typedef unsigned int flex_uint32_t;
78 #endif /* ! C99 */
80 /* Limits of integral types. */
81 #ifndef INT8_MIN
82 #define INT8_MIN (-128)
83 #endif
84 #ifndef INT16_MIN
85 #define INT16_MIN (-32767-1)
86 #endif
87 #ifndef INT32_MIN
88 #define INT32_MIN (-2147483647-1)
89 #endif
90 #ifndef INT8_MAX
91 #define INT8_MAX (127)
92 #endif
93 #ifndef INT16_MAX
94 #define INT16_MAX (32767)
95 #endif
96 #ifndef INT32_MAX
97 #define INT32_MAX (2147483647)
98 #endif
99 #ifndef UINT8_MAX
100 #define UINT8_MAX (255U)
101 #endif
102 #ifndef UINT16_MAX
103 #define UINT16_MAX (65535U)
104 #endif
105 #ifndef UINT32_MAX
106 #define UINT32_MAX (4294967295U)
107 #endif
109 #endif /* ! FLEXINT_H */
111 #ifdef __cplusplus
113 /* The "const" storage-class-modifier is valid. */
114 #define YY_USE_CONST
116 #else /* ! __cplusplus */
118 /* C99 requires __STDC__ to be defined as 1. */
119 #if defined (__STDC__)
121 #define YY_USE_CONST
123 #endif /* defined (__STDC__) */
124 #endif /* ! __cplusplus */
126 #ifdef YY_USE_CONST
127 #define yyconst const
128 #else
129 #define yyconst
130 #endif
132 /* An opaque pointer. */
133 #ifndef YY_TYPEDEF_YY_SCANNER_T
134 #define YY_TYPEDEF_YY_SCANNER_T
135 typedef void* yyscan_t;
136 #endif
138 /* For convenience, these vars (plus the bison vars far below)
139 are macros in the reentrant scanner. */
140 #define yyin yyg->yyin_r
141 #define yyout yyg->yyout_r
142 #define yyextra yyg->yyextra_r
143 #define yyleng yyg->yyleng_r
144 #define yytext yyg->yytext_r
145 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
146 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
147 #define yy_flex_debug yyg->yy_flex_debug_r
149 /* Size of default input buffer. */
150 #ifndef YY_BUF_SIZE
151 #define YY_BUF_SIZE 16384
152 #endif
154 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
155 #define YY_TYPEDEF_YY_BUFFER_STATE
156 typedef struct yy_buffer_state *YY_BUFFER_STATE;
157 #endif
159 /* The following is because we cannot portably get our hands on size_t
160 * (without autoconf's help, which isn't available because we want
161 * flex-generated scanners to compile on their own).
162 * Given that the standard has decreed that size_t exists since 1989,
163 * I guess we can afford to depend on it. Manoj.
166 #ifndef YY_TYPEDEF_YY_SIZE_T
167 #define YY_TYPEDEF_YY_SIZE_T
168 typedef size_t yy_size_t;
169 #endif
171 #ifndef YY_STRUCT_YY_BUFFER_STATE
172 #define YY_STRUCT_YY_BUFFER_STATE
173 struct yy_buffer_state
175 FILE *yy_input_file;
177 char *yy_ch_buf; /* input buffer */
178 char *yy_buf_pos; /* current position in input buffer */
180 /* Size of input buffer in bytes, not including room for EOB
181 * characters.
183 yy_size_t yy_buf_size;
185 /* Number of characters read into yy_ch_buf, not including EOB
186 * characters.
188 int yy_n_chars;
190 /* Whether we "own" the buffer - i.e., we know we created it,
191 * and can realloc() it to grow it, and should free() it to
192 * delete it.
194 int yy_is_our_buffer;
196 /* Whether this is an "interactive" input source; if so, and
197 * if we're using stdio for input, then we want to use getc()
198 * instead of fread(), to make sure we stop fetching input after
199 * each newline.
201 int yy_is_interactive;
203 /* Whether we're considered to be at the beginning of a line.
204 * If so, '^' rules will be active on the next match, otherwise
205 * not.
207 int yy_at_bol;
209 int yy_bs_lineno; /**< The line count. */
210 int yy_bs_column; /**< The column count. */
212 /* Whether to try to fill the input buffer when we reach the
213 * end of it.
215 int yy_fill_buffer;
217 int yy_buffer_status;
220 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
222 void cmDependsFortran_yyrestart (FILE *input_file ,yyscan_t yyscanner );
223 void cmDependsFortran_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
224 YY_BUFFER_STATE cmDependsFortran_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
225 void cmDependsFortran_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
226 void cmDependsFortran_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
227 void cmDependsFortran_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
228 void cmDependsFortran_yypop_buffer_state (yyscan_t yyscanner );
230 YY_BUFFER_STATE cmDependsFortran_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
231 YY_BUFFER_STATE cmDependsFortran_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
232 YY_BUFFER_STATE cmDependsFortran_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
234 void *cmDependsFortran_yyalloc (yy_size_t ,yyscan_t yyscanner );
235 void *cmDependsFortran_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
236 void cmDependsFortran_yyfree (void * ,yyscan_t yyscanner );
238 /* Begin user sect3 */
240 #define cmDependsFortran_yywrap(n) 1
241 #define YY_SKIP_YYWRAP
243 #define yytext_ptr yytext_r
245 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
246 #define INITIAL 0
247 #define free_fmt 1
248 #define fixed_fmt 2
249 #define str_sq 3
250 #define str_dq 4
252 #endif
254 #ifndef YY_EXTRA_TYPE
255 #define YY_EXTRA_TYPE void *
256 #endif
258 int cmDependsFortran_yylex_init (yyscan_t* scanner);
260 int cmDependsFortran_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
262 /* Accessor methods to globals.
263 These are made visible to non-reentrant scanners for convenience. */
265 int cmDependsFortran_yylex_destroy (yyscan_t yyscanner );
267 int cmDependsFortran_yyget_debug (yyscan_t yyscanner );
269 void cmDependsFortran_yyset_debug (int debug_flag ,yyscan_t yyscanner );
271 YY_EXTRA_TYPE cmDependsFortran_yyget_extra (yyscan_t yyscanner );
273 void cmDependsFortran_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
275 FILE *cmDependsFortran_yyget_in (yyscan_t yyscanner );
277 void cmDependsFortran_yyset_in (FILE * in_str ,yyscan_t yyscanner );
279 FILE *cmDependsFortran_yyget_out (yyscan_t yyscanner );
281 void cmDependsFortran_yyset_out (FILE * out_str ,yyscan_t yyscanner );
283 int cmDependsFortran_yyget_leng (yyscan_t yyscanner );
285 char *cmDependsFortran_yyget_text (yyscan_t yyscanner );
287 int cmDependsFortran_yyget_lineno (yyscan_t yyscanner );
289 void cmDependsFortran_yyset_lineno (int line_number ,yyscan_t yyscanner );
291 /* Macros after this point can all be overridden by user definitions in
292 * section 1.
295 #ifndef YY_SKIP_YYWRAP
296 #ifdef __cplusplus
297 extern "C" int cmDependsFortran_yywrap (yyscan_t yyscanner );
298 #else
299 extern int cmDependsFortran_yywrap (yyscan_t yyscanner );
300 #endif
301 #endif
303 #ifndef yytext_ptr
304 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
305 #endif
307 #ifdef YY_NEED_STRLEN
308 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
309 #endif
311 #ifndef YY_NO_INPUT
313 #endif
315 /* Amount of stuff to slurp up with each read. */
316 #ifndef YY_READ_BUF_SIZE
317 #define YY_READ_BUF_SIZE 8192
318 #endif
320 /* Number of entries by which start-condition stack grows. */
321 #ifndef YY_START_STACK_INCR
322 #define YY_START_STACK_INCR 25
323 #endif
325 /* Default declaration of generated scanner - a define so the user can
326 * easily add parameters.
328 #ifndef YY_DECL
329 #define YY_DECL_IS_OURS 1
331 extern int cmDependsFortran_yylex (yyscan_t yyscanner);
333 #define YY_DECL int cmDependsFortran_yylex (yyscan_t yyscanner)
334 #endif /* !YY_DECL */
336 /* yy_get_previous_state - get the state just before the EOB char was reached */
338 #undef YY_NEW_FILE
339 #undef YY_FLUSH_BUFFER
340 #undef yy_set_bol
341 #undef yy_new_buffer
342 #undef yy_set_interactive
343 #undef YY_DO_BEFORE_ACTION
345 #ifdef YY_DECL_IS_OURS
346 #undef YY_DECL_IS_OURS
347 #undef YY_DECL
348 #endif
350 #undef cmDependsFortran_yyIN_HEADER
351 #endif /* cmDependsFortran_yyHEADER_H */