set_yylval_literal
is not used
This commit is contained in:
parent
5fa3259b13
commit
c3b2436154
6
parse.y
6
parse.y
@ -7017,11 +7017,6 @@ do { \
|
||||
set_yylval_node(NEW_STR(x, &_cur_loc)); \
|
||||
RB_OBJ_WRITTEN(p->ast, Qnil, x); \
|
||||
} while(0)
|
||||
# define set_yylval_literal(x) \
|
||||
do { \
|
||||
set_yylval_node(NEW_LIT(x, &_cur_loc)); \
|
||||
RB_OBJ_WRITTEN(p->ast, Qnil, x); \
|
||||
} while(0)
|
||||
# define set_yylval_num(x) (yylval.num = (x))
|
||||
# define set_yylval_id(x) (yylval.id = (x))
|
||||
# define set_yylval_name(x) (yylval.id = (x))
|
||||
@ -7036,7 +7031,6 @@ ripper_yylval_id(struct parser_params *p, ID x)
|
||||
# define set_yylval_num(x) (yylval.val = ripper_new_yylval(p, (x), 0, 0))
|
||||
# define set_yylval_id(x) (void)(x)
|
||||
# define set_yylval_name(x) (void)(yylval.val = ripper_yylval_id(p, x))
|
||||
# define set_yylval_literal(x) add_mark_object(p, (x))
|
||||
# define set_yylval_node(x) (yylval.val = ripper_new_yylval(p, 0, 0, STR_NEW(p->lex.ptok, p->lex.pcur-p->lex.ptok)))
|
||||
# define yylval_id() yylval.id
|
||||
# define _cur_loc NULL_LOC /* dummy */
|
||||
|
Loading…
x
Reference in New Issue
Block a user