Snoopy Version 6.0 (Albert)
|
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | yy_buffer_state |
Defines | |
#define | libconfig_yyIN_HEADER 1 |
#define | YY_INT_ALIGNED short int |
#define | FLEX_SCANNER |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 5 |
#define | YY_FLEX_SUBMINOR_VERSION 33 |
#define | FLEX_BETA |
#define | FLEXINT_H |
#define | INT8_MIN (-128) |
#define | INT16_MIN (-32767-1) |
#define | INT32_MIN (-2147483647-1) |
#define | INT8_MAX (127) |
#define | INT16_MAX (32767) |
#define | INT32_MAX (2147483647) |
#define | UINT8_MAX (255U) |
#define | UINT16_MAX (65535U) |
#define | UINT32_MAX (4294967295U) |
#define | yyconst |
#define | YY_TYPEDEF_YY_SCANNER_T |
#define | yyin yyg->yyin_r |
#define | yyout yyg->yyout_r |
#define | yyextra yyg->yyextra_r |
#define | yyleng yyg->yyleng_r |
#define | yytext yyg->yytext_r |
#define | yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
#define | yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
#define | yy_flex_debug yyg->yy_flex_debug_r |
#define | YY_TYPEDEF_YY_BUFFER_STATE |
#define | YY_TYPEDEF_YY_SIZE_T |
#define | YY_STRUCT_YY_BUFFER_STATE |
#define | libconfig_yywrap(n) 1 |
#define | YY_SKIP_YYWRAP |
#define | yytext_ptr yytext_r |
#define | YY_EXTRA_TYPE void * |
#define | YY_READ_BUF_SIZE 8192 |
#define | YY_START_STACK_INCR 25 |
#define | YY_DECL_IS_OURS 1 |
#define | YY_DECL int libconfig_yylex (YYSTYPE * yylval_param , yyscan_t yyscanner) |
Typedefs | |
typedef signed char | flex_int8_t |
typedef short int | flex_int16_t |
typedef int | flex_int32_t |
typedef unsigned char | flex_uint8_t |
typedef unsigned short int | flex_uint16_t |
typedef unsigned int | flex_uint32_t |
typedef void * | yyscan_t |
typedef struct yy_buffer_state * | YY_BUFFER_STATE |
typedef unsigned int | yy_size_t |
Functions | |
int | libconfig_yylex_init (yyscan_t *scanner) |
void | libconfig_yyrestart (FILE *input_file, yyscan_t yyscanner) |
void | libconfig_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
YY_BUFFER_STATE | libconfig_yy_create_buffer (FILE *file, int size, yyscan_t yyscanner) |
void | libconfig_yy_delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
void | libconfig_yy_flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner) |
void | libconfig_yypush_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) |
void | libconfig_yypop_buffer_state (yyscan_t yyscanner) |
YY_BUFFER_STATE | libconfig_yy_scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner) |
YY_BUFFER_STATE | libconfig_yy_scan_string (yyconst char *yy_str, yyscan_t yyscanner) |
YY_BUFFER_STATE | libconfig_yy_scan_bytes (yyconst char *bytes, int len, yyscan_t yyscanner) |
void * | libconfig_yyalloc (yy_size_t, yyscan_t yyscanner) |
void * | libconfig_yyrealloc (void *, yy_size_t, yyscan_t yyscanner) |
void | libconfig_yyfree (void *, yyscan_t yyscanner) |
int | libconfig_yylex_destroy (yyscan_t yyscanner) |
int | libconfig_yyget_debug (yyscan_t yyscanner) |
void | libconfig_yyset_debug (int debug_flag, yyscan_t yyscanner) |
YY_EXTRA_TYPE | libconfig_yyget_extra (yyscan_t yyscanner) |
void | libconfig_yyset_extra (YY_EXTRA_TYPE user_defined, yyscan_t yyscanner) |
FILE * | libconfig_yyget_in (yyscan_t yyscanner) |
void | libconfig_yyset_in (FILE *in_str, yyscan_t yyscanner) |
FILE * | libconfig_yyget_out (yyscan_t yyscanner) |
void | libconfig_yyset_out (FILE *out_str, yyscan_t yyscanner) |
int | libconfig_yyget_leng (yyscan_t yyscanner) |
char * | libconfig_yyget_text (yyscan_t yyscanner) |
int | libconfig_yyget_lineno (yyscan_t yyscanner) |
void | libconfig_yyset_lineno (int line_number, yyscan_t yyscanner) |
YYSTYPE * | libconfig_yyget_lval (yyscan_t yyscanner) |
void | libconfig_yyset_lval (YYSTYPE *yylval_param, yyscan_t yyscanner) |
int | libconfig_yylex (YYSTYPE *yylval_param, yyscan_t yyscanner) |
#define FLEX_BETA |
#define FLEX_SCANNER |
#define FLEXINT_H |
#define INT16_MAX (32767) |
#define INT16_MIN (-32767-1) |
#define INT32_MAX (2147483647) |
#define INT32_MIN (-2147483647-1) |
#define INT8_MAX (127) |
#define INT8_MIN (-128) |
#define libconfig_yyIN_HEADER 1 |
#define libconfig_yywrap | ( | n | ) | 1 |
#define UINT16_MAX (65535U) |
#define UINT32_MAX (4294967295U) |
#define UINT8_MAX (255U) |
#define YY_DECL_IS_OURS 1 |
#define YY_EXTRA_TYPE void * |
#define yy_flex_debug yyg->yy_flex_debug_r |
#define YY_FLEX_MAJOR_VERSION 2 |
#define YY_FLEX_MINOR_VERSION 5 |
#define YY_FLEX_SUBMINOR_VERSION 33 |
#define YY_INT_ALIGNED short int |
#define YY_READ_BUF_SIZE 8192 |
#define YY_SKIP_YYWRAP |
#define YY_START_STACK_INCR 25 |
#define YY_STRUCT_YY_BUFFER_STATE |
#define YY_TYPEDEF_YY_BUFFER_STATE |
#define YY_TYPEDEF_YY_SCANNER_T |
#define YY_TYPEDEF_YY_SIZE_T |
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
#define yyconst |
#define yyextra yyg->yyextra_r |
#define yyin yyg->yyin_r |
#define yyleng yyg->yyleng_r |
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
#define yyout yyg->yyout_r |
#define yytext yyg->yytext_r |
#define yytext_ptr yytext_r |
typedef short int flex_int16_t |
typedef int flex_int32_t |
typedef signed char flex_int8_t |
typedef unsigned short int flex_uint16_t |
typedef unsigned int flex_uint32_t |
typedef unsigned char flex_uint8_t |
typedef struct yy_buffer_state* YY_BUFFER_STATE |
typedef unsigned int yy_size_t |
typedef void* yyscan_t |
YY_BUFFER_STATE libconfig_yy_create_buffer | ( | FILE * | file, |
int | size, | ||
yyscan_t | yyscanner | ||
) |
void libconfig_yy_delete_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
void libconfig_yy_flush_buffer | ( | YY_BUFFER_STATE | b, |
yyscan_t | yyscanner | ||
) |
Discard all buffered characters. On the next scan, YY_INPUT will be called.
b | the buffer state to be flushed, usually YY_CURRENT_BUFFER . |
yyscanner | The scanner object. |
YY_BUFFER_STATE libconfig_yy_scan_buffer | ( | char * | base, |
yy_size_t | size, | ||
yyscan_t | yyscanner | ||
) |
Setup the input buffer state to scan directly from a user-specified character buffer.
base | the character buffer |
size | the size in bytes of the character buffer |
yyscanner | The scanner object. |
YY_BUFFER_STATE libconfig_yy_scan_bytes | ( | yyconst char * | bytes, |
int | len, | ||
yyscan_t | yyscanner | ||
) |
Setup the input buffer state to scan the given bytes. The next call to libconfig_yylex() will scan from a copy of bytes.
bytes | the byte buffer to scan |
len | the number of bytes in the buffer pointed to by bytes. |
yyscanner | The scanner object. |
YY_BUFFER_STATE libconfig_yy_scan_string | ( | yyconst char * | yy_str, |
yyscan_t | yyscanner | ||
) |
Setup the input buffer state to scan a string. The next call to libconfig_yylex() will scan from a copy of str.
yystr | a NUL-terminated string to scan |
yyscanner | The scanner object. |
void libconfig_yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer, |
yyscan_t | yyscanner | ||
) |
void libconfig_yyfree | ( | void * | , |
yyscan_t | yyscanner | ||
) |
int libconfig_yyget_debug | ( | yyscan_t | yyscanner | ) |
YY_EXTRA_TYPE libconfig_yyget_extra | ( | yyscan_t | yyscanner | ) |
Get the user-defined data for this scanner.
yyscanner | The scanner object. |
FILE* libconfig_yyget_in | ( | yyscan_t | yyscanner | ) |
Get the input stream.
yyscanner | The scanner object. |
int libconfig_yyget_leng | ( | yyscan_t | yyscanner | ) |
Get the length of the current token.
yyscanner | The scanner object. |
int libconfig_yyget_lineno | ( | yyscan_t | yyscanner | ) |
Get the current line number.
yyscanner | The scanner object. |
FILE* libconfig_yyget_out | ( | yyscan_t | yyscanner | ) |
Get the output stream.
yyscanner | The scanner object. |
char* libconfig_yyget_text | ( | yyscan_t | yyscanner | ) |
Get the current token.
yyscanner | The scanner object. |
int libconfig_yylex_destroy | ( | yyscan_t | yyscanner | ) |
int libconfig_yylex_init | ( | yyscan_t * | scanner | ) |
void libconfig_yypop_buffer_state | ( | yyscan_t | yyscanner | ) |
Removes and deletes the top of the stack, if present. The next element becomes the new top.
yyscanner | The scanner object. |
void libconfig_yypush_buffer_state | ( | YY_BUFFER_STATE | new_buffer, |
yyscan_t | yyscanner | ||
) |
Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.
new_buffer | The new state. |
yyscanner | The scanner object. |
void libconfig_yyrestart | ( | FILE * | input_file, |
yyscan_t | yyscanner | ||
) |
void libconfig_yyset_debug | ( | int | debug_flag, |
yyscan_t | yyscanner | ||
) |
void libconfig_yyset_extra | ( | YY_EXTRA_TYPE | user_defined, |
yyscan_t | yyscanner | ||
) |
Set the user-defined data. This data is never touched by the scanner.
user_defined | The data to be associated with this scanner. |
yyscanner | The scanner object. |
void libconfig_yyset_in | ( | FILE * | in_str, |
yyscan_t | yyscanner | ||
) |
Set the input stream. This does not discard the current input buffer.
in_str | A readable stream. |
yyscanner | The scanner object. |
void libconfig_yyset_lineno | ( | int | line_number, |
yyscan_t | yyscanner | ||
) |
Set the current line number.
line_number | |
yyscanner | The scanner object. |
void libconfig_yyset_out | ( | FILE * | out_str, |
yyscan_t | yyscanner | ||
) |