ruby-changes:60634
From: Nobuyoshi <ko1@a...>
Date: Fri, 3 Apr 2020 01:21:45 +0900 (JST)
Subject: [ruby-changes:60634] 2544bf9452 (master): New macro `NEW_RIPPER` instead of `NEW_CDECL`
https://git.ruby-lang.org/ruby.git/commit/?id=2544bf9452 From 2544bf9452b5208a450509aa219bc33aeffbd292 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 3 Apr 2020 01:04:30 +0900 Subject: New macro `NEW_RIPPER` instead of `NEW_CDECL` diff --git a/parse.y b/parse.y index bbe460b..75f5aa2 100644 --- a/parse.y +++ b/parse.y @@ -559,6 +559,7 @@ static void check_literal_when(struct parser_params *p, NODE *args, const YYLTYP https://github.com/ruby/ruby/blob/trunk/parse.y#L559 #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) https://github.com/ruby/ruby/blob/trunk/parse.y#L569 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/