ENH: Return utility target after creation
[cmake.git] / Source / cmDependsFortranLexer.h
blob2c59d1afef00f3a772aa838f0a037d064f571681
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmDependsFortranLexer.h,v $
5 Language: C++
6 Date: $Date: 2008-04-21 15:15:56 $
7 Version: $Revision: 1.8 $
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 cmDependsFortran_yyHEADER_H
18 #define cmDependsFortran_yyHEADER_H 1
19 #define cmDependsFortran_yyIN_HEADER 1
21 #define YY_INT_ALIGNED short int
23 /* A lexical scanner generated by flex */
25 #define FLEX_SCANNER
26 #define YY_FLEX_MAJOR_VERSION 2
27 #define YY_FLEX_MINOR_VERSION 5
28 #define YY_FLEX_SUBMINOR_VERSION 34
29 #if YY_FLEX_SUBMINOR_VERSION > 0
30 #define FLEX_BETA
31 #endif
33 /* First, we deal with platform-specific or compiler-specific issues. */
35 /* begin standard C headers. */
36 #include <stdio.h>
37 #include <string.h>
38 #include <errno.h>
39 #include <stdlib.h>
41 /* end standard C headers. */
43 /* flex integer type definitions */
45 #ifndef FLEXINT_H
46 #define FLEXINT_H
48 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
50 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
52 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
53 * if you want the limit (max/min) macros for int types.
55 #ifndef __STDC_LIMIT_MACROS
56 #define __STDC_LIMIT_MACROS 1
57 #endif
59 #include <inttypes.h>
60 typedef int8_t flex_int8_t;
61 typedef uint8_t flex_uint8_t;
62 typedef int16_t flex_int16_t;
63 typedef uint16_t flex_uint16_t;
64 typedef int32_t flex_int32_t;
65 typedef uint32_t flex_uint32_t;
66 #else
67 typedef signed char flex_int8_t;
68 typedef short int flex_int16_t;
69 typedef int flex_int32_t;
70 typedef unsigned char flex_uint8_t;
71 typedef unsigned short int flex_uint16_t;
72 typedef unsigned int flex_uint32_t;
73 #endif /* ! C99 */
75 /* Limits of integral types. */
76 #ifndef INT8_MIN
77 #define INT8_MIN (-128)
78 #endif
79 #ifndef INT16_MIN
80 #define INT16_MIN (-32767-1)
81 #endif
82 #ifndef INT32_MIN
83 #define INT32_MIN (-2147483647-1)
84 #endif
85 #ifndef INT8_MAX
86 #define INT8_MAX (127)
87 #endif
88 #ifndef INT16_MAX
89 #define INT16_MAX (32767)
90 #endif
91 #ifndef INT32_MAX
92 #define INT32_MAX (2147483647)
93 #endif
94 #ifndef UINT8_MAX
95 #define UINT8_MAX (255U)
96 #endif
97 #ifndef UINT16_MAX
98 #define UINT16_MAX (65535U)
99 #endif
100 #ifndef UINT32_MAX
101 #define UINT32_MAX (4294967295U)
102 #endif
104 #endif /* ! FLEXINT_H */
106 #ifdef __cplusplus
108 /* The "const" storage-class-modifier is valid. */
109 #define YY_USE_CONST
111 #else /* ! __cplusplus */
113 /* C99 requires __STDC__ to be defined as 1. */
114 #if defined (__STDC__)
116 #define YY_USE_CONST
118 #endif /* defined (__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 /* Size of default input buffer. */
145 #ifndef YY_BUF_SIZE
146 #define YY_BUF_SIZE 16384
147 #endif
149 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
150 #define YY_TYPEDEF_YY_BUFFER_STATE
151 typedef struct yy_buffer_state *YY_BUFFER_STATE;
152 #endif
154 /* The following is because we cannot portably get our hands on size_t
155 * (without autoconf's help, which isn't available because we want
156 * flex-generated scanners to compile on their own).
157 * Given that the standard has decreed that size_t exists since 1989,
158 * I guess we can afford to depend on it. Manoj.
161 #ifndef YY_TYPEDEF_YY_SIZE_T
162 #define YY_TYPEDEF_YY_SIZE_T
163 typedef size_t yy_size_t;
164 #endif
166 #ifndef YY_STRUCT_YY_BUFFER_STATE
167 #define YY_STRUCT_YY_BUFFER_STATE
168 struct yy_buffer_state
170 FILE *yy_input_file;
172 char *yy_ch_buf; /* input buffer */
173 char *yy_buf_pos; /* current position in input buffer */
175 /* Size of input buffer in bytes, not including room for EOB
176 * characters.
178 yy_size_t yy_buf_size;
180 /* Number of characters read into yy_ch_buf, not including EOB
181 * characters.
183 int yy_n_chars;
185 /* Whether we "own" the buffer - i.e., we know we created it,
186 * and can realloc() it to grow it, and should free() it to
187 * delete it.
189 int yy_is_our_buffer;
191 /* Whether this is an "interactive" input source; if so, and
192 * if we're using stdio for input, then we want to use getc()
193 * instead of fread(), to make sure we stop fetching input after
194 * each newline.
196 int yy_is_interactive;
198 /* Whether we're considered to be at the beginning of a line.
199 * If so, '^' rules will be active on the next match, otherwise
200 * not.
202 int yy_at_bol;
204 int yy_bs_lineno; /**< The line count. */
205 int yy_bs_column; /**< The column count. */
207 /* Whether to try to fill the input buffer when we reach the
208 * end of it.
210 int yy_fill_buffer;
212 int yy_buffer_status;
215 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
217 void cmDependsFortran_yyrestart (FILE *input_file ,yyscan_t yyscanner );
218 void cmDependsFortran_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
219 YY_BUFFER_STATE cmDependsFortran_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
220 void cmDependsFortran_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
221 void cmDependsFortran_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
222 void cmDependsFortran_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
223 void cmDependsFortran_yypop_buffer_state (yyscan_t yyscanner );
225 YY_BUFFER_STATE cmDependsFortran_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
226 YY_BUFFER_STATE cmDependsFortran_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
227 YY_BUFFER_STATE cmDependsFortran_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
229 void *cmDependsFortran_yyalloc (yy_size_t ,yyscan_t yyscanner );
230 void *cmDependsFortran_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
231 void cmDependsFortran_yyfree (void * ,yyscan_t yyscanner );
233 /* Begin user sect3 */
235 #define cmDependsFortran_yywrap(n) 1
236 #define YY_SKIP_YYWRAP
238 #define yytext_ptr yytext_r
240 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
241 #define INITIAL 0
242 #define free_fmt 1
243 #define fixed_fmt 2
244 #define str_sq 3
245 #define str_dq 4
247 #endif
249 #ifndef YY_EXTRA_TYPE
250 #define YY_EXTRA_TYPE void *
251 #endif
253 int cmDependsFortran_yylex_init (yyscan_t* scanner);
255 int cmDependsFortran_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
257 /* Accessor methods to globals.
258 These are made visible to non-reentrant scanners for convenience. */
260 int cmDependsFortran_yylex_destroy (yyscan_t yyscanner );
262 int cmDependsFortran_yyget_debug (yyscan_t yyscanner );
264 void cmDependsFortran_yyset_debug (int debug_flag ,yyscan_t yyscanner );
266 YY_EXTRA_TYPE cmDependsFortran_yyget_extra (yyscan_t yyscanner );
268 void cmDependsFortran_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
270 FILE *cmDependsFortran_yyget_in (yyscan_t yyscanner );
272 void cmDependsFortran_yyset_in (FILE * in_str ,yyscan_t yyscanner );
274 FILE *cmDependsFortran_yyget_out (yyscan_t yyscanner );
276 void cmDependsFortran_yyset_out (FILE * out_str ,yyscan_t yyscanner );
278 int cmDependsFortran_yyget_leng (yyscan_t yyscanner );
280 char *cmDependsFortran_yyget_text (yyscan_t yyscanner );
282 int cmDependsFortran_yyget_lineno (yyscan_t yyscanner );
284 void cmDependsFortran_yyset_lineno (int line_number ,yyscan_t yyscanner );
286 /* Macros after this point can all be overridden by user definitions in
287 * section 1.
290 #ifndef YY_SKIP_YYWRAP
291 #ifdef __cplusplus
292 extern "C" int cmDependsFortran_yywrap (yyscan_t yyscanner );
293 #else
294 extern int cmDependsFortran_yywrap (yyscan_t yyscanner );
295 #endif
296 #endif
298 #ifndef yytext_ptr
299 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
300 #endif
302 #ifdef YY_NEED_STRLEN
303 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
304 #endif
306 #ifndef YY_NO_INPUT
308 #endif
310 /* Amount of stuff to slurp up with each read. */
311 #ifndef YY_READ_BUF_SIZE
312 #define YY_READ_BUF_SIZE 8192
313 #endif
315 /* Number of entries by which start-condition stack grows. */
316 #ifndef YY_START_STACK_INCR
317 #define YY_START_STACK_INCR 25
318 #endif
320 /* Default declaration of generated scanner - a define so the user can
321 * easily add parameters.
323 #ifndef YY_DECL
324 #define YY_DECL_IS_OURS 1
326 extern int cmDependsFortran_yylex (yyscan_t yyscanner);
328 #define YY_DECL int cmDependsFortran_yylex (yyscan_t yyscanner)
329 #endif /* !YY_DECL */
331 /* yy_get_previous_state - get the state just before the EOB char was reached */
333 #undef YY_NEW_FILE
334 #undef YY_FLUSH_BUFFER
335 #undef yy_set_bol
336 #undef yy_new_buffer
337 #undef yy_set_interactive
338 #undef YY_DO_BEFORE_ACTION
340 #ifdef YY_DECL_IS_OURS
341 #undef YY_DECL_IS_OURS
342 #undef YY_DECL
343 #endif
345 #undef cmDependsFortran_yyIN_HEADER
346 #endif /* cmDependsFortran_yyHEADER_H */