ruby-changes:73495
From: Nobuyoshi <ko1@a...>
Date: Fri, 9 Sep 2022 14:24:07 +0900 (JST)
Subject: [ruby-changes:73495] 2dcaeb75ff (master): Built-in function table sentinels do not need names
https://git.ruby-lang.org/ruby.git/commit/?id=2dcaeb75ff From 2dcaeb75ff0e0a2fbafc4df0df9d7be119235415 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 9 Sep 2022 11:51:11 +0900 Subject: Built-in function table sentinels do not need names --- builtin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin.h b/builtin.h index b827b28928..7ad52f44f4 100644 --- a/builtin.h +++ b/builtin.h @@ -17,7 +17,7 @@ struct rb_builtin_function { https://github.com/ruby/ruby/blob/trunk/builtin.h#L17 }; #define RB_BUILTIN_FUNCTION(_i, _name, _fname, _arity, _compiler) {\ - .name = #_name, \ + .name = _i < 0 ? NULL : #_name, \ .func_ptr = (void *)_fname, \ .argc = _arity, \ .index = _i, \ -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/