summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-14 14:14:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-14 14:14:51 +0000
commit99e52bcd8edbef353c17c82346c8061b1f0e544c (patch)
tree5b611fe0c7cf6a5ff8ae4843a209d5dea355a258
parent269856a4a168d069efb23d7094109fd1165b5b17 (diff)
parse.y: ripper no longer uses rb_discard_node
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index ecc94d4d04..1f36b2e51e 100644
--- a/parse.y
+++ b/parse.y
@@ -306,11 +306,13 @@ static int parser_yyerror(struct parser_params*, const YYLTYPE *yylloc, const ch
static enum yytokentype yylex(YYSTYPE*, YYLTYPE*, struct parser_params*);
+#ifndef RIPPER
static inline void
rb_discard_node(struct parser_params *p, NODE *n)
{
rb_ast_delete_node(p->ast, n);
}
+#endif
static inline VALUE
add_mark_object(struct parser_params *p, VALUE obj)