ruby-changes:29673
From: mrkn <ko1@a...>
Date: Mon, 1 Jul 2013 20:46:28 +0900 (JST)
Subject: [ruby-changes:29673] mrkn:r41725 (trunk): * ext/bigdecimal/bigdecimal.h (RB_UNUSED_VAR, UNREACHABLE):
mrkn 2013-07-01 20:46:15 +0900 (Mon, 01 Jul 2013) New Revision: 41725 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41725 Log: * ext/bigdecimal/bigdecimal.h (RB_UNUSED_VAR, UNREACHABLE): import macros from ruby.h for 1.9.3. [Bug #8588] [ruby-core:55730] * ext/bigdecimal/bigdecimal.gemspec: Bump version to 1.2.1. Modified files: trunk/ChangeLog trunk/ext/bigdecimal/bigdecimal.gemspec trunk/ext/bigdecimal/bigdecimal.h Index: ChangeLog =================================================================== --- ChangeLog (revision 41724) +++ ChangeLog (revision 41725) @@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Jul 1 20:22:00 2013 Kenta Murata <mrkn@c...> + + * ext/bigdecimal/bigdecimal.h (RB_UNUSED_VAR, UNREACHABLE): + import macros from ruby.h for 1.9.3. + [Bug #8588] [ruby-core:55730] + + * ext/bigdecimal/bigdecimal.gemspec: Bump version to 1.2.1. + Mon Jul 1 20:03:39 2013 Tanaka Akira <akr@f...> * ext/socket/ipsocket.c (init_inetsock_internal): Use an address Index: ext/bigdecimal/bigdecimal.gemspec =================================================================== --- ext/bigdecimal/bigdecimal.gemspec (revision 41724) +++ ext/bigdecimal/bigdecimal.gemspec (revision 41725) @@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.gemspec#L1 # -*- ruby -*- -_VERSION = "1.2.0" +_VERSION = "1.2.1" Gem::Specification.new do |s| s.name = "bigdecimal" Index: ext/bigdecimal/bigdecimal.h =================================================================== --- ext/bigdecimal/bigdecimal.h (revision 41724) +++ ext/bigdecimal/bigdecimal.h (revision 41725) @@ -19,6 +19,18 @@ https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.h#L19 #include "ruby/ruby.h" #include <float.h> +#ifndef RB_UNUSED_VAR +# ifdef __GNUC__ +# define RB_UNUSED_VAR(x) x __attribute__ ((unused)) +# else +# define RB_UNUSED_VAR(x) x +# endif +#endif + +#ifndef UNREACHABLE +# define UNREACHABLE /* unreachable */ +#endif + #undef BDIGIT #undef SIZEOF_BDIGITS #undef BDIGIT_DBL -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/