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

ruby-changes:62213

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 14 Jul 2020 16:16:52 +0900 (JST)
Subject: [ruby-changes:62213] e60cd14d85 (master): ON_DEBUG: delete unused macro

https://git.ruby-lang.org/ruby.git/commit/?id=e60cd14d85

From e60cd14d85b35c9e60485e640c08eebf539c1cfc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Mon, 8 Jun 2020 15:44:41 +0900
Subject: ON_DEBUG: delete unused macro

This is no longer used.

diff --git a/bignum.c b/bignum.c
index 310e731..ed9c65e 100644
--- a/bignum.c
+++ b/bignum.c
@@ -2914,30 +2914,6 @@ bary_divmod(BDIGIT *qds, size_t qn, BDIGIT *rds, size_t rn, const BDIGIT *xds, s https://github.com/ruby/ruby/blob/trunk/bignum.c#L2914
 # define BIGNUM_DEBUG (0+RUBY_DEBUG)
 #endif
 
-#if BIGNUM_DEBUG
-#define ON_DEBUG(x) do { x; } while (0)
-static void
-dump_bignum(VALUE x)
-{
-    long i;
-    printf("%c0x0", BIGNUM_SIGN(x) ? '+' : '-');
-    for (i = BIGNUM_LEN(x); i--; ) {
-        printf("_%0*"PRIxBDIGIT, SIZEOF_BDIGIT*2, BDIGITS(x)[i]);
-    }
-    printf(", len=%"PRIuSIZE, BIGNUM_LEN(x));
-    puts("");
-}
-
-static VALUE
-rb_big_dump(VALUE x)
-{
-    dump_bignum(x);
-    return x;
-}
-#else
-#define ON_DEBUG(x)
-#endif
-
 static int
 bigzero_p(VALUE x)
 {
-- 
cgit v0.10.2


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

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