1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCommandArgumentLexer.h,v $
6 <<<<<<< cmCommandArgumentLexer.h
7 Date: $Date: 2007/07/27 14:55:24 $
8 Version: $Revision: 1.5 $
10 Date: $Date: 2008-12-17 13:24:35 $
11 Version: $Revision: 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 cmCommandArgument_yyHEADER_H
23 #define cmCommandArgument_yyHEADER_H 1
24 #define cmCommandArgument_yyIN_HEADER 1
26 #define YY_INT_ALIGNED short int
28 /* A lexical scanner generated by flex */
31 #define YY_FLEX_MAJOR_VERSION 2
32 #define YY_FLEX_MINOR_VERSION 5
33 #define YY_FLEX_SUBMINOR_VERSION 35
34 #if YY_FLEX_SUBMINOR_VERSION > 0
38 /* First, we deal with platform-specific or compiler-specific issues. */
40 /* begin standard C headers. */
46 /* end standard C headers. */
48 /* flex integer type definitions */
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
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
;
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
;
79 /* Limits of integral types. */
81 #define INT8_MIN (-128)
84 #define INT16_MIN (-32767-1)
87 #define INT32_MIN (-2147483647-1)
90 #define INT8_MAX (127)
93 #define INT16_MAX (32767)
96 #define INT32_MAX (2147483647)
99 #define UINT8_MAX (255U)
102 #define UINT16_MAX (65535U)
105 #define UINT32_MAX (4294967295U)
110 #endif /* ! FLEXINT_H */
114 /* The "const" storage-class-modifier is valid. */
117 #else /* ! __cplusplus */
119 /* C99 requires __STDC__ to be defined as 1. */
120 #if defined (__STDC__)
124 #endif /* defined (__STDC__) */
125 #endif /* ! __cplusplus */
128 #define yyconst const
133 /* An opaque pointer. */
134 #ifndef YY_TYPEDEF_YY_SCANNER_T
135 #define YY_TYPEDEF_YY_SCANNER_T
136 typedef void* yyscan_t
;
139 /* For convenience, these vars (plus the bison vars far below)
140 are macros in the reentrant scanner. */
141 #define yyin yyg->yyin_r
142 #define yyout yyg->yyout_r
143 #define yyextra yyg->yyextra_r
144 #define yyleng yyg->yyleng_r
145 #define yytext yyg->yytext_r
146 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
147 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
148 #define yy_flex_debug yyg->yy_flex_debug_r
150 /* Size of default input buffer. */
152 #define YY_BUF_SIZE 16384
155 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
156 #define YY_TYPEDEF_YY_BUFFER_STATE
157 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
160 #ifndef YY_TYPEDEF_YY_SIZE_T
161 #define YY_TYPEDEF_YY_SIZE_T
162 typedef size_t yy_size_t
;
165 #ifndef YY_STRUCT_YY_BUFFER_STATE
166 #define YY_STRUCT_YY_BUFFER_STATE
167 struct yy_buffer_state
171 char *yy_ch_buf
; /* input buffer */
172 char *yy_buf_pos
; /* current position in input buffer */
174 /* Size of input buffer in bytes, not including room for EOB
177 yy_size_t yy_buf_size
;
179 /* Number of characters read into yy_ch_buf, not including EOB
184 /* Whether we "own" the buffer - i.e., we know we created it,
185 * and can realloc() it to grow it, and should free() it to
188 int yy_is_our_buffer
;
190 /* Whether this is an "interactive" input source; if so, and
191 * if we're using stdio for input, then we want to use getc()
192 * instead of fread(), to make sure we stop fetching input after
195 int yy_is_interactive
;
197 /* Whether we're considered to be at the beginning of a line.
198 * If so, '^' rules will be active on the next match, otherwise
203 int yy_bs_lineno
; /**< The line count. */
204 int yy_bs_column
; /**< The column count. */
206 /* Whether to try to fill the input buffer when we reach the
211 int yy_buffer_status
;
214 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
216 void cmCommandArgument_yyrestart (FILE *input_file
,yyscan_t yyscanner
);
217 void cmCommandArgument_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
218 YY_BUFFER_STATE
cmCommandArgument_yy_create_buffer (FILE *file
,int size
,yyscan_t yyscanner
);
219 void cmCommandArgument_yy_delete_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
220 void cmCommandArgument_yy_flush_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
221 void cmCommandArgument_yypush_buffer_state (YY_BUFFER_STATE new_buffer
,yyscan_t yyscanner
);
222 void cmCommandArgument_yypop_buffer_state (yyscan_t yyscanner
);
224 YY_BUFFER_STATE
cmCommandArgument_yy_scan_buffer (char *base
,yy_size_t size
,yyscan_t yyscanner
);
225 YY_BUFFER_STATE
cmCommandArgument_yy_scan_string (yyconst
char *yy_str
,yyscan_t yyscanner
);
226 YY_BUFFER_STATE
cmCommandArgument_yy_scan_bytes (yyconst
char *bytes
,int len
,yyscan_t yyscanner
);
228 void *cmCommandArgument_yyalloc (yy_size_t
,yyscan_t yyscanner
);
229 void *cmCommandArgument_yyrealloc (void *,yy_size_t
,yyscan_t yyscanner
);
230 void cmCommandArgument_yyfree (void * ,yyscan_t yyscanner
);
232 /* Begin user sect3 */
234 #define cmCommandArgument_yywrap(n) 1
235 #define YY_SKIP_YYWRAP
237 #define yytext_ptr yytext_r
239 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
246 #ifndef YY_EXTRA_TYPE
247 #define YY_EXTRA_TYPE void *
250 int cmCommandArgument_yylex_init (yyscan_t
* scanner
);
252 int cmCommandArgument_yylex_init_extra (YY_EXTRA_TYPE user_defined
,yyscan_t
* scanner
);
254 /* Accessor methods to globals.
255 These are made visible to non-reentrant scanners for convenience. */
257 int cmCommandArgument_yylex_destroy (yyscan_t yyscanner
);
259 int cmCommandArgument_yyget_debug (yyscan_t yyscanner
);
261 void cmCommandArgument_yyset_debug (int debug_flag
,yyscan_t yyscanner
);
263 YY_EXTRA_TYPE
cmCommandArgument_yyget_extra (yyscan_t yyscanner
);
265 void cmCommandArgument_yyset_extra (YY_EXTRA_TYPE user_defined
,yyscan_t yyscanner
);
267 FILE *cmCommandArgument_yyget_in (yyscan_t yyscanner
);
269 void cmCommandArgument_yyset_in (FILE * in_str
,yyscan_t yyscanner
);
271 FILE *cmCommandArgument_yyget_out (yyscan_t yyscanner
);
273 void cmCommandArgument_yyset_out (FILE * out_str
,yyscan_t yyscanner
);
275 int cmCommandArgument_yyget_leng (yyscan_t yyscanner
);
277 char *cmCommandArgument_yyget_text (yyscan_t yyscanner
);
279 int cmCommandArgument_yyget_lineno (yyscan_t yyscanner
);
281 void cmCommandArgument_yyset_lineno (int line_number
,yyscan_t yyscanner
);
283 /* Macros after this point can all be overridden by user definitions in
287 #ifndef YY_SKIP_YYWRAP
289 extern "C" int cmCommandArgument_yywrap (yyscan_t yyscanner
);
291 extern int cmCommandArgument_yywrap (yyscan_t yyscanner
);
296 static void yy_flex_strncpy (char *,yyconst
char *,int ,yyscan_t yyscanner
);
299 #ifdef YY_NEED_STRLEN
300 static int yy_flex_strlen (yyconst
char * ,yyscan_t yyscanner
);
307 /* Amount of stuff to slurp up with each read. */
308 #ifndef YY_READ_BUF_SIZE
309 #define YY_READ_BUF_SIZE 8192
312 /* Number of entries by which start-condition stack grows. */
313 #ifndef YY_START_STACK_INCR
314 #define YY_START_STACK_INCR 25
317 /* Default declaration of generated scanner - a define so the user can
318 * easily add parameters.
321 #define YY_DECL_IS_OURS 1
323 extern int cmCommandArgument_yylex (yyscan_t yyscanner
);
325 #define YY_DECL int cmCommandArgument_yylex (yyscan_t yyscanner)
326 #endif /* !YY_DECL */
328 /* yy_get_previous_state - get the state just before the EOB char was reached */
331 #undef YY_FLUSH_BUFFER
334 #undef yy_set_interactive
335 #undef YY_DO_BEFORE_ACTION
337 #ifdef YY_DECL_IS_OURS
338 #undef YY_DECL_IS_OURS
342 #undef cmCommandArgument_yyIN_HEADER
343 #endif /* cmCommandArgument_yyHEADER_H */