From 2544bf9452b5208a450509aa219bc33aeffbd292 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 3 Apr 2020 01:04:30 +0900 Subject: [PATCH] New macro `NEW_RIPPER` instead of `NEW_CDECL` --- parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parse.y b/parse.y index bbe460b901..75f5aa2285 100644 --- a/parse.y +++ b/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