ruby-changes:63264
From: Nobuyoshi <ko1@a...>
Date: Sat, 3 Oct 2020 12:20:53 +0900 (JST)
Subject: [ruby-changes:63264] fced98f464 (master): Added the room for builtin inline prefix
https://git.ruby-lang.org/ruby.git/commit/?id=fced98f464 From fced98f46484e1c1b50369731c08c20182168ea3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 3 Oct 2020 12:19:56 +0900 Subject: Added the room for builtin inline prefix diff --git a/compile.c b/compile.c index c378c17..2672b3b 100644 --- a/compile.c +++ b/compile.c @@ -7294,7 +7294,8 @@ compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, co https://github.com/ruby/ruby/blob/trunk/compile.c#L7294 return COMPILE_NG; } else { - char inline_func[DECIMAL_SIZE_OF_BITS(sizeof(int) * CHAR_BIT) + 1]; +# define BUILTIN_INLINE_PREFIX "_bi" + char inline_func[DECIMAL_SIZE_OF_BITS(sizeof(int) * CHAR_BIT) + sizeof(BUILTIN_INLINE_PREFIX)]; bool cconst = false; retry:; const struct rb_builtin_function *bf = iseq_builtin_function_lookup(iseq, builtin_func); @@ -7329,7 +7330,7 @@ compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, co https://github.com/ruby/ruby/blob/trunk/compile.c#L7330 rb_bug("builtin inline function index overflow:%s", builtin_func); } int inline_index = GET_VM()->builtin_inline_index++; - snprintf(inline_func, sizeof(inline_func), "_bi%d", inline_index); + snprintf(inline_func, sizeof(inline_func), BUILTIN_INLINE_PREFIX "%d", inline_index); builtin_func = inline_func; args_node = NULL; goto retry; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/