diff options
author | yui-knk <spiketeika@gmail.com> | 2023-05-24 17:24:41 +0900 |
---|---|---|
committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-05-24 20:54:48 +0900 |
commit | 5f65e8c5d5b625462121e01cc15e88be5729b60c (patch) | |
tree | c3ad3c84e88ed3e637e8971ed946089e0a9b0147 /parse.y | |
parent | d8da563f9e720271707698bb8764a0f147244887 (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 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1340,7 +1340,7 @@ static int looking_at_eol_p(struct parser_params *p); %printer { #ifndef RIPPER if ($$) { - rb_parser_printf(p, "%s", rb_node_name(nd_type($$))); + rb_parser_printf(p, "%s", ruby_node_name(nd_type($$))); } #else #endif @@ -11078,7 +11078,7 @@ symbol_append(struct parser_params *p, NODE *symbols, NODE *symbol) RB_OBJ_WRITTEN(p->ast, Qnil, symbol->nd_lit = rb_str_intern(symbol->nd_lit)); break; default: - compile_error(p, "unexpected node as symbol: %s", rb_node_name(type)); + compile_error(p, "unexpected node as symbol: %s", ruby_node_name(type)); } return list_append(p, symbols, symbol); } |