[前][次][番号順一覧][スレッド一覧]

ruby-changes:46300

From: hsbt <ko1@a...>
Date: Thu, 20 Apr 2017 17:21:30 +0900 (JST)
Subject: [ruby-changes:46300] hsbt:r58413 (trunk): Removed deprecated extensions of mathn.

hsbt	2017-04-20 17:21:24 +0900 (Thu, 20 Apr 2017)

  New Revision: 58413

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58413

  Log:
    Removed deprecated extensions of mathn.
    
      * ext/mathn/{complex,rational}: Removed from ruby core.
        [fix GH-1542][Feature #13334][ruby-core:80247]

  Removed files:
    trunk/ext/mathn/complex/complex.c
    trunk/ext/mathn/complex/extconf.rb
    trunk/ext/mathn/rational/extconf.rb
    trunk/ext/mathn/rational/rational.c
  Modified files:
    trunk/doc/maintainers.rdoc
    trunk/ext/Setup
    trunk/ext/Setup.nacl
    trunk/lib/mathn.rb
    trunk/test/test_extlibs.rb
    trunk/test/test_mathn.rb
Index: ext/mathn/rational/extconf.rb
===================================================================
--- ext/mathn/rational/extconf.rb	(revision 58412)
+++ ext/mathn/rational/extconf.rb	(nonexistent)
@@ -1,4 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/ext/mathn/rational/extconf.rb#L0
-# frozen_string_literal: false
-require "mkmf"
-
-create_makefile "mathn/rational"

Property changes on: ext/mathn/rational/extconf.rb
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-LF
\ No newline at end of property
Index: ext/mathn/rational/rational.c
===================================================================
--- ext/mathn/rational/rational.c	(revision 58412)
+++ ext/mathn/rational/rational.c	(nonexistent)
@@ -1,7 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/ext/mathn/rational/rational.c#L0
-extern void nurat_canonicalization(int);
-
-void
-Init_rational(void)
-{
-    nurat_canonicalization(1);
-}

Property changes on: ext/mathn/rational/rational.c
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-LF
\ No newline at end of property
Index: ext/mathn/complex/complex.c
===================================================================
--- ext/mathn/complex/complex.c	(revision 58412)
+++ ext/mathn/complex/complex.c	(nonexistent)
@@ -1,7 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/ext/mathn/complex/complex.c#L0
-extern void nucomp_canonicalization(int);
-
-void
-Init_complex(void)
-{
-    nucomp_canonicalization(1);
-}

Property changes on: ext/mathn/complex/complex.c
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-LF
\ No newline at end of property
Index: ext/mathn/complex/extconf.rb
===================================================================
--- ext/mathn/complex/extconf.rb	(revision 58412)
+++ ext/mathn/complex/extconf.rb	(nonexistent)
@@ -1,4 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/ext/mathn/complex/extconf.rb#L0
-# frozen_string_literal: false
-require "mkmf"
-
-create_makefile "mathn/complex"

Property changes on: ext/mathn/complex/extconf.rb
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-LF
\ No newline at end of property
Index: doc/maintainers.rdoc
===================================================================
--- doc/maintainers.rdoc	(revision 58412)
+++ doc/maintainers.rdoc	(revision 58413)
@@ -181,10 +181,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L181
   Nobuyuki Nakada (nobu)
 [ext/io/wait]
   Nobuyuki Nakada (nobu)
-[ext/mathn/complex]
-  Keiju ISHITSUKA (keiju)
-[ext/mathn/rational]
-  Keiju ISHITSUKA (keiju)
 [ext/nkf]
   NARUSE, Yui (narse)
 [ext/objspace]
Index: lib/mathn.rb
===================================================================
--- lib/mathn.rb	(revision 58412)
+++ lib/mathn.rb	(revision 58413)
@@ -46,9 +46,6 @@ require "cmath.rb" https://github.com/ruby/ruby/blob/trunk/lib/mathn.rb#L46
 require "matrix.rb"
 require "prime.rb"
 
-require "mathn/rational"
-require "mathn/complex"
-
 unless defined?(Math.exp!)
   Object.instance_eval{remove_const :Math}
   Math = CMath # :nodoc:
Index: ext/Setup.nacl
===================================================================
--- ext/Setup.nacl	(revision 58412)
+++ ext/Setup.nacl	(revision 58413)
@@ -25,8 +25,6 @@ https://github.com/ruby/ruby/blob/trunk/ext/Setup.nacl#L25
 # #json
 # json/generator
 # json/parser
-# mathn/complex
-# mathn/rational
 # nkf
 # objspace
 # #openssl
Index: ext/Setup
===================================================================
--- ext/Setup	(revision 58412)
+++ ext/Setup	(revision 58413)
@@ -23,8 +23,6 @@ https://github.com/ruby/ruby/blob/trunk/ext/Setup#L23
 #json
 #json/generator
 #json/parser
-#mathn/complex
-#mathn/rational
 #nkf
 #objspace
 #openssl
Index: test/test_extlibs.rb
===================================================================
--- test/test_extlibs.rb	(revision 58412)
+++ test/test_extlibs.rb	(revision 58413)
@@ -61,8 +61,6 @@ class TestExtLibs < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_extlibs.rb#L61
   check_existence "io/nonblock"
   check_existence "io/wait"
   check_existence "json"
-  check_existence "mathn/complex"
-  check_existence "mathn/rational"
   check_existence "nkf"
   check_existence "objspace"
   check_existence "openssl", "this may be false positive, but should assert because rubygems requires this"
Index: test/test_mathn.rb
===================================================================
--- test/test_mathn.rb	(revision 58412)
+++ test/test_mathn.rb	(revision 58413)
@@ -7,8 +7,6 @@ class TestMathn < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_mathn.rb#L7
     stderr = $VERBOSE ? ["lib/mathn.rb is deprecated"] : []
     assert_in_out_err ['-r', 'mathn', '-e', 'a=1**2;!a'], "", [], stderr, '[ruby-core:25740]'
     assert_in_out_err ['-r', 'mathn', '-e', 'a=(1 << 126)**2;!a'], "", [], stderr, '[ruby-core:25740]'
-    assert_in_out_err ['-r', 'mathn/complex', '-e', 'a=Complex(0,1)**4;!a'], "", [], [], '[ruby-core:44170]'
-    assert_in_out_err ['-r', 'mathn/complex', '-e', 'a=Complex(0,1)**5;!a'], "", [], [], '[ruby-core:44170]'
   end
 
   def test_quo

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]