summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-29 08:55:17 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-29 08:55:17 +0000
commit3e85e584117f21b7d31e56274da4eb8585a39a9a (patch)
tree7fedb8546930c9c392fbb8b4c1389abd4d489921
parentecfc868bdb5e43cdb585767006e9df2de575eed2 (diff)
downloadruby-3e85e584117f21b7d31e56274da4eb8585a39a9a.tar.gz
* ext/bigdecimal/bigdecimal.c (BIGDECIMAL_ENABLE_VPRINT):
VPrint is usually disabled. It's only used in debugging. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/bigdecimal/bigdecimal.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a5628e677..b38c831c7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 29 17:53:02 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BIGDECIMAL_ENABLE_VPRINT):
+ VPrint is usually disabled. It's only used in debugging.
+
Wed Sep 29 17:41:34 2010 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/bigdecimal.c (BigDecimal_save_limit):
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 9ed8a562a3..53fb678d12 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -14,6 +14,9 @@
*/
/* #define BIGDECIMAL_DEBUG 1 */
+#ifdef BIGDECIMAL_DEBUG
+# define BIGDECIMAL_ENABLE_VPRINT 1
+#endif
#include "bigdecimal.h"
#include <ctype.h>
@@ -3812,6 +3815,7 @@ Exit:
return (int)val;
}
+#ifdef BIGDECIMAL_ENABLE_VPRINT
/*
* cntl_chr ... ASCIIZ Character, print control characters
* Available control codes:
@@ -3913,6 +3917,7 @@ VPrint(FILE *fp, const char *cntl_chr, Real *a)
}
return (int)nc;
}
+#endif /* BIGDECIMAL_ENABLE_VPRINT */
static void
VpFormatSt(char *psz, size_t fFmt)