ruby-changes:17359
From: mrkn <ko1@a...>
Date: Wed, 29 Sep 2010 17:55:27 +0900 (JST)
Subject: [ruby-changes:17359] Ruby:r29364 (trunk): * ext/bigdecimal/bigdecimal.c (BIGDECIMAL_ENABLE_VPRINT):
mrkn 2010-09-29 17:55:17 +0900 (Wed, 29 Sep 2010) New Revision: 29364 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29364 Log: * ext/bigdecimal/bigdecimal.c (BIGDECIMAL_ENABLE_VPRINT): VPrint is usually disabled. It's only used in debugging. Modified files: trunk/ChangeLog trunk/ext/bigdecimal/bigdecimal.c Index: ChangeLog =================================================================== --- ChangeLog (revision 29363) +++ ChangeLog (revision 29364) @@ -1,3 +1,8 @@ +Wed Sep 29 17:53:02 2010 Kenta Murata <mrkn@m...> + + * 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@m...> * ext/bigdecimal/bigdecimal.c (BigDecimal_save_limit): Index: ext/bigdecimal/bigdecimal.c =================================================================== --- ext/bigdecimal/bigdecimal.c (revision 29363) +++ ext/bigdecimal/bigdecimal.c (revision 29364) @@ -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 @@ return (int)val; } +#ifdef BIGDECIMAL_ENABLE_VPRINT /* * cntl_chr ... ASCIIZ Character, print control characters * Available control codes: @@ -3913,6 +3917,7 @@ } return (int)nc; } +#endif /* BIGDECIMAL_ENABLE_VPRINT */ static void VpFormatSt(char *psz, size_t fFmt) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/