ruby-changes:58739
From: Nobuyoshi <ko1@a...>
Date: Tue, 12 Nov 2019 16:11:50 +0900 (JST)
Subject: [ruby-changes:58739] 2de3feab44 (master): Get rid of `__` prefix which is presereved by C standard
https://git.ruby-lang.org/ruby.git/commit/?id=2de3feab44 From 2de3feab44c928c30f35a4a3a445b4fdfc225024 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 12 Nov 2019 00:08:39 +0900 Subject: Get rid of `__` prefix which is presereved by C standard diff --git a/compile.c b/compile.c index e0b8505..8c83903 100644 --- a/compile.c +++ b/compile.c @@ -6902,7 +6902,7 @@ compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, in https://github.com/ruby/ruby/blob/trunk/compile.c#L6902 if (bf == NULL) { if (strcmp("inline!", builtin_func) == 0) { 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; args_node = NULL; goto retry; diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb index 8f4d5df..7d06b12 100644 --- a/tool/mk_builtin_loader.rb +++ b/tool/mk_builtin_loader.rb @@ -29,7 +29,7 @@ def collect_builtin base, iseq_ary, bs, inlines https://github.com/ruby/ruby/blob/trunk/tool/mk_builtin_loader.rb#L29 raise "1st argument should be string literal" unless prev_insn[0] == :putstring text = prev_insn[1] - func_name = "__builtin_inline#{inlines.size}" + func_name = "rb_compiled_inline#{inlines.size}" inlines << [func_name, [lineno, text, params]] argc -= 1 end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/