ReactOS
0.4.15-dev-1619-g69dffed
|
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
#include <limits.h>
#include "wine/wpp.h"
#include "wpp_private.h"
#include "ppy.tab.h"
Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | bufferstackentry |
struct | macexpstackentry |
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 |
typedef struct bufferstackentry | bufferstackentry_t |
typedef struct macexpstackentry | macexpstackentry_t |
#define MAXMACEXPSTACK 128 /* Nesting more than 128 macro expansions is insane */ |
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define yy_create_buffer ppy__create_buffer |
#define YY_CURRENT_BUFFER |
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
#define yy_delete_buffer ppy__delete_buffer |
#define YY_DO_BEFORE_ACTION |
#define yy_flex_debug ppy__flex_debug |
#define yy_flush_buffer ppy__flush_buffer |
#define YY_FLUSH_BUFFER ppy__flush_buffer(YY_CURRENT_BUFFER ) |
#define yy_init_buffer ppy__init_buffer |
#define yy_load_buffer_state ppy__load_buffer_state |
#define yy_new_buffer ppy__create_buffer |
#define YY_NEW_FILE ppy_restart(ppy_in ) |
#define yy_pp_state | ( | x | ) | yy_pop_state(); yy_push_state(x) |
#define YY_RULE_SETUP |
#define yy_set_bol | ( | at_bol | ) |
#define yy_set_interactive | ( | is_interactive | ) |
#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 yy_switch_to_buffer ppy__switch_to_buffer |
#define YY_USER_ACTION pp_status.char_number+=ppy_leng; |
#define yylineno ppy_lineno |
#define yyrealloc ppy_realloc |
#define yyrestart ppy_restart |
typedef struct bufferstackentry bufferstackentry_t |
typedef short int flex_int16_t |
typedef int flex_int32_t |
typedef signed char flex_int8_t |
typedef unsigned int flex_uint32_t |
typedef unsigned char flex_uint8_t |
typedef struct macexpstackentry macexpstackentry_t |
typedef struct yy_buffer_state* YY_BUFFER_STATE |
typedef int yy_state_type |
|
static |
Definition at line 4004 of file ppl.yy.c.
Referenced by expand_macro().
Definition at line 4413 of file ppl.yy.c.
Referenced by put_buffer(), and while().
|
static |
Definition at line 3960 of file ppl.yy.c.
Referenced by while().
|
static |
Definition at line 4101 of file ppl.yy.c.
Referenced by while().
|
static |
Definition at line 3919 of file ppl.yy.c.
Referenced by while().
|
static |
Definition at line 4401 of file ppl.yy.c.
Referenced by while().
Definition at line 4434 of file ppl.yy.c.
Referenced by while().
Definition at line 4490 of file ppl.yy.c.
Referenced by pop_buffer().
Definition at line 3809 of file ppl.yy.c.
Referenced by while().
|
static |
Definition at line 4281 of file ppl.yy.c.
Referenced by while().
|
static |
Definition at line 4394 of file ppl.yy.c.
Referenced by while().
Definition at line 4529 of file ppl.yy.c.
YY_BUFFER_STATE ppy__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 3210 of file ppl.yy.c.
Referenced by if(), pp_do_include(), and ppy_restart().
void ppy__delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
b | a buffer created with ppy__create_buffer() |
Definition at line 3238 of file ppl.yy.c.
Referenced by ppy_lex_destroy(), ppy_pop_buffer_state(), and while().
void ppy__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 3285 of file ppl.yy.c.
Referenced by ppy__init_buffer().
|
static |
Definition at line 3257 of file ppl.yy.c.
Referenced by ppy__create_buffer(), and ppy_restart().
Definition at line 3196 of file ppl.yy.c.
Referenced by if(), ppy__flush_buffer(), ppy__switch_to_buffer(), ppy_pop_buffer_state(), ppy_push_buffer_state(), and ppy_restart().
YY_BUFFER_STATE ppy__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 3412 of file ppl.yy.c.
Referenced by ppy__scan_bytes().
YY_BUFFER_STATE ppy__scan_bytes | ( | yyconst char * | yybytes, |
int | _yybytes_len | ||
) |
Setup the input buffer state to scan the given bytes. The next call to ppy_lex() 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 3462 of file ppl.yy.c.
Referenced by ppy__scan_string().
YY_BUFFER_STATE ppy__scan_string | ( | yyconst char * | yystr | ) |
Setup the input buffer state to scan a string. The next call to ppy_lex() will scan from a copy of str.
yystr | a NUL-terminated string to scan |
Definition at line 3449 of file ppl.yy.c.
Referenced by expand_define(), expand_macro(), expand_special(), and macro_add_arg().
void ppy__switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
new_buffer | The new input buffer. |
Definition at line 3165 of file ppl.yy.c.
Referenced by pop_buffer(), pp_do_include(), and ppy__scan_buffer().
Definition at line 3718 of file ppl.yy.c.
Referenced by ppy__create_buffer(), ppy__scan_buffer(), ppy__scan_bytes(), ppy_ensure_buffer_stack(), and yy_push_state().
Definition at line 3363 of file ppl.yy.c.
Referenced by if(), ppy__switch_to_buffer(), ppy_push_buffer_state(), and ppy_restart().
Definition at line 3735 of file ppl.yy.c.
Referenced by ppy__delete_buffer(), and ppy_lex_destroy().
YY_EXTRA_TYPE ppy_get_extra | ( | void | ) |
Get the input stream.
Get the length of the current token.
Get the current line number.
Get the output stream.
Get the current token.
Removes and deletes the top of the stack, if present. The next element becomes the new top.
Definition at line 3344 of file ppl.yy.c.
Referenced by ppy_lex_destroy().
void ppy_push_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
Definition at line 3723 of file ppl.yy.c.
Referenced by ppy_ensure_buffer_stack(), yy_get_next_buffer(), and yy_push_state().
Immediately switch to a different input stream.
input_file | A readable stream. |
INITIAL
. Definition at line 3148 of file ppl.yy.c.
Referenced by yy_get_next_buffer().
void ppy_set_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
Set the input stream. This does not discard the current input buffer.
in_str | A readable stream. |
|
static |
Definition at line 4246 of file ppl.yy.c.
Referenced by expand_define(), expand_macro(), expand_special(), macro_add_arg(), and pp_do_include().
|
static |
|
static |
Definition at line 4389 of file ppl.yy.c.
Referenced by add_text_to_macro(), macro_add_arg(), macro_add_expansion(), and put_buffer().
while | ( | 1 | ) |
Definition at line 1662 of file ppl.yy.c.