ReactOS
0.4.15-dev-1618-g9c8ed68
|
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
#include <limits.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 flex_uint8_t | 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_EXIT_FAILURE 2 |
#define yy_flex_debug ppy__flex_debug |
#define yy_flush_buffer ppy__flush_buffer |
#define YY_FLUSH_BUFFER yy_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 yy_create_buffer |
#define yy_pp_state | ( | x | ) | yy_pop_state(); yy_push_state(x) |
#define YY_RULE_SETUP |
#define yy_scan_buffer ppy__scan_buffer |
#define yy_scan_bytes ppy__scan_bytes |
#define yy_scan_string ppy__scan_string |
#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 yyensure_buffer_stack ppy_ensure_buffer_stack |
#define yyget_debug ppy_get_debug |
#define yyget_extra ppy_get_extra |
#define yyget_in ppy_get_in |
#define yyget_leng ppy_get_leng |
#define yyget_lineno ppy_get_lineno |
#define yyget_out ppy_get_out |
#define yyget_text ppy_get_text |
#define yylex_destroy ppy_lex_destroy |
#define yylineno ppy_lineno |
#define yypop_buffer_state ppy_pop_buffer_state |
#define yypush_buffer_state ppy_push_buffer_state |
#define yyrealloc ppy_realloc |
#define yyrestart ppy_restart |
#define yyset_debug ppy_set_debug |
#define yyset_extra ppy_set_extra |
#define yyset_in ppy_set_in |
#define yyset_lineno ppy_set_lineno |
#define yyset_out ppy_set_out |
#define YYTABLES_NAME "yytables" |
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 flex_uint8_t YY_CHAR |
typedef int yy_state_type |
|
static |
Definition at line 4213 of file ppl.yy.c.
Referenced by expand_macro().
|
static |
|
static |
Definition at line 4300 of file ppl.yy.c.
|
static |
|
static |
Definition at line 4573 of file ppl.yy.c.
Definition at line 4402 of file ppl.yy.c.
Referenced by create_regexp_var(), DateConstr_value(), debugstr_jsval(), JSGlobal_eval(), JSON_stringify(), jsval_copy(), jsval_release(), jsval_strict_equal(), jsval_to_variant(), less_eval(), rep_call(), stringify(), to_boolean(), to_number(), to_object(), and to_string().
Definition at line 4606 of file ppl.yy.c.
Definition at line 4370 of file ppl.yy.c.
Referenced by AppendUnicodeString(), and PerfDataGetCommandLine().
Referenced by check_version(), export_newline(), read_line(), read_stdin(), REGPROC_export_binary(), and str_handle_lines().
|
static |
Definition at line 4467 of file ppl.yy.c.
|
static |
Definition at line 4566 of file ppl.yy.c.
Definition at line 4687 of file ppl.yy.c.
Referenced by yyparse().
Definition at line 4753 of file ppl.yy.c.
Referenced by pp_pop_if().
Definition at line 4748 of file ppl.yy.c.
Referenced by pp_push_if().
Definition at line 1556 of file ppl.yy.c.
Referenced by pop_buffer(), pp_do_include(), wpp_parse(), and yyparse().
|
static |
Definition at line 4434 of file ppl.yy.c.
Referenced by expand_macro(), macro_add_arg(), and pp_do_include().
|
static |
Definition at line 4673 of file ppl.yy.c.
Referenced by emit_bits_e(), emit_bits_s(), and put_string().
|
static |
Definition at line 4561 of file ppl.yy.c.
Referenced by add_text_to_macro(), macro_add_arg(), macro_add_expansion(), and put_buffer().
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 1351 of file macro.lex.yy.c.
void yy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
b | a buffer created with yy_create_buffer() |
Definition at line 1379 of file macro.lex.yy.c.
|
static |
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 1426 of file macro.lex.yy.c.
|
static |
|
static |
Referenced by pop_buffer(), and pp_pop_ignore_state().
Referenced by macro_add_arg(), and pp_push_ignore_state().
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 1553 of file macro.lex.yy.c.
YY_BUFFER_STATE yy_scan_bytes | ( | const char * | bytes, |
int | len | ||
) |
YY_BUFFER_STATE yy_scan_string | ( | const char * | yy_str | ) |
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 1306 of file macro.lex.yy.c.
|
static |
Definition at line 1814 of file macro.lex.yy.c.
Definition at line 1831 of file macro.lex.yy.c.
Definition at line 1730 of file macro.lex.yy.c.
YY_EXTRA_TYPE yyget_extra | ( | void | ) |
Get the input stream.
Definition at line 1674 of file macro.lex.yy.c.
Get the length of the current token.
Definition at line 1690 of file macro.lex.yy.c.
Get the current line number.
Definition at line 1665 of file macro.lex.yy.c.
Get the output stream.
Definition at line 1682 of file macro.lex.yy.c.
Get the current token.
Definition at line 1699 of file macro.lex.yy.c.
Definition at line 1769 of file macro.lex.yy.c.
Removes and deletes the top of the stack, if present. The next element becomes the new top.
Definition at line 1485 of file macro.lex.yy.c.
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 1455 of file macro.lex.yy.c.
Definition at line 1819 of file macro.lex.yy.c.
Immediately switch to a different input stream.
input_file | A readable stream. |
INITIAL
. Definition at line 1289 of file macro.lex.yy.c.
Definition at line 1735 of file macro.lex.yy.c.
void yyset_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
Set the input stream. This does not discard the current input buffer.
in_str | A readable stream. |
Definition at line 1720 of file macro.lex.yy.c.
Definition at line 1725 of file macro.lex.yy.c.
Definition at line 2104 of file macro.lex.yy.c.
|
static |
Definition at line 1533 of file ppl.yy.c.
Referenced by pop_buffer(), and push_buffer().
|
static |
Definition at line 1534 of file ppl.yy.c.
Referenced by pop_buffer(), and push_buffer().
|
static |
Definition at line 4188 of file ppl.yy.c.
Referenced by add_text().
Definition at line 4189 of file ppl.yy.c.
Referenced by add_expand_text(), add_text(), and expand_macro().
|
static |
Definition at line 1530 of file ppl.yy.c.
Referenced by pop_macro(), push_macro(), and top_macro().
|
static |
Definition at line 1531 of file ppl.yy.c.
Referenced by pop_macro(), push_macro(), and top_macro().
|
static |
Definition at line 1523 of file ppl.yy.c.
Referenced by pop_buffer(), and push_buffer().
include_state_t pp_incl_state |
Definition at line 1539 of file ppl.yy.c.
Referenced by pop_buffer(), pp_do_include(), push_buffer(), while(), and yyparse().
includelogicentry_t* pp_includelogiclist = NULL |
Definition at line 1547 of file ppl.yy.c.
Referenced by free_pp_entry(), pop_buffer(), and pp_do_include().
|
static |
Definition at line 1528 of file ppl.yy.c.
Referenced by new_string(), and string_start().
|
static |
Definition at line 1526 of file ppl.yy.c.
Referenced by add_string().
|
static |
Definition at line 1525 of file ppl.yy.c.
Referenced by add_string(), get_string(), new_string(), and put_string().
Definition at line 1527 of file ppl.yy.c.
Referenced by add_string(), get_string(), and put_string().
|
static |
|
static |
|
static |
|
static |
|
static |
char* yy_cp |
Definition at line 1824 of file ppl.yy.c.
Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().
YY_DECL |
The main scanner function which does all the work.
|
static |
|
static |
|
static |