ruby-changes:42766
From: akr <ko1@a...>
Date: Sat, 30 Apr 2016 17:15:35 +0900 (JST)
Subject: [ruby-changes:42766] akr:r54840 (trunk): Define Integer#GMP_VERSION.
akr 2016-04-30 18:12:11 +0900 (Sat, 30 Apr 2016) New Revision: 54840 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54840 Log: Define Integer#GMP_VERSION. * bignum.c (Init_Bignum): Define Integer#GMP_VERSION. Modified files: trunk/ChangeLog trunk/bignum.c Index: ChangeLog =================================================================== --- ChangeLog (revision 54839) +++ ChangeLog (revision 54840) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Apr 30 18:11:44 2016 Tanaka Akira <akr@f...> + + * bignum.c (Init_Bignum): Define Integer#GMP_VERSION. + Sat Apr 30 16:58:18 2016 Tanaka Akira <akr@f...> * numeric.c (int_remainder): Define Integer#remainder. Index: bignum.c =================================================================== --- bignum.c (revision 54839) +++ bignum.c (revision 54840) @@ -6890,6 +6890,7 @@ Init_Bignum(void) https://github.com/ruby/ruby/blob/trunk/bignum.c#L6890 #ifdef USE_GMP /* The version of loaded GMP. */ rb_define_const(rb_cBignum, "GMP_VERSION", rb_sprintf("GMP %s", gmp_version)); + rb_define_const(rb_cInteger, "GMP_VERSION", rb_sprintf("GMP %s", gmp_version)); #endif power_cache_init(); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/