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

ruby-changes:31719

From: mrkn <ko1@a...>
Date: Fri, 22 Nov 2013 17:06:06 +0900 (JST)
Subject: [ruby-changes:31719] mrkn:r43798 (trunk): * ext/bigdecimal/bigdecimal.c (BigDecimal_data_type):

mrkn	2013-11-22 17:05:58 +0900 (Fri, 22 Nov 2013)

  New Revision: 43798

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43798

  Log:
    * ext/bigdecimal/bigdecimal.c (BigDecimal_data_type):
      Use RUBY_TYPED_FREE_IMMEDIATELY only if it is available.

  Modified files:
    trunk/ChangeLog
    trunk/ext/bigdecimal/bigdecimal.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43797)
+++ ChangeLog	(revision 43798)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Nov 22 17:04:00 2013  Kenta Murata  <mrkn@m...>
+
+	* ext/bigdecimal/bigdecimal.c (BigDecimal_data_type):
+	  Use RUBY_TYPED_FREE_IMMEDIATELY only if it is available.
+
 Fri Nov 22 16:49:00 2013  Kenta Murata  <mrkn@m...>
 
 	* ext/bigdecimal/bigdecimal.c (BigDecimal_power): Round the result value.
Index: ext/bigdecimal/bigdecimal.c
===================================================================
--- ext/bigdecimal/bigdecimal.c	(revision 43797)
+++ ext/bigdecimal/bigdecimal.c	(revision 43798)
@@ -146,7 +146,9 @@ BigDecimal_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L146
 static const rb_data_type_t BigDecimal_data_type = {
     "BigDecimal",
     { 0, BigDecimal_delete, BigDecimal_memsize, },
+#ifdef RUBY_TYPED_FREE_IMMEDIATELY
     NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY
+#endif
 };
 
 static inline int

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

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