summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-05-24 17:24:41 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-05-24 20:54:48 +0900
commit5f65e8c5d5b625462121e01cc15e88be5729b60c (patch)
treec3ad3c84e88ed3e637e8971ed946089e0a9b0147 /ast.c
parentd8da563f9e720271707698bb8764a0f147244887 (diff)
Rename `rb_node_name` to the original name
98637d421dbe8bcf86cc2effae5e26bb96a6a4da changes the name of the function. However this function is exported as global, then change the name to origin one for keeping compatibility.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7852
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast.c b/ast.c
index 1cb14bc51f..d60e5d3fcf 100644
--- a/ast.c
+++ b/ast.c
@@ -279,7 +279,7 @@ rb_ast_node_alloc(VALUE klass)
static const char*
node_type_to_str(const NODE *node)
{
- return (rb_node_name(nd_type(node)) + rb_strlen_lit("NODE_"));
+ return (ruby_node_name(nd_type(node)) + rb_strlen_lit("NODE_"));
}
static VALUE
@@ -675,7 +675,7 @@ node_children(rb_ast_t *ast, const NODE *node)
break;
}
- rb_bug("node_children: unknown node: %s", rb_node_name(type));
+ rb_bug("node_children: unknown node: %s", ruby_node_name(type));
}
static VALUE