mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
fix ts build
This commit is contained in:
parent
4b738cee2b
commit
85b5907e85
10 changed files with 253 additions and 249 deletions
|
@ -22,6 +22,7 @@
|
||||||
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
|
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
|
||||||
|
|
||||||
int yyerror(phpdbg_param_t *stack, yyscan_t scanner, const char *msg) {
|
int yyerror(phpdbg_param_t *stack, yyscan_t scanner, const char *msg) {
|
||||||
|
TSRMLS_FETCH();
|
||||||
phpdbg_error("Parse Error: %s", msg);
|
phpdbg_error("Parse Error: %s", msg);
|
||||||
{
|
{
|
||||||
const phpdbg_param_t *top = stack;
|
const phpdbg_param_t *top = stack;
|
||||||
|
|
|
@ -994,7 +994,7 @@ static inline phpdbg_breakbase_t *phpdbg_find_conditional_breakpoint(zend_execut
|
||||||
zend_try {
|
zend_try {
|
||||||
PHPDBG_G(flags) |= PHPDBG_IN_COND_BP;
|
PHPDBG_G(flags) |= PHPDBG_IN_COND_BP;
|
||||||
zend_execute(EG(active_op_array) TSRMLS_CC);
|
zend_execute(EG(active_op_array) TSRMLS_CC);
|
||||||
#if PHP_VERSION_ID >= 50700
|
#if PHP_VERSION_ID >= 50600
|
||||||
if (zend_is_true(retval TSRMLS_CC)) {
|
if (zend_is_true(retval TSRMLS_CC)) {
|
||||||
#else
|
#else
|
||||||
if (zend_is_true(retval)) {
|
if (zend_is_true(retval)) {
|
||||||
|
|
|
@ -738,7 +738,7 @@ PHPDBG_API const phpdbg_command_t* phpdbg_stack_resolve(const phpdbg_command_t *
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
/* {{{ */
|
/* {{{ */
|
||||||
PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) {
|
PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, char **why TSRMLS_DC) {
|
||||||
phpdbg_param_t *top = NULL;
|
phpdbg_param_t *top = NULL;
|
||||||
const phpdbg_command_t *handler = NULL;
|
const phpdbg_command_t *handler = NULL;
|
||||||
|
|
||||||
|
@ -768,7 +768,7 @@ PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) {
|
||||||
phpdbg_prompt_commands, NULL, &top, why);
|
phpdbg_prompt_commands, NULL, &top, why);
|
||||||
|
|
||||||
if (handler) {
|
if (handler) {
|
||||||
if (phpdbg_stack_verify(handler, &top, why) == SUCCESS) {
|
if (phpdbg_stack_verify(handler, &top, why TSRMLS_CC) == SUCCESS) {
|
||||||
return handler->handler(top TSRMLS_CC);
|
return handler->handler(top TSRMLS_CC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,7 +134,7 @@ PHPDBG_API void phpdbg_destroy_input(char** TSRMLS_DC);
|
||||||
PHPDBG_API void phpdbg_stack_push(phpdbg_param_t *stack, phpdbg_param_t *param);
|
PHPDBG_API void phpdbg_stack_push(phpdbg_param_t *stack, phpdbg_param_t *param);
|
||||||
PHPDBG_API const phpdbg_command_t* phpdbg_stack_resolve(const phpdbg_command_t *commands, const phpdbg_command_t *parent, phpdbg_param_t **top, char **why);
|
PHPDBG_API const phpdbg_command_t* phpdbg_stack_resolve(const phpdbg_command_t *commands, const phpdbg_command_t *parent, phpdbg_param_t **top, char **why);
|
||||||
PHPDBG_API int phpdbg_stack_verify(const phpdbg_command_t *command, phpdbg_param_t **stack, char **why TSRMLS_DC);
|
PHPDBG_API int phpdbg_stack_verify(const phpdbg_command_t *command, phpdbg_param_t **stack, char **why TSRMLS_DC);
|
||||||
PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, char **why);
|
PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, char **why TSRMLS_DC);
|
||||||
PHPDBG_API void phpdbg_stack_free(phpdbg_param_t *stack);
|
PHPDBG_API void phpdbg_stack_free(phpdbg_param_t *stack);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#define FLEX_SCANNER
|
#define FLEX_SCANNER
|
||||||
#define YY_FLEX_MAJOR_VERSION 2
|
#define YY_FLEX_MAJOR_VERSION 2
|
||||||
#define YY_FLEX_MINOR_VERSION 5
|
#define YY_FLEX_MINOR_VERSION 5
|
||||||
#define YY_FLEX_SUBMINOR_VERSION 35
|
#define YY_FLEX_SUBMINOR_VERSION 37
|
||||||
#if YY_FLEX_SUBMINOR_VERSION > 0
|
#if YY_FLEX_SUBMINOR_VERSION > 0
|
||||||
#define FLEX_BETA
|
#define FLEX_BETA
|
||||||
#endif
|
#endif
|
||||||
|
@ -54,7 +54,6 @@ typedef int flex_int32_t;
|
||||||
typedef unsigned char flex_uint8_t;
|
typedef unsigned char flex_uint8_t;
|
||||||
typedef unsigned short int flex_uint16_t;
|
typedef unsigned short int flex_uint16_t;
|
||||||
typedef unsigned int flex_uint32_t;
|
typedef unsigned int flex_uint32_t;
|
||||||
#endif /* ! C99 */
|
|
||||||
|
|
||||||
/* Limits of integral types. */
|
/* Limits of integral types. */
|
||||||
#ifndef INT8_MIN
|
#ifndef INT8_MIN
|
||||||
|
@ -85,6 +84,8 @@ typedef unsigned int flex_uint32_t;
|
||||||
#define UINT32_MAX (4294967295U)
|
#define UINT32_MAX (4294967295U)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* ! C99 */
|
||||||
|
|
||||||
#endif /* ! FLEXINT_H */
|
#endif /* ! FLEXINT_H */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -170,6 +171,11 @@ typedef void* yyscan_t;
|
||||||
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef YY_TYPEDEF_YY_SIZE_T
|
||||||
|
#define YY_TYPEDEF_YY_SIZE_T
|
||||||
|
typedef size_t yy_size_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define EOB_ACT_CONTINUE_SCAN 0
|
#define EOB_ACT_CONTINUE_SCAN 0
|
||||||
#define EOB_ACT_END_OF_FILE 1
|
#define EOB_ACT_END_OF_FILE 1
|
||||||
#define EOB_ACT_LAST_MATCH 2
|
#define EOB_ACT_LAST_MATCH 2
|
||||||
|
@ -192,11 +198,6 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
||||||
|
|
||||||
#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
|
#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
|
||||||
|
|
||||||
#ifndef YY_TYPEDEF_YY_SIZE_T
|
|
||||||
#define YY_TYPEDEF_YY_SIZE_T
|
|
||||||
typedef size_t yy_size_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef YY_STRUCT_YY_BUFFER_STATE
|
#ifndef YY_STRUCT_YY_BUFFER_STATE
|
||||||
#define YY_STRUCT_YY_BUFFER_STATE
|
#define YY_STRUCT_YY_BUFFER_STATE
|
||||||
struct yy_buffer_state
|
struct yy_buffer_state
|
||||||
|
@ -214,7 +215,7 @@ struct yy_buffer_state
|
||||||
/* Number of characters read into yy_ch_buf, not including EOB
|
/* Number of characters read into yy_ch_buf, not including EOB
|
||||||
* characters.
|
* characters.
|
||||||
*/
|
*/
|
||||||
int yy_n_chars;
|
yy_size_t yy_n_chars;
|
||||||
|
|
||||||
/* Whether we "own" the buffer - i.e., we know we created it,
|
/* Whether we "own" the buffer - i.e., we know we created it,
|
||||||
* and can realloc() it to grow it, and should free() it to
|
* and can realloc() it to grow it, and should free() it to
|
||||||
|
@ -293,7 +294,7 @@ static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
|
||||||
|
|
||||||
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
|
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
|
||||||
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
|
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
|
||||||
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
|
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
|
||||||
|
|
||||||
void *yyalloc (yy_size_t ,yyscan_t yyscanner );
|
void *yyalloc (yy_size_t ,yyscan_t yyscanner );
|
||||||
void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
|
void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
|
||||||
|
@ -325,7 +326,7 @@ void yyfree (void * ,yyscan_t yyscanner );
|
||||||
|
|
||||||
/* Begin user sect3 */
|
/* Begin user sect3 */
|
||||||
|
|
||||||
#define yywrap(n) 1
|
#define yywrap(yyscanner) 1
|
||||||
#define YY_SKIP_YYWRAP
|
#define YY_SKIP_YYWRAP
|
||||||
|
|
||||||
typedef unsigned char YY_CHAR;
|
typedef unsigned char YY_CHAR;
|
||||||
|
@ -513,7 +514,7 @@ static yyconst flex_int16_t yy_chk[231] =
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define YY_NO_UNISTD_H 1
|
#define YY_NO_UNISTD_H 1
|
||||||
#line 517 "sapi/phpdbg/phpdbg_lexer.c"
|
#line 518 "sapi/phpdbg/phpdbg_lexer.c"
|
||||||
|
|
||||||
#define INITIAL 0
|
#define INITIAL 0
|
||||||
#define RAW 1
|
#define RAW 1
|
||||||
|
@ -543,8 +544,8 @@ struct yyguts_t
|
||||||
size_t yy_buffer_stack_max; /**< capacity of stack. */
|
size_t yy_buffer_stack_max; /**< capacity of stack. */
|
||||||
YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
|
YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
|
||||||
char yy_hold_char;
|
char yy_hold_char;
|
||||||
int yy_n_chars;
|
yy_size_t yy_n_chars;
|
||||||
int yyleng_r;
|
yy_size_t yyleng_r;
|
||||||
char *yy_c_buf_p;
|
char *yy_c_buf_p;
|
||||||
int yy_init;
|
int yy_init;
|
||||||
int yy_start;
|
int yy_start;
|
||||||
|
@ -597,7 +598,7 @@ FILE *yyget_out (yyscan_t yyscanner );
|
||||||
|
|
||||||
void yyset_out (FILE * out_str ,yyscan_t yyscanner );
|
void yyset_out (FILE * out_str ,yyscan_t yyscanner );
|
||||||
|
|
||||||
int yyget_leng (yyscan_t yyscanner );
|
yy_size_t yyget_leng (yyscan_t yyscanner );
|
||||||
|
|
||||||
char *yyget_text (yyscan_t yyscanner );
|
char *yyget_text (yyscan_t yyscanner );
|
||||||
|
|
||||||
|
@ -666,7 +667,7 @@ static int input (yyscan_t yyscanner );
|
||||||
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
|
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
|
||||||
{ \
|
{ \
|
||||||
int c = '*'; \
|
int c = '*'; \
|
||||||
unsigned n; \
|
size_t n; \
|
||||||
for ( n = 0; n < max_size && \
|
for ( n = 0; n < max_size && \
|
||||||
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
|
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
|
||||||
buf[n] = (char) c; \
|
buf[n] = (char) c; \
|
||||||
|
@ -753,7 +754,7 @@ YY_DECL
|
||||||
|
|
||||||
#line 42 "sapi/phpdbg/dev/phpdbg_lexer.l"
|
#line 42 "sapi/phpdbg/dev/phpdbg_lexer.l"
|
||||||
|
|
||||||
#line 757 "sapi/phpdbg/phpdbg_lexer.c"
|
#line 758 "sapi/phpdbg/phpdbg_lexer.c"
|
||||||
|
|
||||||
yylval = yylval_param;
|
yylval = yylval_param;
|
||||||
|
|
||||||
|
@ -955,7 +956,7 @@ YY_RULE_SETUP
|
||||||
#line 104 "sapi/phpdbg/dev/phpdbg_lexer.l"
|
#line 104 "sapi/phpdbg/dev/phpdbg_lexer.l"
|
||||||
YY_FATAL_ERROR( "flex scanner jammed" );
|
YY_FATAL_ERROR( "flex scanner jammed" );
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
#line 959 "sapi/phpdbg/phpdbg_lexer.c"
|
#line 960 "sapi/phpdbg/phpdbg_lexer.c"
|
||||||
case YY_STATE_EOF(INITIAL):
|
case YY_STATE_EOF(INITIAL):
|
||||||
case YY_STATE_EOF(RAW):
|
case YY_STATE_EOF(RAW):
|
||||||
yyterminate();
|
yyterminate();
|
||||||
|
@ -1144,21 +1145,21 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int num_to_read =
|
yy_size_t num_to_read =
|
||||||
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
|
||||||
|
|
||||||
while ( num_to_read <= 0 )
|
while ( num_to_read <= 0 )
|
||||||
{ /* Not enough room in the buffer - grow it. */
|
{ /* Not enough room in the buffer - grow it. */
|
||||||
|
|
||||||
/* just a shorter name for the current buffer */
|
/* just a shorter name for the current buffer */
|
||||||
YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
|
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
|
||||||
|
|
||||||
int yy_c_buf_p_offset =
|
int yy_c_buf_p_offset =
|
||||||
(int) (yyg->yy_c_buf_p - b->yy_ch_buf);
|
(int) (yyg->yy_c_buf_p - b->yy_ch_buf);
|
||||||
|
|
||||||
if ( b->yy_is_our_buffer )
|
if ( b->yy_is_our_buffer )
|
||||||
{
|
{
|
||||||
int new_size = b->yy_buf_size * 2;
|
yy_size_t new_size = b->yy_buf_size * 2;
|
||||||
|
|
||||||
if ( new_size <= 0 )
|
if ( new_size <= 0 )
|
||||||
b->yy_buf_size += b->yy_buf_size / 8;
|
b->yy_buf_size += b->yy_buf_size / 8;
|
||||||
|
@ -1189,7 +1190,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
|
|
||||||
/* Read in more data. */
|
/* Read in more data. */
|
||||||
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
|
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
|
||||||
yyg->yy_n_chars, (size_t) num_to_read );
|
yyg->yy_n_chars, num_to_read );
|
||||||
|
|
||||||
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
|
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
|
||||||
}
|
}
|
||||||
|
@ -1286,6 +1287,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
||||||
yy_is_jam = (yy_current_state == 66);
|
yy_is_jam = (yy_current_state == 66);
|
||||||
|
|
||||||
|
(void)yyg;
|
||||||
return yy_is_jam ? 0 : yy_current_state;
|
return yy_is_jam ? 0 : yy_current_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1302,7 +1304,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
|
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
|
||||||
{ /* need to shift things up to make room */
|
{ /* need to shift things up to make room */
|
||||||
/* +2 for EOB chars. */
|
/* +2 for EOB chars. */
|
||||||
register int number_to_move = yyg->yy_n_chars + 2;
|
register yy_size_t number_to_move = yyg->yy_n_chars + 2;
|
||||||
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
|
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
|
||||||
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
|
||||||
register char *source =
|
register char *source =
|
||||||
|
@ -1352,7 +1354,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
|
|
||||||
else
|
else
|
||||||
{ /* need more input */
|
{ /* need more input */
|
||||||
int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
|
yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
|
||||||
++yyg->yy_c_buf_p;
|
++yyg->yy_c_buf_p;
|
||||||
|
|
||||||
switch ( yy_get_next_buffer( yyscanner ) )
|
switch ( yy_get_next_buffer( yyscanner ) )
|
||||||
|
@ -1632,7 +1634,7 @@ void yypop_buffer_state (yyscan_t yyscanner)
|
||||||
*/
|
*/
|
||||||
static void yyensure_buffer_stack (yyscan_t yyscanner)
|
static void yyensure_buffer_stack (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
int num_to_alloc;
|
yy_size_t num_to_alloc;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
if (!yyg->yy_buffer_stack) {
|
if (!yyg->yy_buffer_stack) {
|
||||||
|
@ -1725,17 +1727,17 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
|
||||||
|
|
||||||
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
|
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
|
||||||
* scan from a @e copy of @a bytes.
|
* scan from a @e copy of @a bytes.
|
||||||
* @param bytes the byte buffer to scan
|
* @param yybytes the byte buffer to scan
|
||||||
* @param len the number of bytes in the buffer pointed to by @a bytes.
|
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
|
||||||
* @param yyscanner The scanner object.
|
* @param yyscanner The scanner object.
|
||||||
* @return the newly allocated buffer state object.
|
* @return the newly allocated buffer state object.
|
||||||
*/
|
*/
|
||||||
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner)
|
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
YY_BUFFER_STATE b;
|
YY_BUFFER_STATE b;
|
||||||
char *buf;
|
char *buf;
|
||||||
yy_size_t n;
|
yy_size_t n;
|
||||||
int i;
|
yy_size_t i;
|
||||||
|
|
||||||
/* Get memory for full buffer, including space for trailing EOB's. */
|
/* Get memory for full buffer, including space for trailing EOB's. */
|
||||||
n = _yybytes_len + 2;
|
n = _yybytes_len + 2;
|
||||||
|
@ -1845,7 +1847,7 @@ FILE *yyget_out (yyscan_t yyscanner)
|
||||||
/** Get the length of the current token.
|
/** Get the length of the current token.
|
||||||
* @param yyscanner The scanner object.
|
* @param yyscanner The scanner object.
|
||||||
*/
|
*/
|
||||||
int yyget_leng (yyscan_t yyscanner)
|
yy_size_t yyget_leng (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
return yyleng;
|
return yyleng;
|
||||||
|
@ -1881,7 +1883,7 @@ void yyset_lineno (int line_number , yyscan_t yyscanner)
|
||||||
|
|
||||||
/* lineno is only valid if an input buffer exists. */
|
/* lineno is only valid if an input buffer exists. */
|
||||||
if (! YY_CURRENT_BUFFER )
|
if (! YY_CURRENT_BUFFER )
|
||||||
yy_fatal_error( "yyset_lineno called with no buffer" , yyscanner);
|
YY_FATAL_ERROR( "yyset_lineno called with no buffer" );
|
||||||
|
|
||||||
yylineno = line_number;
|
yylineno = line_number;
|
||||||
}
|
}
|
||||||
|
@ -1896,7 +1898,7 @@ void yyset_column (int column_no , yyscan_t yyscanner)
|
||||||
|
|
||||||
/* column is only valid if an input buffer exists. */
|
/* column is only valid if an input buffer exists. */
|
||||||
if (! YY_CURRENT_BUFFER )
|
if (! YY_CURRENT_BUFFER )
|
||||||
yy_fatal_error( "yyset_column called with no buffer" , yyscanner);
|
YY_FATAL_ERROR( "yyset_column called with no buffer" );
|
||||||
|
|
||||||
yycolumn = column_no;
|
yycolumn = column_no;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#define FLEX_SCANNER
|
#define FLEX_SCANNER
|
||||||
#define YY_FLEX_MAJOR_VERSION 2
|
#define YY_FLEX_MAJOR_VERSION 2
|
||||||
#define YY_FLEX_MINOR_VERSION 5
|
#define YY_FLEX_MINOR_VERSION 5
|
||||||
#define YY_FLEX_SUBMINOR_VERSION 35
|
#define YY_FLEX_SUBMINOR_VERSION 37
|
||||||
#if YY_FLEX_SUBMINOR_VERSION > 0
|
#if YY_FLEX_SUBMINOR_VERSION > 0
|
||||||
#define FLEX_BETA
|
#define FLEX_BETA
|
||||||
#endif
|
#endif
|
||||||
|
@ -58,7 +58,6 @@ typedef int flex_int32_t;
|
||||||
typedef unsigned char flex_uint8_t;
|
typedef unsigned char flex_uint8_t;
|
||||||
typedef unsigned short int flex_uint16_t;
|
typedef unsigned short int flex_uint16_t;
|
||||||
typedef unsigned int flex_uint32_t;
|
typedef unsigned int flex_uint32_t;
|
||||||
#endif /* ! C99 */
|
|
||||||
|
|
||||||
/* Limits of integral types. */
|
/* Limits of integral types. */
|
||||||
#ifndef INT8_MIN
|
#ifndef INT8_MIN
|
||||||
|
@ -89,6 +88,8 @@ typedef unsigned int flex_uint32_t;
|
||||||
#define UINT32_MAX (4294967295U)
|
#define UINT32_MAX (4294967295U)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* ! C99 */
|
||||||
|
|
||||||
#endif /* ! FLEXINT_H */
|
#endif /* ! FLEXINT_H */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -161,7 +162,7 @@ struct yy_buffer_state
|
||||||
/* Number of characters read into yy_ch_buf, not including EOB
|
/* Number of characters read into yy_ch_buf, not including EOB
|
||||||
* characters.
|
* characters.
|
||||||
*/
|
*/
|
||||||
int yy_n_chars;
|
yy_size_t yy_n_chars;
|
||||||
|
|
||||||
/* Whether we "own" the buffer - i.e., we know we created it,
|
/* Whether we "own" the buffer - i.e., we know we created it,
|
||||||
* and can realloc() it to grow it, and should free() it to
|
* and can realloc() it to grow it, and should free() it to
|
||||||
|
@ -205,7 +206,7 @@ void yypop_buffer_state (yyscan_t yyscanner );
|
||||||
|
|
||||||
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
|
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
|
||||||
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
|
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
|
||||||
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
|
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
|
||||||
|
|
||||||
void *yyalloc (yy_size_t ,yyscan_t yyscanner );
|
void *yyalloc (yy_size_t ,yyscan_t yyscanner );
|
||||||
void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
|
void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
|
||||||
|
@ -213,7 +214,7 @@ void yyfree (void * ,yyscan_t yyscanner );
|
||||||
|
|
||||||
/* Begin user sect3 */
|
/* Begin user sect3 */
|
||||||
|
|
||||||
#define yywrap(n) 1
|
#define yywrap(yyscanner) 1
|
||||||
#define YY_SKIP_YYWRAP
|
#define YY_SKIP_YYWRAP
|
||||||
|
|
||||||
#define yytext_ptr yytext_r
|
#define yytext_ptr yytext_r
|
||||||
|
@ -261,7 +262,7 @@ FILE *yyget_out (yyscan_t yyscanner );
|
||||||
|
|
||||||
void yyset_out (FILE * out_str ,yyscan_t yyscanner );
|
void yyset_out (FILE * out_str ,yyscan_t yyscanner );
|
||||||
|
|
||||||
int yyget_leng (yyscan_t yyscanner );
|
yy_size_t yyget_leng (yyscan_t yyscanner );
|
||||||
|
|
||||||
char *yyget_text (yyscan_t yyscanner );
|
char *yyget_text (yyscan_t yyscanner );
|
||||||
|
|
||||||
|
@ -341,6 +342,6 @@ extern int yylex \
|
||||||
#line 104 "sapi/phpdbg/dev/phpdbg_lexer.l"
|
#line 104 "sapi/phpdbg/dev/phpdbg_lexer.l"
|
||||||
|
|
||||||
|
|
||||||
#line 345 "sapi/phpdbg/phpdbg_lexer.h"
|
#line 346 "sapi/phpdbg/phpdbg_lexer.h"
|
||||||
#undef yyIN_HEADER
|
#undef yyIN_HEADER
|
||||||
#endif /* yyHEADER_H */
|
#endif /* yyHEADER_H */
|
||||||
|
|
369
phpdbg_parser.c
369
phpdbg_parser.c
|
@ -1,8 +1,8 @@
|
||||||
/* A Bison parser, made by GNU Bison 2.5. */
|
/* A Bison parser, made by GNU Bison 2.7. */
|
||||||
|
|
||||||
/* Bison implementation for Yacc-like parsers in C
|
/* Bison implementation for Yacc-like parsers in C
|
||||||
|
|
||||||
Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
|
Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
#define YYBISON 1
|
#define YYBISON 1
|
||||||
|
|
||||||
/* Bison version. */
|
/* Bison version. */
|
||||||
#define YYBISON_VERSION "2.5"
|
#define YYBISON_VERSION "2.7"
|
||||||
|
|
||||||
/* Skeleton name. */
|
/* Skeleton name. */
|
||||||
#define YYSKELETON_NAME "yacc.c"
|
#define YYSKELETON_NAME "yacc.c"
|
||||||
|
@ -58,14 +58,11 @@
|
||||||
/* Pull parsers. */
|
/* Pull parsers. */
|
||||||
#define YYPULL 1
|
#define YYPULL 1
|
||||||
|
|
||||||
/* Using locations. */
|
|
||||||
#define YYLSP_NEEDED 0
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Copy the first part of user declarations. */
|
/* Copy the first part of user declarations. */
|
||||||
|
/* Line 371 of yacc.c */
|
||||||
/* Line 268 of yacc.c */
|
|
||||||
#line 2 "sapi/phpdbg/dev/phpdbg_parser.y"
|
#line 2 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,6 +87,7 @@
|
||||||
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
|
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
|
||||||
|
|
||||||
int yyerror(phpdbg_param_t *stack, yyscan_t scanner, const char *msg) {
|
int yyerror(phpdbg_param_t *stack, yyscan_t scanner, const char *msg) {
|
||||||
|
TSRMLS_FETCH();
|
||||||
phpdbg_error("Parse Error: %s", msg);
|
phpdbg_error("Parse Error: %s", msg);
|
||||||
{
|
{
|
||||||
const phpdbg_param_t *top = stack;
|
const phpdbg_param_t *top = stack;
|
||||||
|
@ -103,14 +101,16 @@ int yyerror(phpdbg_param_t *stack, yyscan_t scanner, const char *msg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Line 371 of yacc.c */
|
||||||
|
#line 106 "sapi/phpdbg/phpdbg_parser.c"
|
||||||
|
|
||||||
/* Line 268 of yacc.c */
|
# ifndef YY_NULL
|
||||||
#line 109 "sapi/phpdbg/phpdbg_parser.c"
|
# if defined __cplusplus && 201103L <= __cplusplus
|
||||||
|
# define YY_NULL nullptr
|
||||||
/* Enabling traces. */
|
# else
|
||||||
#ifndef YYDEBUG
|
# define YY_NULL 0
|
||||||
# define YYDEBUG 0
|
# endif
|
||||||
#endif
|
# endif
|
||||||
|
|
||||||
/* Enabling verbose error messages. */
|
/* Enabling verbose error messages. */
|
||||||
#ifdef YYERROR_VERBOSE
|
#ifdef YYERROR_VERBOSE
|
||||||
|
@ -120,15 +120,20 @@ int yyerror(phpdbg_param_t *stack, yyscan_t scanner, const char *msg) {
|
||||||
# define YYERROR_VERBOSE 1
|
# define YYERROR_VERBOSE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Enabling the token table. */
|
/* In a future release of Bison, this section will be replaced
|
||||||
#ifndef YYTOKEN_TABLE
|
by #include "phpdbg_parser.h". */
|
||||||
# define YYTOKEN_TABLE 0
|
#ifndef YY_YY_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED
|
||||||
|
# define YY_YY_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED
|
||||||
|
/* Enabling traces. */
|
||||||
|
#ifndef YYDEBUG
|
||||||
|
# define YYDEBUG 0
|
||||||
|
#endif
|
||||||
|
#if YYDEBUG
|
||||||
|
extern int yydebug;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* "%code requires" blocks. */
|
/* "%code requires" blocks. */
|
||||||
|
/* Line 387 of yacc.c */
|
||||||
/* Line 288 of yacc.c */
|
#line 40 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 39 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
|
|
||||||
#include "phpdbg.h"
|
#include "phpdbg.h"
|
||||||
#ifndef YY_TYPEDEF_YY_SCANNER_T
|
#ifndef YY_TYPEDEF_YY_SCANNER_T
|
||||||
|
@ -137,9 +142,8 @@ typedef void* yyscan_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* Line 387 of yacc.c */
|
||||||
/* Line 288 of yacc.c */
|
#line 147 "sapi/phpdbg/phpdbg_parser.c"
|
||||||
#line 143 "sapi/phpdbg/phpdbg_parser.c"
|
|
||||||
|
|
||||||
/* Tokens. */
|
/* Tokens. */
|
||||||
#ifndef YYTOKENTYPE
|
#ifndef YYTOKENTYPE
|
||||||
|
@ -167,7 +171,6 @@ typedef void* yyscan_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||||
typedef int YYSTYPE;
|
typedef int YYSTYPE;
|
||||||
# define YYSTYPE_IS_TRIVIAL 1
|
# define YYSTYPE_IS_TRIVIAL 1
|
||||||
|
@ -176,11 +179,26 @@ typedef int YYSTYPE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef YYPARSE_PARAM
|
||||||
|
#if defined __STDC__ || defined __cplusplus
|
||||||
|
int yyparse (void *YYPARSE_PARAM);
|
||||||
|
#else
|
||||||
|
int yyparse ();
|
||||||
|
#endif
|
||||||
|
#else /* ! YYPARSE_PARAM */
|
||||||
|
#if defined __STDC__ || defined __cplusplus
|
||||||
|
int yyparse (phpdbg_param_t *stack, yyscan_t scanner);
|
||||||
|
#else
|
||||||
|
int yyparse ();
|
||||||
|
#endif
|
||||||
|
#endif /* ! YYPARSE_PARAM */
|
||||||
|
|
||||||
|
#endif /* !YY_YY_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED */
|
||||||
|
|
||||||
/* Copy the second part of user declarations. */
|
/* Copy the second part of user declarations. */
|
||||||
|
|
||||||
|
/* Line 390 of yacc.c */
|
||||||
/* Line 343 of yacc.c */
|
#line 202 "sapi/phpdbg/phpdbg_parser.c"
|
||||||
#line 184 "sapi/phpdbg/phpdbg_parser.c"
|
|
||||||
|
|
||||||
#ifdef short
|
#ifdef short
|
||||||
# undef short
|
# undef short
|
||||||
|
@ -233,24 +251,24 @@ typedef short int yytype_int16;
|
||||||
# if defined YYENABLE_NLS && YYENABLE_NLS
|
# if defined YYENABLE_NLS && YYENABLE_NLS
|
||||||
# if ENABLE_NLS
|
# if ENABLE_NLS
|
||||||
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
|
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
|
||||||
# define YY_(msgid) dgettext ("bison-runtime", msgid)
|
# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# ifndef YY_
|
# ifndef YY_
|
||||||
# define YY_(msgid) msgid
|
# define YY_(Msgid) Msgid
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Suppress unused-variable warnings by "using" E. */
|
/* Suppress unused-variable warnings by "using" E. */
|
||||||
#if ! defined lint || defined __GNUC__
|
#if ! defined lint || defined __GNUC__
|
||||||
# define YYUSE(e) ((void) (e))
|
# define YYUSE(E) ((void) (E))
|
||||||
#else
|
#else
|
||||||
# define YYUSE(e) /* empty */
|
# define YYUSE(E) /* empty */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Identity function, used to suppress warnings about constant conditions. */
|
/* Identity function, used to suppress warnings about constant conditions. */
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
# define YYID(n) (n)
|
# define YYID(N) (N)
|
||||||
#else
|
#else
|
||||||
#if (defined __STDC__ || defined __C99__FUNC__ \
|
#if (defined __STDC__ || defined __C99__FUNC__ \
|
||||||
|| defined __cplusplus || defined _MSC_VER)
|
|| defined __cplusplus || defined _MSC_VER)
|
||||||
|
@ -286,6 +304,7 @@ YYID (yyi)
|
||||||
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|
||||||
|| defined __cplusplus || defined _MSC_VER)
|
|| defined __cplusplus || defined _MSC_VER)
|
||||||
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
||||||
|
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
|
||||||
# ifndef EXIT_SUCCESS
|
# ifndef EXIT_SUCCESS
|
||||||
# define EXIT_SUCCESS 0
|
# define EXIT_SUCCESS 0
|
||||||
# endif
|
# endif
|
||||||
|
@ -377,20 +396,20 @@ union yyalloc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
|
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
|
||||||
/* Copy COUNT objects from FROM to TO. The source and destination do
|
/* Copy COUNT objects from SRC to DST. The source and destination do
|
||||||
not overlap. */
|
not overlap. */
|
||||||
# ifndef YYCOPY
|
# ifndef YYCOPY
|
||||||
# if defined __GNUC__ && 1 < __GNUC__
|
# if defined __GNUC__ && 1 < __GNUC__
|
||||||
# define YYCOPY(To, From, Count) \
|
# define YYCOPY(Dst, Src, Count) \
|
||||||
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
|
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
|
||||||
# else
|
# else
|
||||||
# define YYCOPY(To, From, Count) \
|
# define YYCOPY(Dst, Src, Count) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
YYSIZE_T yyi; \
|
YYSIZE_T yyi; \
|
||||||
for (yyi = 0; yyi < (Count); yyi++) \
|
for (yyi = 0; yyi < (Count); yyi++) \
|
||||||
(To)[yyi] = (From)[yyi]; \
|
(Dst)[yyi] = (Src)[yyi]; \
|
||||||
} \
|
} \
|
||||||
while (YYID (0))
|
while (YYID (0))
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
@ -474,13 +493,13 @@ static const yytype_int8 yyrhs[] =
|
||||||
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
|
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
|
||||||
static const yytype_uint8 yyrline[] =
|
static const yytype_uint8 yyrline[] =
|
||||||
{
|
{
|
||||||
0, 74, 74, 75, 79, 80, 84, 89, 94, 99,
|
0, 75, 75, 76, 80, 81, 85, 90, 95, 100,
|
||||||
105, 111, 116, 121, 126, 127, 128, 129, 130, 131,
|
106, 112, 117, 122, 127, 128, 129, 130, 131, 132,
|
||||||
132
|
133
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
|
#if YYDEBUG || YYERROR_VERBOSE || 1
|
||||||
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
|
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
|
||||||
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
|
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
|
||||||
static const char *const yytname[] =
|
static const char *const yytname[] =
|
||||||
|
@ -493,7 +512,7 @@ static const char *const yytname[] =
|
||||||
"\"literal (string)\"", "\"address\"", "\"opcode\"",
|
"\"literal (string)\"", "\"address\"", "\"opcode\"",
|
||||||
"\"identifier (command or function name)\"",
|
"\"identifier (command or function name)\"",
|
||||||
"\"input (input string or data)\"", "\"input\"", "$accept", "input",
|
"\"input (input string or data)\"", "\"input\"", "$accept", "input",
|
||||||
"parameters", "parameter", 0
|
"parameters", "parameter", YY_NULL
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -566,10 +585,10 @@ static const yytype_uint8 yytable[] =
|
||||||
24, 26, 27, 0, 28, 21
|
24, 26, 27, 0, 28, 21
|
||||||
};
|
};
|
||||||
|
|
||||||
#define yypact_value_is_default(yystate) \
|
#define yypact_value_is_default(Yystate) \
|
||||||
((yystate) == (-10))
|
(!!((Yystate) == (-10)))
|
||||||
|
|
||||||
#define yytable_value_is_error(yytable_value) \
|
#define yytable_value_is_error(Yytable_value) \
|
||||||
YYID (0)
|
YYID (0)
|
||||||
|
|
||||||
static const yytype_int8 yycheck[] =
|
static const yytype_int8 yycheck[] =
|
||||||
|
@ -615,62 +634,35 @@ static const yytype_uint8 yystos[] =
|
||||||
|
|
||||||
#define YYRECOVERING() (!!yyerrstatus)
|
#define YYRECOVERING() (!!yyerrstatus)
|
||||||
|
|
||||||
#define YYBACKUP(Token, Value) \
|
#define YYBACKUP(Token, Value) \
|
||||||
do \
|
do \
|
||||||
if (yychar == YYEMPTY && yylen == 1) \
|
if (yychar == YYEMPTY) \
|
||||||
{ \
|
{ \
|
||||||
yychar = (Token); \
|
yychar = (Token); \
|
||||||
yylval = (Value); \
|
yylval = (Value); \
|
||||||
YYPOPSTACK (1); \
|
YYPOPSTACK (yylen); \
|
||||||
goto yybackup; \
|
yystate = *yyssp; \
|
||||||
} \
|
goto yybackup; \
|
||||||
else \
|
} \
|
||||||
{ \
|
else \
|
||||||
|
{ \
|
||||||
yyerror (stack, scanner, YY_("syntax error: cannot back up")); \
|
yyerror (stack, scanner, YY_("syntax error: cannot back up")); \
|
||||||
YYERROR; \
|
YYERROR; \
|
||||||
} \
|
} \
|
||||||
while (YYID (0))
|
while (YYID (0))
|
||||||
|
|
||||||
|
/* Error token number */
|
||||||
#define YYTERROR 1
|
#define YYTERROR 1
|
||||||
#define YYERRCODE 256
|
#define YYERRCODE 256
|
||||||
|
|
||||||
|
|
||||||
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
|
|
||||||
If N is 0, then set CURRENT to the empty location which ends
|
|
||||||
the previous symbol: RHS[0] (always defined). */
|
|
||||||
|
|
||||||
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
|
|
||||||
#ifndef YYLLOC_DEFAULT
|
|
||||||
# define YYLLOC_DEFAULT(Current, Rhs, N) \
|
|
||||||
do \
|
|
||||||
if (YYID (N)) \
|
|
||||||
{ \
|
|
||||||
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
|
|
||||||
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
|
|
||||||
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
|
|
||||||
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
|
|
||||||
} \
|
|
||||||
else \
|
|
||||||
{ \
|
|
||||||
(Current).first_line = (Current).last_line = \
|
|
||||||
YYRHSLOC (Rhs, 0).last_line; \
|
|
||||||
(Current).first_column = (Current).last_column = \
|
|
||||||
YYRHSLOC (Rhs, 0).last_column; \
|
|
||||||
} \
|
|
||||||
while (YYID (0))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* This macro is provided for backward compatibility. */
|
/* This macro is provided for backward compatibility. */
|
||||||
|
|
||||||
#ifndef YY_LOCATION_PRINT
|
#ifndef YY_LOCATION_PRINT
|
||||||
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* YYLEX -- calling `yylex' with the right arguments. */
|
/* YYLEX -- calling `yylex' with the right arguments. */
|
||||||
|
|
||||||
#ifdef YYLEX_PARAM
|
#ifdef YYLEX_PARAM
|
||||||
# define YYLEX yylex (&yylval, YYLEX_PARAM)
|
# define YYLEX yylex (&yylval, YYLEX_PARAM)
|
||||||
#else
|
#else
|
||||||
|
@ -722,6 +714,8 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep, stack, scanner)
|
||||||
yyscan_t scanner;
|
yyscan_t scanner;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
FILE *yyo = yyoutput;
|
||||||
|
YYUSE (yyo);
|
||||||
if (!yyvaluep)
|
if (!yyvaluep)
|
||||||
return;
|
return;
|
||||||
YYUSE (stack);
|
YYUSE (stack);
|
||||||
|
@ -735,7 +729,7 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep, stack, scanner)
|
||||||
switch (yytype)
|
switch (yytype)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -979,12 +973,11 @@ static int
|
||||||
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
|
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
|
||||||
yytype_int16 *yyssp, int yytoken)
|
yytype_int16 *yyssp, int yytoken)
|
||||||
{
|
{
|
||||||
YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]);
|
YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
|
||||||
YYSIZE_T yysize = yysize0;
|
YYSIZE_T yysize = yysize0;
|
||||||
YYSIZE_T yysize1;
|
|
||||||
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
|
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
|
||||||
/* Internationalized format string. */
|
/* Internationalized format string. */
|
||||||
const char *yyformat = 0;
|
const char *yyformat = YY_NULL;
|
||||||
/* Arguments of yyformat. */
|
/* Arguments of yyformat. */
|
||||||
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
|
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
|
||||||
/* Number of reported tokens (one for the "unexpected", one per
|
/* Number of reported tokens (one for the "unexpected", one per
|
||||||
|
@ -1044,11 +1037,13 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
yyarg[yycount++] = yytname[yyx];
|
yyarg[yycount++] = yytname[yyx];
|
||||||
yysize1 = yysize + yytnamerr (0, yytname[yyx]);
|
{
|
||||||
if (! (yysize <= yysize1
|
YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
|
||||||
&& yysize1 <= YYSTACK_ALLOC_MAXIMUM))
|
if (! (yysize <= yysize1
|
||||||
return 2;
|
&& yysize1 <= YYSTACK_ALLOC_MAXIMUM))
|
||||||
yysize = yysize1;
|
return 2;
|
||||||
|
yysize = yysize1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1068,10 +1063,12 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
|
||||||
# undef YYCASE_
|
# undef YYCASE_
|
||||||
}
|
}
|
||||||
|
|
||||||
yysize1 = yysize + yystrlen (yyformat);
|
{
|
||||||
if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
|
YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
|
||||||
return 2;
|
if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
|
||||||
yysize = yysize1;
|
return 2;
|
||||||
|
yysize = yysize1;
|
||||||
|
}
|
||||||
|
|
||||||
if (*yymsg_alloc < yysize)
|
if (*yymsg_alloc < yysize)
|
||||||
{
|
{
|
||||||
|
@ -1135,25 +1132,11 @@ yydestruct (yymsg, yytype, yyvaluep, stack, scanner)
|
||||||
{
|
{
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Prevent warnings from -Wmissing-prototypes. */
|
|
||||||
#ifdef YYPARSE_PARAM
|
|
||||||
#if defined __STDC__ || defined __cplusplus
|
|
||||||
int yyparse (void *YYPARSE_PARAM);
|
|
||||||
#else
|
|
||||||
int yyparse ();
|
|
||||||
#endif
|
|
||||||
#else /* ! YYPARSE_PARAM */
|
|
||||||
#if defined __STDC__ || defined __cplusplus
|
|
||||||
int yyparse (phpdbg_param_t *stack, yyscan_t scanner);
|
|
||||||
#else
|
|
||||||
int yyparse ();
|
|
||||||
#endif
|
|
||||||
#endif /* ! YYPARSE_PARAM */
|
|
||||||
|
|
||||||
|
|
||||||
/*----------.
|
/*----------.
|
||||||
|
@ -1186,8 +1169,31 @@ yyparse (stack, scanner)
|
||||||
/* The lookahead symbol. */
|
/* The lookahead symbol. */
|
||||||
int yychar;
|
int yychar;
|
||||||
|
|
||||||
|
|
||||||
|
#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
|
||||||
|
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
|
||||||
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
|
||||||
|
_Pragma ("GCC diagnostic push") \
|
||||||
|
_Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
|
||||||
|
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
|
||||||
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
|
||||||
|
_Pragma ("GCC diagnostic pop")
|
||||||
|
#else
|
||||||
|
/* Default value used for initialization, for pacifying older GCCs
|
||||||
|
or non-GCC compilers. */
|
||||||
|
static YYSTYPE yyval_default;
|
||||||
|
# define YY_INITIAL_VALUE(Value) = Value
|
||||||
|
#endif
|
||||||
|
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
||||||
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
||||||
|
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
|
||||||
|
#endif
|
||||||
|
#ifndef YY_INITIAL_VALUE
|
||||||
|
# define YY_INITIAL_VALUE(Value) /* Nothing. */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The semantic value of the lookahead symbol. */
|
/* The semantic value of the lookahead symbol. */
|
||||||
YYSTYPE yylval;
|
YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
|
||||||
|
|
||||||
/* Number of syntax errors so far. */
|
/* Number of syntax errors so far. */
|
||||||
int yynerrs;
|
int yynerrs;
|
||||||
|
@ -1200,7 +1206,7 @@ YYSTYPE yylval;
|
||||||
`yyss': related to states.
|
`yyss': related to states.
|
||||||
`yyvs': related to semantic values.
|
`yyvs': related to semantic values.
|
||||||
|
|
||||||
Refer to the stacks thru separate pointers, to allow yyoverflow
|
Refer to the stacks through separate pointers, to allow yyoverflow
|
||||||
to reallocate them elsewhere. */
|
to reallocate them elsewhere. */
|
||||||
|
|
||||||
/* The state stack. */
|
/* The state stack. */
|
||||||
|
@ -1218,7 +1224,7 @@ YYSTYPE yylval;
|
||||||
int yyn;
|
int yyn;
|
||||||
int yyresult;
|
int yyresult;
|
||||||
/* Lookahead token as an internal (translated) token number. */
|
/* Lookahead token as an internal (translated) token number. */
|
||||||
int yytoken;
|
int yytoken = 0;
|
||||||
/* The variables used to return semantic value and location from the
|
/* The variables used to return semantic value and location from the
|
||||||
action routines. */
|
action routines. */
|
||||||
YYSTYPE yyval;
|
YYSTYPE yyval;
|
||||||
|
@ -1236,9 +1242,8 @@ YYSTYPE yylval;
|
||||||
Keep to zero when no symbol should be popped. */
|
Keep to zero when no symbol should be popped. */
|
||||||
int yylen = 0;
|
int yylen = 0;
|
||||||
|
|
||||||
yytoken = 0;
|
yyssp = yyss = yyssa;
|
||||||
yyss = yyssa;
|
yyvsp = yyvs = yyvsa;
|
||||||
yyvs = yyvsa;
|
|
||||||
yystacksize = YYINITDEPTH;
|
yystacksize = YYINITDEPTH;
|
||||||
|
|
||||||
YYDPRINTF ((stderr, "Starting parse\n"));
|
YYDPRINTF ((stderr, "Starting parse\n"));
|
||||||
|
@ -1247,14 +1252,6 @@ YYSTYPE yylval;
|
||||||
yyerrstatus = 0;
|
yyerrstatus = 0;
|
||||||
yynerrs = 0;
|
yynerrs = 0;
|
||||||
yychar = YYEMPTY; /* Cause a token to be read. */
|
yychar = YYEMPTY; /* Cause a token to be read. */
|
||||||
|
|
||||||
/* Initialize stack pointers.
|
|
||||||
Waste one element of value and location stack
|
|
||||||
so that they stay on the same level as the state stack.
|
|
||||||
The wasted elements are never initialized. */
|
|
||||||
yyssp = yyss;
|
|
||||||
yyvsp = yyvs;
|
|
||||||
|
|
||||||
goto yysetstate;
|
goto yysetstate;
|
||||||
|
|
||||||
/*------------------------------------------------------------.
|
/*------------------------------------------------------------.
|
||||||
|
@ -1395,7 +1392,9 @@ yybackup:
|
||||||
yychar = YYEMPTY;
|
yychar = YYEMPTY;
|
||||||
|
|
||||||
yystate = yyn;
|
yystate = yyn;
|
||||||
|
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
||||||
*++yyvsp = yylval;
|
*++yyvsp = yylval;
|
||||||
|
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
||||||
|
|
||||||
goto yynewstate;
|
goto yynewstate;
|
||||||
|
|
||||||
|
@ -1432,23 +1431,20 @@ yyreduce:
|
||||||
switch (yyn)
|
switch (yyn)
|
||||||
{
|
{
|
||||||
case 4:
|
case 4:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
#line 80 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 79 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{ phpdbg_stack_push(stack, &(yyvsp[(1) - (1)])); }
|
{ phpdbg_stack_push(stack, &(yyvsp[(1) - (1)])); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
#line 81 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 80 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{ phpdbg_stack_push(stack, &(yyvsp[(2) - (2)])); }
|
{ phpdbg_stack_push(stack, &(yyvsp[(2) - (2)])); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6:
|
case 6:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
#line 85 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 84 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{
|
{
|
||||||
(yyval).type = FILE_PARAM;
|
(yyval).type = FILE_PARAM;
|
||||||
(yyval).file.name = (yyvsp[(1) - (3)]).str;
|
(yyval).file.name = (yyvsp[(1) - (3)]).str;
|
||||||
|
@ -1457,9 +1453,8 @@ yyreduce:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 7:
|
case 7:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
#line 90 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 89 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{
|
{
|
||||||
(yyval).type = NUMERIC_FILE_PARAM;
|
(yyval).type = NUMERIC_FILE_PARAM;
|
||||||
(yyval).file.name = (yyvsp[(1) - (4)]).str;
|
(yyval).file.name = (yyvsp[(1) - (4)]).str;
|
||||||
|
@ -1468,9 +1463,8 @@ yyreduce:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 8:
|
case 8:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
#line 95 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 94 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{
|
{
|
||||||
(yyval).type = METHOD_PARAM;
|
(yyval).type = METHOD_PARAM;
|
||||||
(yyval).method.class = (yyvsp[(1) - (3)]).str;
|
(yyval).method.class = (yyvsp[(1) - (3)]).str;
|
||||||
|
@ -1479,9 +1473,8 @@ yyreduce:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 9:
|
case 9:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
#line 100 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 99 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{
|
{
|
||||||
(yyval).type = NUMERIC_METHOD_PARAM;
|
(yyval).type = NUMERIC_METHOD_PARAM;
|
||||||
(yyval).method.class = (yyvsp[(1) - (5)]).str;
|
(yyval).method.class = (yyvsp[(1) - (5)]).str;
|
||||||
|
@ -1491,9 +1484,8 @@ yyreduce:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 10:
|
case 10:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
#line 106 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 105 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{
|
{
|
||||||
(yyval).type = NUMERIC_FUNCTION_PARAM;
|
(yyval).type = NUMERIC_FUNCTION_PARAM;
|
||||||
(yyval).str = (yyvsp[(1) - (3)]).str;
|
(yyval).str = (yyvsp[(1) - (3)]).str;
|
||||||
|
@ -1503,9 +1495,8 @@ yyreduce:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 11:
|
case 11:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
#line 112 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 111 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{
|
{
|
||||||
(yyval).type = COND_PARAM;
|
(yyval).type = COND_PARAM;
|
||||||
(yyval).str = (yyvsp[(2) - (2)]).str;
|
(yyval).str = (yyvsp[(2) - (2)]).str;
|
||||||
|
@ -1514,9 +1505,8 @@ yyreduce:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 12:
|
case 12:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
#line 117 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 116 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{
|
{
|
||||||
(yyval).type = EVAL_PARAM;
|
(yyval).type = EVAL_PARAM;
|
||||||
(yyval).str = (yyvsp[(2) - (2)]).str;
|
(yyval).str = (yyvsp[(2) - (2)]).str;
|
||||||
|
@ -1525,9 +1515,8 @@ yyreduce:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 13:
|
case 13:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
#line 122 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 121 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{
|
{
|
||||||
(yyval).type = SHELL_PARAM;
|
(yyval).type = SHELL_PARAM;
|
||||||
(yyval).str = (yyvsp[(2) - (2)]).str;
|
(yyval).str = (yyvsp[(2) - (2)]).str;
|
||||||
|
@ -1536,58 +1525,50 @@ yyreduce:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 14:
|
case 14:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
|
||||||
#line 126 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
{ (yyval) = (yyvsp[(1) - (1)]); }
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 15:
|
|
||||||
|
|
||||||
/* Line 1806 of yacc.c */
|
|
||||||
#line 127 "sapi/phpdbg/dev/phpdbg_parser.y"
|
#line 127 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
{ (yyval) = (yyvsp[(1) - (1)]); }
|
{ (yyval) = (yyvsp[(1) - (1)]); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 16:
|
case 15:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
|
||||||
#line 128 "sapi/phpdbg/dev/phpdbg_parser.y"
|
#line 128 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
{ (yyval) = (yyvsp[(1) - (1)]); }
|
{ (yyval) = (yyvsp[(1) - (1)]); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 17:
|
case 16:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
|
||||||
#line 129 "sapi/phpdbg/dev/phpdbg_parser.y"
|
#line 129 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
{ (yyval) = (yyvsp[(1) - (1)]); }
|
{ (yyval) = (yyvsp[(1) - (1)]); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 18:
|
case 17:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
|
||||||
#line 130 "sapi/phpdbg/dev/phpdbg_parser.y"
|
#line 130 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
{ (yyval) = (yyvsp[(1) - (1)]); }
|
{ (yyval) = (yyvsp[(1) - (1)]); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 19:
|
case 18:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
|
||||||
#line 131 "sapi/phpdbg/dev/phpdbg_parser.y"
|
#line 131 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
{ (yyval) = (yyvsp[(1) - (1)]); }
|
{ (yyval) = (yyvsp[(1) - (1)]); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 20:
|
case 19:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
/* Line 1806 of yacc.c */
|
|
||||||
#line 132 "sapi/phpdbg/dev/phpdbg_parser.y"
|
#line 132 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
{ (yyval) = (yyvsp[(1) - (1)]); }
|
{ (yyval) = (yyvsp[(1) - (1)]); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 20:
|
||||||
|
/* Line 1792 of yacc.c */
|
||||||
|
#line 133 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
|
{ (yyval) = (yyvsp[(1) - (1)]); }
|
||||||
|
break;
|
||||||
|
|
||||||
|
|
||||||
/* Line 1806 of yacc.c */
|
/* Line 1792 of yacc.c */
|
||||||
#line 1591 "sapi/phpdbg/phpdbg_parser.c"
|
#line 1572 "sapi/phpdbg/phpdbg_parser.c"
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
/* User semantic actions sometimes alter yychar, and that requires
|
/* User semantic actions sometimes alter yychar, and that requires
|
||||||
|
@ -1750,7 +1731,9 @@ yyerrlab1:
|
||||||
YY_STACK_PRINT (yyss, yyssp);
|
YY_STACK_PRINT (yyss, yyssp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
|
||||||
*++yyvsp = yylval;
|
*++yyvsp = yylval;
|
||||||
|
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
||||||
|
|
||||||
|
|
||||||
/* Shift the error token. */
|
/* Shift the error token. */
|
||||||
|
@ -1774,7 +1757,7 @@ yyabortlab:
|
||||||
yyresult = 1;
|
yyresult = 1;
|
||||||
goto yyreturn;
|
goto yyreturn;
|
||||||
|
|
||||||
#if !defined(yyoverflow) || YYERROR_VERBOSE
|
#if !defined yyoverflow || YYERROR_VERBOSE
|
||||||
/*-------------------------------------------------.
|
/*-------------------------------------------------.
|
||||||
| yyexhaustedlab -- memory exhaustion comes here. |
|
| yyexhaustedlab -- memory exhaustion comes here. |
|
||||||
`-------------------------------------------------*/
|
`-------------------------------------------------*/
|
||||||
|
@ -1816,8 +1799,6 @@ yyreturn:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Line 2055 of yacc.c */
|
||||||
/* Line 2067 of yacc.c */
|
#line 136 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 135 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/* A Bison parser, made by GNU Bison 2.5. */
|
/* A Bison parser, made by GNU Bison 2.7. */
|
||||||
|
|
||||||
/* Bison interface for Yacc-like parsers in C
|
/* Bison interface for Yacc-like parsers in C
|
||||||
|
|
||||||
Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
|
Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -30,10 +30,18 @@
|
||||||
This special exception was added by the Free Software Foundation in
|
This special exception was added by the Free Software Foundation in
|
||||||
version 2.2 of Bison. */
|
version 2.2 of Bison. */
|
||||||
|
|
||||||
|
#ifndef YY_YY_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED
|
||||||
|
# define YY_YY_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED
|
||||||
|
/* Enabling traces. */
|
||||||
|
#ifndef YYDEBUG
|
||||||
|
# define YYDEBUG 0
|
||||||
|
#endif
|
||||||
|
#if YYDEBUG
|
||||||
|
extern int yydebug;
|
||||||
|
#endif
|
||||||
/* "%code requires" blocks. */
|
/* "%code requires" blocks. */
|
||||||
|
/* Line 2058 of yacc.c */
|
||||||
/* Line 2068 of yacc.c */
|
#line 40 "sapi/phpdbg/dev/phpdbg_parser.y"
|
||||||
#line 39 "sapi/phpdbg/dev/phpdbg_parser.y"
|
|
||||||
|
|
||||||
#include "phpdbg.h"
|
#include "phpdbg.h"
|
||||||
#ifndef YY_TYPEDEF_YY_SCANNER_T
|
#ifndef YY_TYPEDEF_YY_SCANNER_T
|
||||||
|
@ -42,9 +50,8 @@ typedef void* yyscan_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* Line 2058 of yacc.c */
|
||||||
/* Line 2068 of yacc.c */
|
#line 55 "sapi/phpdbg/phpdbg_parser.h"
|
||||||
#line 48 "sapi/phpdbg/phpdbg_parser.h"
|
|
||||||
|
|
||||||
/* Tokens. */
|
/* Tokens. */
|
||||||
#ifndef YYTOKENTYPE
|
#ifndef YYTOKENTYPE
|
||||||
|
@ -72,7 +79,6 @@ typedef void* yyscan_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||||
typedef int YYSTYPE;
|
typedef int YYSTYPE;
|
||||||
# define YYSTYPE_IS_TRIVIAL 1
|
# define YYSTYPE_IS_TRIVIAL 1
|
||||||
|
@ -81,5 +87,18 @@ typedef int YYSTYPE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef YYPARSE_PARAM
|
||||||
|
#if defined __STDC__ || defined __cplusplus
|
||||||
|
int yyparse (void *YYPARSE_PARAM);
|
||||||
|
#else
|
||||||
|
int yyparse ();
|
||||||
|
#endif
|
||||||
|
#else /* ! YYPARSE_PARAM */
|
||||||
|
#if defined __STDC__ || defined __cplusplus
|
||||||
|
int yyparse (phpdbg_param_t *stack, yyscan_t scanner);
|
||||||
|
#else
|
||||||
|
int yyparse ();
|
||||||
|
#endif
|
||||||
|
#endif /* ! YYPARSE_PARAM */
|
||||||
|
|
||||||
|
#endif /* !YY_YY_SAPI_PHPDBG_PHPDBG_PARSER_H_INCLUDED */
|
||||||
|
|
|
@ -230,7 +230,7 @@ void phpdbg_try_file_init(char *init_file, size_t init_file_len, zend_bool free_
|
||||||
state = yy_scan_string(input, scanner);
|
state = yy_scan_string(input, scanner);
|
||||||
|
|
||||||
if (yyparse(&stack, scanner) <= 0) {
|
if (yyparse(&stack, scanner) <= 0) {
|
||||||
switch (phpdbg_stack_execute(&stack, &why)) {
|
switch (phpdbg_stack_execute(&stack, &why TSRMLS_CC)) {
|
||||||
case FAILURE:
|
case FAILURE:
|
||||||
if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
|
if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
|
||||||
if (phpdbg_call_register(&stack TSRMLS_CC) == FAILURE) {
|
if (phpdbg_call_register(&stack TSRMLS_CC) == FAILURE) {
|
||||||
|
@ -948,7 +948,7 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */
|
||||||
state = yy_scan_string(input, scanner);
|
state = yy_scan_string(input, scanner);
|
||||||
|
|
||||||
if (yyparse(&stack, scanner) <= 0) {
|
if (yyparse(&stack, scanner) <= 0) {
|
||||||
switch (ret = phpdbg_stack_execute(&stack, &why)) {
|
switch (ret = phpdbg_stack_execute(&stack, &why TSRMLS_CC)) {
|
||||||
case FAILURE:
|
case FAILURE:
|
||||||
if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
|
if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
|
||||||
if (phpdbg_call_register(&stack TSRMLS_CC) == FAILURE) {
|
if (phpdbg_call_register(&stack TSRMLS_CC) == FAILURE) {
|
||||||
|
|
|
@ -357,7 +357,7 @@ PHPDBG_API const phpdbg_color_t* phpdbg_get_colors(TSRMLS_D) /* {{{ */
|
||||||
return colors;
|
return colors;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
PHPDBG_API int phpdbg_get_element(const char *name, size_t len) {
|
PHPDBG_API int phpdbg_get_element(const char *name, size_t len TSRMLS_DC) {
|
||||||
const phpdbg_element_t *element = elements;
|
const phpdbg_element_t *element = elements;
|
||||||
|
|
||||||
while (element && element->name) {
|
while (element && element->name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue