rpm
4.12.90
|
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "parseReqs.tab.h"
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
struct | yy_buffer_state |
struct | yy_trans_info |
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 struct yy_buffer_state * | YY_BUFFER_STATE |
typedef size_t | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
Functions | |
void | yyrestart (FILE *input_file) |
Immediately switch to a different input stream. More... | |
void | yy_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
Switch to a different input buffer. More... | |
YY_BUFFER_STATE | yy_create_buffer (FILE *file, int size) |
Allocate and initialize an input buffer state. More... | |
void | yy_delete_buffer (YY_BUFFER_STATE b) |
Destroy the buffer. More... | |
void | yy_flush_buffer (YY_BUFFER_STATE b) |
Discard all buffered characters. More... | |
void | yypush_buffer_state (YY_BUFFER_STATE new_buffer) |
Pushes the new state onto the stack. More... | |
void | yypop_buffer_state (void) |
Removes and deletes the top of the stack, if present. More... | |
static void | yyensure_buffer_stack (void) |
static void | yy_load_buffer_state (void) |
static void | yy_init_buffer (YY_BUFFER_STATE b, FILE *file) |
YY_BUFFER_STATE | yy_scan_buffer (char *base, yy_size_t size) |
Setup the input buffer state to scan directly from a user-specified character buffer. More... | |
YY_BUFFER_STATE | yy_scan_string (char *yystr) |
Setup the input buffer state to scan a string. More... | |
YY_BUFFER_STATE | yy_scan_bytes (char *yybytes, yy_size_t _yybytes_len) |
Setup the input buffer state to scan the given bytes. More... | |
void * | yyalloc (yy_size_t) |
void * | yyrealloc (void *, yy_size_t) |
void | yyfree (void *) |
static yy_state_type | yy_get_previous_state (void) |
static yy_state_type | yy_try_NUL_trans (yy_state_type current_state) |
static int | yy_get_next_buffer (void) |
static void | yy_fatal_error (char msg[]) |
static int | yy_init_globals (void) |
int | yylex_destroy (void) |
int | yyget_debug (void) |
void | yyset_debug (int debug_flag) |
void * | yyget_extra (void) |
void | yyset_extra (void *user_defined) |
FILE * | yyget_in (void) |
Get the input stream. More... | |
void | yyset_in (FILE *in_str) |
Set the input stream. More... | |
FILE * | yyget_out (void) |
Get the output stream. More... | |
void | yyset_out (FILE *out_str) |
yy_size_t | yyget_leng (void) |
Get the length of the current token. More... | |
char * | yyget_text (void) |
Get the current token. More... | |
int | yyget_lineno (void) |
Get the current line number. More... | |
void | yyset_lineno (int line_number) |
Set the current line number. More... | |
int | yywrap (void) |
static void | yyunput (int c, char *buf_ptr) |
static int | input (void) |
int | yylex (void) |
The main scanner function which does all the work. More... | |
static void | yyunput (int c, register char *yy_bp) |
static void | yy_fatal_error (char *msg) |
Variables | |
yy_size_t | yyleng |
FILE * | yyin = (FILE *) 0 |
FILE * | yyout = (FILE *) 0 |
static size_t | yy_buffer_stack_top = 0 |
index of top of stack. More... | |
static size_t | yy_buffer_stack_max = 0 |
capacity of stack. More... | |
static YY_BUFFER_STATE * | yy_buffer_stack = 0 |
Stack as an array. More... | |
static char | yy_hold_char |
static yy_size_t | yy_n_chars |
static char * | yy_c_buf_p = (char *) 0 |
static int | yy_init = 0 |
static int | yy_start = 0 |
static int | yy_did_buffer_switch_on_eof |
int | yylineno = 1 |
char * | yytext |
static flex_int16_t | yy_accept [21] |
static flex_int32_t | yy_ec [256] |
static flex_int32_t | yy_meta [16] |
static flex_int16_t | yy_base [22] |
static flex_int16_t | yy_def [22] |
static flex_int16_t | yy_nxt [40] |
static flex_int16_t | yy_chk [40] |
static yy_state_type | yy_last_accepting_state |
static char * | yy_last_accepting_cpos |
int | yy_flex_debug = 0 |
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 165 of file lex.yy.c.
Referenced by input(), yy_get_next_buffer(), and yylex().
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 166 of file lex.yy.c.
Referenced by input(), yy_get_next_buffer(), and yylex().
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 167 of file lex.yy.c.
Referenced by input(), yy_get_next_buffer(), and yylex().
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define YY_BUF_SIZE 16384 |
Definition at line 144 of file lex.yy.c.
Referenced by yylex(), and yyrestart().
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 247 of file lex.yy.c.
Referenced by yy_get_next_buffer().
#define YY_BUFFER_NEW 0 |
Definition at line 235 of file lex.yy.c.
Referenced by yy_flush_buffer(), yy_scan_buffer(), and yylex().
#define YY_CURRENT_BUFFER |
Definition at line 263 of file lex.yy.c.
Referenced by yy_delete_buffer(), yy_flush_buffer(), yy_init_buffer(), yy_switch_to_buffer(), yylex(), yylex_destroy(), yypop_buffer_state(), yypush_buffer_state(), and yyrestart().
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 270 of file lex.yy.c.
Referenced by input(), yy_delete_buffer(), yy_get_next_buffer(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex(), yylex_destroy(), yypop_buffer_state(), yypush_buffer_state(), yyrestart(), and yyunput().
#define YY_DO_BEFORE_ACTION |
Definition at line 356 of file lex.yy.c.
Referenced by yylex().
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 140 of file lex.yy.c.
Referenced by input(), yy_flush_buffer(), yy_get_next_buffer(), yy_scan_buffer(), and yy_scan_bytes().
#define YY_EXIT_FAILURE 2 |
Definition at line 1566 of file lex.yy.c.
Referenced by yy_fatal_error().
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
Definition at line 606 of file lex.yy.c.
Referenced by yy_create_buffer(), yy_get_next_buffer(), yy_scan_buffer(), yy_scan_bytes(), yyensure_buffer_stack(), yylex(), and yyunput().
#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) |
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) |
Definition at line 559 of file lex.yy.c.
Referenced by yy_get_next_buffer().
#define YY_MORE_ADJ 0 |
Definition at line 457 of file lex.yy.c.
Referenced by yy_get_next_buffer(), yy_get_previous_state(), and yylex().
#define yy_new_buffer yy_create_buffer |
#define YY_READ_BUF_SIZE 8192 |
Definition at line 544 of file lex.yy.c.
Referenced by yy_get_next_buffer().
#define YY_RULE_SETUP YY_USER_ACTION |
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Definition at line 119 of file lex.yy.c.
Referenced by yy_get_previous_state(), and yylex().
#define yy_set_bol | ( | at_bol | ) |
#define yy_set_interactive | ( | is_interactive | ) |
#define YY_START (((yy_start) - 1) / 2) |
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
#define yyless | ( | n | ) |
#define yyless | ( | n | ) |
#define yyterminate | ( | ) | return YY_NULL |
#define yytext_ptr yytext |
Definition at line 346 of file lex.yy.c.
Referenced by input(), yy_get_next_buffer(), yy_get_previous_state(), yy_load_buffer_state(), yylex(), and yyunput().
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 int yy_state_type |
|
static |
Definition at line 1146 of file lex.yy.c.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, YY_END_OF_BUFFER_CHAR, yy_get_next_buffer(), yy_hold_char, yy_n_chars, YY_NEW_FILE, yyin, yyrestart(), yytext_ptr, and yywrap().
YY_BUFFER_STATE yy_create_buffer | ( | FILE * | file, |
int | size | ||
) |
Allocate and initialize an input buffer state.
file | A readable stream. |
size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE . |
Definition at line 1283 of file lex.yy.c.
References yy_buffer_state::yy_buf_size, yy_buffer_state::yy_ch_buf, YY_FATAL_ERROR, yy_init_buffer(), yy_buffer_state::yy_is_our_buffer, and yyalloc().
Referenced by yylex(), and yyrestart().
void yy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
b | a buffer created with yy_create_buffer() |
Definition at line 1311 of file lex.yy.c.
References yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_buffer_state::yy_is_our_buffer, and yyfree().
Referenced by yylex_destroy(), and yypop_buffer_state().
|
static |
|
static |
Definition at line 1569 of file lex.yy.c.
References YY_EXIT_FAILURE.
void yy_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Discard all buffered characters.
On the next scan, YY_INPUT will be called.
b | the buffer state to be flushed, usually YY_CURRENT_BUFFER . |
Definition at line 1358 of file lex.yy.c.
References yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, yy_load_buffer_state(), and yy_buffer_state::yy_n_chars.
Referenced by yy_init_buffer().
|
static |
Definition at line 916 of file lex.yy.c.
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, source, yy_buffer_state::yy_buf_size, YY_BUFFER_EOF_PENDING, yy_c_buf_p, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER_LVALUE, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, YY_INPUT, yy_buffer_state::yy_is_our_buffer, YY_MORE_ADJ, yy_n_chars, YY_READ_BUF_SIZE, yyin, yyrealloc(), yyrestart(), and yytext_ptr.
|
static |
Definition at line 1050 of file lex.yy.c.
References yy_c_buf_p, yy_last_accepting_cpos, yy_last_accepting_state, YY_MORE_ADJ, YY_SC_TO_UI, yy_start, and yytext_ptr.
Referenced by yylex().
|
static |
Definition at line 1330 of file lex.yy.c.
References yy_buffer_state::yy_bs_column, yy_buffer_state::yy_bs_lineno, YY_CURRENT_BUFFER, yy_buffer_state::yy_fill_buffer, yy_flush_buffer(), yy_buffer_state::yy_input_file, and yy_buffer_state::yy_is_interactive.
Referenced by yy_create_buffer(), and yyrestart().
|
static |
Definition at line 1672 of file lex.yy.c.
References yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, yy_c_buf_p, yy_init, yy_start, yyin, and yyout.
Referenced by yylex_destroy().
|
static |
Definition at line 1269 of file lex.yy.c.
References yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_hold_char, yy_n_chars, yyin, and yytext_ptr.
Referenced by yy_flush_buffer(), yy_switch_to_buffer(), yylex(), yypop_buffer_state(), yypush_buffer_state(), and yyrestart().
YY_BUFFER_STATE yy_scan_buffer | ( | char * | base, |
yy_size_t | size | ||
) |
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 |
Definition at line 1485 of file lex.yy.c.
References yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, yy_buffer_state::yy_is_interactive, yy_buffer_state::yy_is_our_buffer, yy_buffer_state::yy_n_chars, yy_switch_to_buffer(), and yyalloc().
Referenced by yy_scan_bytes().
YY_BUFFER_STATE yy_scan_bytes | ( | char * | yybytes, |
yy_size_t | _yybytes_len | ||
) |
Setup the input buffer state to scan the given bytes.
The next call to yylex() will scan from a copy of bytes.
yybytes | the byte buffer to scan |
_yybytes_len | the number of bytes in the buffer pointed to by bytes. |
Definition at line 1535 of file lex.yy.c.
References YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_is_our_buffer, yy_scan_buffer(), and yyalloc().
Referenced by yy_scan_string().
YY_BUFFER_STATE yy_scan_string | ( | char * | yystr | ) |
Setup the input buffer state to scan a string.
The next call to yylex() will scan from a copy of str.
yystr | a NUL-terminated string to scan |
Definition at line 1522 of file lex.yy.c.
References yy_scan_bytes().
void yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
new_buffer | The new input buffer. |
Definition at line 1238 of file lex.yy.c.
References yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), yy_n_chars, and yyensure_buffer_stack().
Referenced by yy_scan_buffer().
|
static |
Definition at line 1082 of file lex.yy.c.
References yy_c_buf_p, yy_last_accepting_cpos, and yy_last_accepting_state.
Referenced by yylex().
void * yyalloc | ( | yy_size_t | size | ) |
Definition at line 1746 of file lex.yy.c.
Referenced by yy_create_buffer(), yy_scan_buffer(), yy_scan_bytes(), and yyensure_buffer_stack().
|
static |
Definition at line 1436 of file lex.yy.c.
References yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, YY_FATAL_ERROR, yyalloc(), and yyrealloc().
Referenced by yy_switch_to_buffer(), yylex(), yypush_buffer_state(), and yyrestart().
void yyfree | ( | void * | ptr | ) |
Definition at line 1763 of file lex.yy.c.
Referenced by yy_delete_buffer(), and yylex_destroy().
int yyget_debug | ( | void | ) |
Definition at line 1662 of file lex.yy.c.
References yy_flex_debug.
void* yyget_extra | ( | void | ) |
FILE * yyget_in | ( | void | ) |
yy_size_t yyget_leng | ( | void | ) |
int yyget_lineno | ( | void | ) |
FILE * yyget_out | ( | void | ) |
char * yyget_text | ( | void | ) |
int yylex | ( | void | ) |
The main scanner function which does all the work.
Definition at line 639 of file lex.yy.c.
References ECHO, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, INITIAL, YY_BREAK, YY_BUF_SIZE, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_c_buf_p, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_get_next_buffer(), yy_get_previous_state(), yy_hold_char, yy_init, yy_last_accepting_cpos, yy_last_accepting_state, yy_load_buffer_state(), YY_MORE_ADJ, yy_n_chars, YY_NEW_FILE, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yy_start, YY_STATE_EOF, yy_try_NUL_trans(), yyensure_buffer_stack(), yyin, yyout, yyterminate, yytext_ptr, and yywrap().
int yylex_destroy | ( | void | ) |
Definition at line 1701 of file lex.yy.c.
References yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yy_init_globals(), yyfree(), and yypop_buffer_state().
void yypop_buffer_state | ( | void | ) |
Removes and deletes the top of the stack, if present.
The next element becomes the new top.
Definition at line 1417 of file lex.yy.c.
References yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yy_did_buffer_switch_on_eof, and yy_load_buffer_state().
Referenced by yylex_destroy().
void yypush_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
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. |
Definition at line 1387 of file lex.yy.c.
References yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), yy_n_chars, and yyensure_buffer_stack().
void * yyrealloc | ( | void * | ptr, |
yy_size_t | size | ||
) |
Definition at line 1751 of file lex.yy.c.
Referenced by yy_get_next_buffer(), and yyensure_buffer_stack().
void yyrestart | ( | FILE * | input_file | ) |
Immediately switch to a different input stream.
input_file | A readable stream. |
INITIAL
. Definition at line 1221 of file lex.yy.c.
References YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_buffer(), yy_load_buffer_state(), yyensure_buffer_stack(), and yyin.
Referenced by input(), and yy_get_next_buffer().
void yyset_extra | ( | void * | user_defined | ) |
void yyset_in | ( | FILE * | in_str | ) |
Set the input stream.
This does not discard the current input buffer.
in_str | A readable stream. |
Definition at line 1652 of file lex.yy.c.
References yyin.
void yyset_lineno | ( | int | line_number | ) |
|
static |
|
static |
Definition at line 1105 of file lex.yy.c.
References source, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, YY_FATAL_ERROR, yy_hold_char, yy_n_chars, and yytext_ptr.
|
static |
|
static |
|
static |
Stack as an array.
Definition at line 255 of file lex.yy.c.
Referenced by yy_init_globals(), yyensure_buffer_stack(), and yylex_destroy().
|
static |
capacity of stack.
Definition at line 254 of file lex.yy.c.
Referenced by yy_init_globals(), and yyensure_buffer_stack().
|
static |
index of top of stack.
Definition at line 253 of file lex.yy.c.
Referenced by yy_init_globals(), yyensure_buffer_stack(), yypop_buffer_state(), and yypush_buffer_state().
|
static |
Definition at line 278 of file lex.yy.c.
Referenced by input(), yy_get_next_buffer(), yy_get_previous_state(), yy_init_globals(), yy_load_buffer_state(), yy_switch_to_buffer(), yy_try_NUL_trans(), yylex(), yypush_buffer_state(), and yyunput().
|
static |
|
static |
|
static |
Definition at line 285 of file lex.yy.c.
Referenced by input(), yy_switch_to_buffer(), yylex(), yypop_buffer_state(), and yypush_buffer_state().
|
static |
int yy_flex_debug = 0 |
Definition at line 450 of file lex.yy.c.
Referenced by yyget_debug().
|
static |
Definition at line 273 of file lex.yy.c.
Referenced by input(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex(), yypush_buffer_state(), and yyunput().
|
static |
Definition at line 279 of file lex.yy.c.
Referenced by yy_init_globals(), and yylex().
|
static |
Definition at line 447 of file lex.yy.c.
Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().
|
static |
Definition at line 446 of file lex.yy.c.
Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().
|
static |
|
static |
Definition at line 274 of file lex.yy.c.
Referenced by input(), yy_get_next_buffer(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex(), yypush_buffer_state(), and yyunput().
|
static |
|
static |
Definition at line 280 of file lex.yy.c.
Referenced by yy_get_previous_state(), yy_init_globals(), and yylex().
FILE * yyin = (FILE *) 0 |
Definition at line 337 of file lex.yy.c.
Referenced by input(), yy_get_next_buffer(), yy_init_globals(), yy_load_buffer_state(), yyget_in(), yylex(), yyrestart(), and yyset_in().
yy_size_t yyleng |
Definition at line 275 of file lex.yy.c.
Referenced by yyget_leng().
int yylineno = 1 |
Definition at line 343 of file lex.yy.c.
Referenced by yyget_lineno().
FILE * yyout = (FILE *) 0 |
Definition at line 337 of file lex.yy.c.
Referenced by yy_init_globals(), yyget_out(), yylex(), and yyset_out().
char * yytext |
Definition at line 459 of file lex.yy.c.
Referenced by yyget_text().