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 /compile.c | |
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 'compile.c')
-rw-r--r-- | compile.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -404,7 +404,7 @@ do { \ if (error_type != (ndtype)) { \ COMPILE_ERROR(ERROR_ARGS_AT(error_node) \ prefix ": " #ndtype " is expected, but %s", \ - rb_node_name(error_type)); \ + ruby_node_name(error_type)); \ return errval; \ } \ } while (0) @@ -420,7 +420,7 @@ do { \ do { \ const NODE *error_node = (node); \ COMPILE_ERROR(ERROR_ARGS_AT(error_node) prefix ": unknown node (%s)", \ - rb_node_name(nd_type(error_node))); \ + ruby_node_name(nd_type(error_node))); \ return errval; \ } while (0) @@ -4302,12 +4302,12 @@ compile_branch_condition(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *co case NODE_STR: case NODE_ZLIST: case NODE_LAMBDA: - /* printf("useless condition eliminate (%s)\n", rb_node_name(nd_type(cond))); */ + /* printf("useless condition eliminate (%s)\n", ruby_node_name(nd_type(cond))); */ ADD_INSNL(ret, cond, jump, then_label); return COMPILE_OK; case NODE_FALSE: case NODE_NIL: - /* printf("useless condition eliminate (%s)\n", rb_node_name(nd_type(cond))); */ + /* printf("useless condition eliminate (%s)\n", ruby_node_name(nd_type(cond))); */ ADD_INSNL(ret, cond, jump, else_label); return COMPILE_OK; case NODE_LIST: @@ -8910,7 +8910,7 @@ compile_op_cdecl(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node break; default: COMPILE_ERROR(ERROR_ARGS "%s: invalid node in NODE_OP_CDECL", - rb_node_name(nd_type(node->nd_head))); + ruby_node_name(nd_type(node->nd_head))); return COMPILE_NG; } mid = node->nd_head->nd_mid; |