Get rid of __ prefix which is presereved by C standard

This commit is contained in:
Nobuyoshi Nakada 2019-11-12 00:08:39 +09:00
parent 7c22898a3a
commit 2de3feab44
No known key found for this signature in database
GPG Key ID: 4BC7D6DF58D8DF60
2 changed files with 2 additions and 2 deletions

View File

@ -6902,7 +6902,7 @@ compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, in
if (bf == NULL) { if (bf == NULL) {
if (strcmp("inline!", builtin_func) == 0) { if (strcmp("inline!", builtin_func) == 0) {
int inline_index = GET_VM()->builtin_inline_index++; int inline_index = GET_VM()->builtin_inline_index++;
snprintf(inline_func, 0x20, "__builtin_inline%d", inline_index); snprintf(inline_func, 0x20, "rb_compiled_inline%d", inline_index);
builtin_func = inline_func; builtin_func = inline_func;
args_node = NULL; args_node = NULL;
goto retry; goto retry;

View File

@ -29,7 +29,7 @@ def collect_builtin base, iseq_ary, bs, inlines
raise "1st argument should be string literal" unless prev_insn[0] == :putstring raise "1st argument should be string literal" unless prev_insn[0] == :putstring
text = prev_insn[1] text = prev_insn[1]
func_name = "__builtin_inline#{inlines.size}" func_name = "rb_compiled_inline#{inlines.size}"
inlines << [func_name, [lineno, text, params]] inlines << [func_name, [lineno, text, params]]
argc -= 1 argc -= 1
end end