ruby-changes:64293
From: Kenta <ko1@a...>
Date: Sat, 19 Dec 2020 02:29:52 +0900 (JST)
Subject: [ruby-changes:64293] d5ab8e8562 (master): [bigdecimal] Use rb_undef_alloc_func to undefine allocate
https://git.ruby-lang.org/ruby.git/commit/?id=d5ab8e8562 From d5ab8e8562ec15979a32365fe4bf85be9e6334c0 Mon Sep 17 00:00:00 2001 From: Kenta Murata <mrkn@m...> Date: Sat, 19 Dec 2020 02:29:18 +0900 Subject: [bigdecimal] Use rb_undef_alloc_func to undefine allocate diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index bc7fcc6..2b3c0bb 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -3367,7 +3367,7 @@ Init_bigdecimal(void) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L3367 rb_define_global_function("BigDecimal", f_BigDecimal, -1); /* Class methods */ - rb_undef_method(CLASS_OF(rb_cBigDecimal), "allocate"); + rb_undef_alloc_func(rb_cBigDecimal); rb_undef_method(CLASS_OF(rb_cBigDecimal), "new"); rb_define_singleton_method(rb_cBigDecimal, "interpret_loosely", BigDecimal_s_interpret_loosely, 1); rb_define_singleton_method(rb_cBigDecimal, "mode", BigDecimal_mode, -1); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/