mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
New macro NEW_RIPPER
instead of NEW_CDECL
This commit is contained in:
parent
242e58db2f
commit
2544bf9452
1 changed files with 2 additions and 1 deletions
3
parse.y
3
parse.y
|
@ -559,6 +559,7 @@ static void check_literal_when(struct parser_params *p, NODE *args, const YYLTYP
|
|||
#define get_num(num) (num)
|
||||
#else /* RIPPER */
|
||||
#define NODE_RIPPER NODE_CDECL
|
||||
#define NEW_RIPPER(a,b,c,loc) (VALUE)NEW_CDECL(a,b,c,loc)
|
||||
|
||||
static inline int ripper_is_node_yylval(VALUE n);
|
||||
|
||||
|
@ -568,7 +569,7 @@ ripper_new_yylval(struct parser_params *p, ID a, VALUE b, VALUE c)
|
|||
if (ripper_is_node_yylval(c)) c = RNODE(c)->nd_cval;
|
||||
add_mark_object(p, b);
|
||||
add_mark_object(p, c);
|
||||
return (VALUE)NEW_CDECL(a, b, c, &NULL_LOC);
|
||||
return NEW_RIPPER(a, b, c, &NULL_LOC);
|
||||
}
|
||||
|
||||
static inline int
|
||||
|
|
Loading…
Reference in a new issue