- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

# scanner.h

    00001 #ifndef libconfig_yyHEADER_H
    00002 #define libconfig_yyHEADER_H 1
    00003 #define libconfig_yyIN_HEADER 1
    00004
    00005 #line 6 "scanner.h"
    00006
    00007 #line 8 "scanner.h"
    00008
    00009 #define  YY_INT_ALIGNED short int
    00010
    00011 /* A lexical scanner generated by flex */
    00012
    00013 #define FLEX_SCANNER
    00014 #define YY_FLEX_MAJOR_VERSION 2
    00015 #define YY_FLEX_MINOR_VERSION 5
    00016 #define YY_FLEX_SUBMINOR_VERSION 33
    00017 #if YY_FLEX_SUBMINOR_VERSION > 0
    00018 #define FLEX_BETA
    00019 #endif
    00020
    00021 /* First, we deal with  platform-specific or compiler-specific issues. */
    00022
    00023 /* begin standard C headers. */
    00024 #include <stdio.h>
    00025 #include <string.h>
    00026 #include <errno.h>
    00027 #include <stdlib.h>
    00028
    00029 /* end standard C headers. */
    00030
    00031 /* flex integer type definitions */
    00032
    00033 #ifndef FLEXINT_H
    00034 #define FLEXINT_H
    00035
    00036 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
    00037
    00038 #if __STDC_VERSION__ >= 199901L
    00039
    00040 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
    00041  * if you want the limit (max/min) macros for int types.
    00042  */
    00043 #ifndef __STDC_LIMIT_MACROS
    00044 #define __STDC_LIMIT_MACROS 1
    00045 #endif
    00046
    00047 #include <inttypes.h>
    00048 typedef int8_t flex_int8_t;
    00049 typedef uint8_t flex_uint8_t;
    00050 typedef int16_t flex_int16_t;
    00051 typedef uint16_t flex_uint16_t;
    00052 typedef int32_t flex_int32_t;
    00053 typedef uint32_t flex_uint32_t;
    00054 #else
    00055 typedef signed char flex_int8_t;
    00056 typedef short int flex_int16_t;
    00057 typedef int flex_int32_t;
    00058 typedef unsigned char flex_uint8_t;
    00059 typedef unsigned short int flex_uint16_t;
    00060 typedef unsigned int flex_uint32_t;
    00061 #endif /* ! C99 */
    00062
    00063 /* Limits of integral types. */
    00064 #ifndef INT8_MIN
    00065 #define INT8_MIN               (-128)
    00066 #endif
    00067 #ifndef INT16_MIN
    00068 #define INT16_MIN              (-32767-1)
    00069 #endif
    00070 #ifndef INT32_MIN
    00071 #define INT32_MIN              (-2147483647-1)
    00072 #endif
    00073 #ifndef INT8_MAX
    00074 #define INT8_MAX               (127)
    00075 #endif
    00076 #ifndef INT16_MAX
    00077 #define INT16_MAX              (32767)
    00078 #endif
    00079 #ifndef INT32_MAX
    00080 #define INT32_MAX              (2147483647)
    00081 #endif
    00082 #ifndef UINT8_MAX
    00083 #define UINT8_MAX              (255U)
    00084 #endif
    00085 #ifndef UINT16_MAX
    00086 #define UINT16_MAX             (65535U)
    00087 #endif
    00088 #ifndef UINT32_MAX
    00089 #define UINT32_MAX             (4294967295U)
    00090 #endif
    00091
    00092 #endif /* ! FLEXINT_H */
    00093
    00094 #ifdef __cplusplus
    00095
    00096 /* The "const" storage-class-modifier is valid. */
    00097 #define YY_USE_CONST
    00098
    00099 #else   /* ! __cplusplus */
    00100
    00101 #if __STDC__
    00102
    00103 #define YY_USE_CONST
    00104
    00105 #endif  /* __STDC__ */
    00106 #endif  /* ! __cplusplus */
    00107
    00108 #ifdef YY_USE_CONST
    00109 #define yyconst const
    00110 #else
    00111 #define yyconst
    00112 #endif
    00113
    00114 /* An opaque pointer. */
    00115 #ifndef YY_TYPEDEF_YY_SCANNER_T
    00116 #define YY_TYPEDEF_YY_SCANNER_T
    00117 typedef void* yyscan_t;
    00118 #endif
    00119
    00120 /* For convenience, these vars (plus the bison vars far below)
    00121    are macros in the reentrant scanner. */
    00122 #define yyin yyg->yyin_r
    00123 #define yyout yyg->yyout_r
    00124 #define yyextra yyg->yyextra_r
    00125 #define yyleng yyg->yyleng_r
    00126 #define yytext yyg->yytext_r
    00127 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
    00128 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
    00129 #define yy_flex_debug yyg->yy_flex_debug_r
    00130
    00131 int libconfig_yylex_init (yyscan_t* scanner);
    00132
    00133 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
    00134 #define YY_TYPEDEF_YY_BUFFER_STATE
    00135 typedef struct yy_buffer_state *YY_BUFFER_STATE;
    00136 #endif
    00137
    00138 /* The following is because we cannot portably get our hands on size_t
    00139  * (without autoconf's help, which isn't available because we want
    00140  * flex-generated scanners to compile on their own).
    00141  */
    00142
    00143 #ifndef YY_TYPEDEF_YY_SIZE_T
    00144 #define YY_TYPEDEF_YY_SIZE_T
    00145 typedef unsigned int yy_size_t;
    00146 #endif
    00147
    00148 #ifndef YY_STRUCT_YY_BUFFER_STATE
    00149 #define YY_STRUCT_YY_BUFFER_STATE
    00150 struct yy_buffer_state
    00151         {
    00152         FILE *yy_input_file;
    00153
    00154         char *yy_ch_buf;                /* input buffer */
    00155         char *yy_buf_pos;               /* current position in input buffer */
    00156
    00157         /* Size of input buffer in bytes, not including room for EOB
    00158          * characters.
    00159          */
    00160         yy_size_t yy_buf_size;
    00161
    00162         /* Number of characters read into yy_ch_buf, not including EOB
    00163          * characters.
    00164          */
    00165         int yy_n_chars;
    00166
    00167         /* Whether we "own" the buffer - i.e., we know we created it,
    00168          * and can realloc() it to grow it, and should free() it to
    00169          * delete it.
    00170          */
    00171         int yy_is_our_buffer;
    00172
    00173         /* Whether this is an "interactive" input source; if so, and
    00174          * if we're using stdio for input, then we want to use getc()
    00175          * instead of fread(), to make sure we stop fetching input after
    00176          * each newline.
    00177          */
    00178         int yy_is_interactive;
    00179
    00180         /* Whether we're considered to be at the beginning of a line.
    00181          * If so, '^' rules will be active on the next match, otherwise
    00182          * not.
    00183          */
    00184         int yy_at_bol;
    00185
    00186     int yy_bs_lineno;
    00187     int yy_bs_column;
    00189         /* Whether to try to fill the input buffer when we reach the
    00190          * end of it.
    00191          */
    00192         int yy_fill_buffer;
    00193
    00194         int yy_buffer_status;
    00195
    00196         };
    00197 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
    00198
    00199 void libconfig_yyrestart (FILE *input_file ,yyscan_t yyscanner );
    00200 void libconfig_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
    00201 YY_BUFFER_STATE libconfig_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
    00202 void libconfig_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
    00203 void libconfig_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
    00204 void libconfig_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
    00205 void libconfig_yypop_buffer_state (yyscan_t yyscanner );
    00206
    00207 YY_BUFFER_STATE libconfig_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
    00208 YY_BUFFER_STATE libconfig_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
    00209 YY_BUFFER_STATE libconfig_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
    00210
    00211 void *libconfig_yyalloc (yy_size_t ,yyscan_t yyscanner );
    00212 void *libconfig_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
    00213 void libconfig_yyfree (void * ,yyscan_t yyscanner );
    00214
    00215 #define libconfig_yywrap(n) 1
    00216 #define YY_SKIP_YYWRAP
    00217
    00218 #define yytext_ptr yytext_r
    00219
    00220 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
    00221 #define INITIAL 0
    00222 #define COMMENT 1
    00223
    00224 #endif
    00225
    00226 #ifndef YY_EXTRA_TYPE
    00227 #define YY_EXTRA_TYPE void *
    00228 #endif
    00229
    00230 /* Accessor methods to globals.
    00231    These are made visible to non-reentrant scanners for convenience. */
    00232
    00233 int libconfig_yylex_destroy (yyscan_t yyscanner );
    00234
    00235 int libconfig_yyget_debug (yyscan_t yyscanner );
    00236
    00237 void libconfig_yyset_debug (int debug_flag ,yyscan_t yyscanner );
    00238
    00239 YY_EXTRA_TYPE libconfig_yyget_extra (yyscan_t yyscanner );
    00240
    00241 void libconfig_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
    00242
    00243 FILE *libconfig_yyget_in (yyscan_t yyscanner );
    00244
    00245 void libconfig_yyset_in  (FILE * in_str ,yyscan_t yyscanner );
    00246
    00247 FILE *libconfig_yyget_out (yyscan_t yyscanner );
    00248
    00249 void libconfig_yyset_out  (FILE * out_str ,yyscan_t yyscanner );
    00250
    00251 int libconfig_yyget_leng (yyscan_t yyscanner );
    00252
    00253 char *libconfig_yyget_text (yyscan_t yyscanner );
    00254
    00255 int libconfig_yyget_lineno (yyscan_t yyscanner );
    00256
    00257 void libconfig_yyset_lineno (int line_number ,yyscan_t yyscanner );
    00258
    00259 YYSTYPE * libconfig_yyget_lval (yyscan_t yyscanner );
    00260
    00261 void libconfig_yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
    00262
    00263 /* Macros after this point can all be overridden by user definitions in
    00264  * section 1.
    00265  */
    00266
    00267 #ifndef YY_SKIP_YYWRAP
    00268 #ifdef __cplusplus
    00269 extern "C" int libconfig_yywrap (yyscan_t yyscanner );
    00270 #else
    00271 extern int libconfig_yywrap (yyscan_t yyscanner );
    00272 #endif
    00273 #endif
    00274
    00275 #ifndef yytext_ptr
    00276 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
    00277 #endif
    00278
    00279 #ifdef YY_NEED_STRLEN
    00280 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
    00281 #endif
    00282
    00283 #ifndef YY_NO_INPUT
    00284
    00285 #endif
    00286
    00287 /* Amount of stuff to slurp up with each read. */
    00288 #ifndef YY_READ_BUF_SIZE
    00289 #define YY_READ_BUF_SIZE 8192
    00290 #endif
    00291
    00292 /* Number of entries by which start-condition stack grows. */
    00293 #ifndef YY_START_STACK_INCR
    00294 #define YY_START_STACK_INCR 25
    00295 #endif
    00296
    00297 /* Default declaration of generated scanner - a define so the user can
    00298  * easily add parameters.
    00299  */
    00300 #ifndef YY_DECL
    00301 #define YY_DECL_IS_OURS 1
    00302
    00303 extern int libconfig_yylex (YYSTYPE * yylval_param ,yyscan_t yyscanner);
    00304
    00305 #define YY_DECL int libconfig_yylex (YYSTYPE * yylval_param , yyscan_t yyscanner)
    00306 #endif /* !YY_DECL */
    00307
    00308 /* yy_get_previous_state - get the state just before the EOB char was reached */
    00309
    00310 #undef YY_NEW_FILE
    00311 #undef YY_FLUSH_BUFFER
    00312 #undef yy_set_bol
    00313 #undef yy_new_buffer
    00314 #undef yy_set_interactive
    00315 #undef YY_DO_BEFORE_ACTION
    00316
    00317 #ifdef YY_DECL_IS_OURS
    00318 #undef YY_DECL_IS_OURS
    00319 #undef YY_DECL
    00320 #endif
    00321
    00322 #line 130 "scanner.l"
    00323
    00324 #line 325 "scanner.h"
    00325 #undef libconfig_yyIN_HEADER
    00326 #endif /* libconfig_yyHEADER_H */