1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmDependsFortranLexer.h,v $
6 Date: $Date: 2007-10-03 19:41:39 $
7 Version: $Revision: 1.7 $
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 */
26 #define YY_FLEX_MAJOR_VERSION 2
27 #define YY_FLEX_MINOR_VERSION 5
28 #define YY_FLEX_SUBMINOR_VERSION 33
29 #if YY_FLEX_SUBMINOR_VERSION > 0
33 /* First, we deal with platform-specific or compiler-specific issues. */
35 /* begin standard C headers. */
41 /* end standard C headers. */
43 /* flex integer type definitions */
48 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
50 #if __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
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
;
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
;
75 /* Limits of integral types. */
77 #define INT8_MIN (-128)
80 #define INT16_MIN (-32767-1)
83 #define INT32_MIN (-2147483647-1)
86 #define INT8_MAX (127)
89 #define INT16_MAX (32767)
92 #define INT32_MAX (2147483647)
95 #define UINT8_MAX (255U)
98 #define UINT16_MAX (65535U)
101 #define UINT32_MAX (4294967295U)
104 #endif /* ! FLEXINT_H */
108 /* The "const" storage-class-modifier is valid. */
111 #else /* ! __cplusplus */
117 #endif /* __STDC__ */
118 #endif /* ! __cplusplus */
121 #define yyconst const
126 /* An opaque pointer. */
127 #ifndef YY_TYPEDEF_YY_SCANNER_T
128 #define YY_TYPEDEF_YY_SCANNER_T
129 typedef void* yyscan_t
;
132 /* For convenience, these vars (plus the bison vars far below)
133 are macros in the reentrant scanner. */
134 #define yyin yyg->yyin_r
135 #define yyout yyg->yyout_r
136 #define yyextra yyg->yyextra_r
137 #define yyleng yyg->yyleng_r
138 #define yytext yyg->yytext_r
139 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
140 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
141 #define yy_flex_debug yyg->yy_flex_debug_r
143 int cmDependsFortran_yylex_init (yyscan_t
* scanner
);
145 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
146 #define YY_TYPEDEF_YY_BUFFER_STATE
147 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
150 /* The following is because we cannot portably get our hands on size_t
151 * (without autoconf's help, which isn't available because we want
152 * flex-generated scanners to compile on their own).
155 #ifndef YY_TYPEDEF_YY_SIZE_T
156 #define YY_TYPEDEF_YY_SIZE_T
157 typedef unsigned int yy_size_t
;
160 #ifndef YY_STRUCT_YY_BUFFER_STATE
161 #define YY_STRUCT_YY_BUFFER_STATE
162 struct yy_buffer_state
166 char *yy_ch_buf
; /* input buffer */
167 char *yy_buf_pos
; /* current position in input buffer */
169 /* Size of input buffer in bytes, not including room for EOB
172 yy_size_t yy_buf_size
;
174 /* Number of characters read into yy_ch_buf, not including EOB
179 /* Whether we "own" the buffer - i.e., we know we created it,
180 * and can realloc() it to grow it, and should free() it to
183 int yy_is_our_buffer
;
185 /* Whether this is an "interactive" input source; if so, and
186 * if we're using stdio for input, then we want to use getc()
187 * instead of fread(), to make sure we stop fetching input after
190 int yy_is_interactive
;
192 /* Whether we're considered to be at the beginning of a line.
193 * If so, '^' rules will be active on the next match, otherwise
198 int yy_bs_lineno
; /**< The line count. */
199 int yy_bs_column
; /**< The column count. */
201 /* Whether to try to fill the input buffer when we reach the
206 int yy_buffer_status
;
209 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
211 void cmDependsFortran_yyrestart (FILE *input_file
,yyscan_t yyscanner
);
212 void cmDependsFortran_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
213 YY_BUFFER_STATE
cmDependsFortran_yy_create_buffer (FILE *file
,int size
,yyscan_t yyscanner
);
214 void cmDependsFortran_yy_delete_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
215 void cmDependsFortran_yy_flush_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
216 void cmDependsFortran_yypush_buffer_state (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
217 void cmDependsFortran_yypop_buffer_state (yyscan_t yyscanner
);
219 YY_BUFFER_STATE
cmDependsFortran_yy_scan_buffer (char *base
,yy_size_t size
,yyscan_t yyscanner
);
220 YY_BUFFER_STATE
cmDependsFortran_yy_scan_string (yyconst
char *yy_str
,yyscan_t yyscanner
);
221 YY_BUFFER_STATE
cmDependsFortran_yy_scan_bytes (yyconst
char *bytes
,int len
,yyscan_t yyscanner
);
223 void *cmDependsFortran_yyalloc (yy_size_t
,yyscan_t yyscanner
);
224 void *cmDependsFortran_yyrealloc (void *,yy_size_t
,yyscan_t yyscanner
);
225 void cmDependsFortran_yyfree (void * ,yyscan_t yyscanner
);
227 /* Begin user sect3 */
229 #define cmDependsFortran_yywrap(n) 1
230 #define YY_SKIP_YYWRAP
232 #define yytext_ptr yytext_r
234 #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 cmDependsFortran_yylex_destroy (yyscan_t yyscanner
);
252 int cmDependsFortran_yyget_debug (yyscan_t yyscanner
);
254 void cmDependsFortran_yyset_debug (int debug_flag
,yyscan_t yyscanner
);
256 YY_EXTRA_TYPE
cmDependsFortran_yyget_extra (yyscan_t yyscanner
);
258 void cmDependsFortran_yyset_extra (YY_EXTRA_TYPE user_defined
,yyscan_t yyscanner
);
260 FILE *cmDependsFortran_yyget_in (yyscan_t yyscanner
);
262 void cmDependsFortran_yyset_in (FILE * in_str
,yyscan_t yyscanner
);
264 FILE *cmDependsFortran_yyget_out (yyscan_t yyscanner
);
266 void cmDependsFortran_yyset_out (FILE * out_str
,yyscan_t yyscanner
);
268 int cmDependsFortran_yyget_leng (yyscan_t yyscanner
);
270 char *cmDependsFortran_yyget_text (yyscan_t yyscanner
);
272 int cmDependsFortran_yyget_lineno (yyscan_t yyscanner
);
274 void cmDependsFortran_yyset_lineno (int line_number
,yyscan_t yyscanner
);
276 /* Macros after this point can all be overridden by user definitions in
280 #ifndef YY_SKIP_YYWRAP
282 extern "C" int cmDependsFortran_yywrap (yyscan_t yyscanner
);
284 extern int cmDependsFortran_yywrap (yyscan_t yyscanner
);
289 static void yy_flex_strncpy (char *,yyconst
char *,int ,yyscan_t yyscanner
);
292 #ifdef YY_NEED_STRLEN
293 static int yy_flex_strlen (yyconst
char * ,yyscan_t yyscanner
);
300 /* Amount of stuff to slurp up with each read. */
301 #ifndef YY_READ_BUF_SIZE
302 #define YY_READ_BUF_SIZE 8192
305 /* Number of entries by which start-condition stack grows. */
306 #ifndef YY_START_STACK_INCR
307 #define YY_START_STACK_INCR 25
310 /* Default declaration of generated scanner - a define so the user can
311 * easily add parameters.
314 #define YY_DECL_IS_OURS 1
316 extern int cmDependsFortran_yylex (yyscan_t yyscanner
);
318 #define YY_DECL int cmDependsFortran_yylex (yyscan_t yyscanner)
319 #endif /* !YY_DECL */
321 /* yy_get_previous_state - get the state just before the EOB char was reached */
324 #undef YY_FLUSH_BUFFER
327 #undef yy_set_interactive
328 #undef YY_DO_BEFORE_ACTION
330 #ifdef YY_DECL_IS_OURS
331 #undef YY_DECL_IS_OURS
335 #undef cmDependsFortran_yyIN_HEADER
336 #endif /* cmDependsFortran_yyHEADER_H */