From dc8afd385de88dfc77ed9d246f9664b87420eb03 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 12 Dec 2018 11:06:47 +0000 Subject: complex.c: rb_complex_new_polar * complex.c (rb_complex_new_polar): renamed with _new to clarify that it creates a new instance, but is not an instance method. * complex.c (rb_complex_polar): deprecated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 61e930da56..f3212aef09 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -188,7 +188,8 @@ VALUE rb_complex_raw(VALUE, VALUE); VALUE rb_complex_new(VALUE, VALUE); #define rb_complex_new1(x) rb_complex_new((x), INT2FIX(0)) #define rb_complex_new2(x,y) rb_complex_new((x), (y)) -VALUE rb_complex_polar(VALUE, VALUE); +VALUE rb_complex_new_polar(VALUE abs, VALUE arg); +DEPRECATED_BY(rb_complex_new_polar, VALUE rb_complex_polar(VALUE abs, VALUE arg)); VALUE rb_Complex(VALUE, VALUE); #define rb_Complex1(x) rb_Complex((x), INT2FIX(0)) #define rb_Complex2(x,y) rb_Complex((x), (y)) -- cgit v1.2.3