From b4974e71dcb32d430d7d686c5de247218991ec6c Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 13 Feb 2015 07:07:39 +0000 Subject: util.c: hexdigit * util.c (hexdigit): extract identical constants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- sprintf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sprintf.c') diff --git a/sprintf.c b/sprintf.c index d91d850c9d..376285476d 100644 --- a/sprintf.c +++ b/sprintf.c @@ -1252,6 +1252,8 @@ fmt_setup(char *buf, size_t size, int c, int flags, int width, int prec) #ifdef RUBY_PRI_VALUE_MARK # define PRI_EXTRA_MARK RUBY_PRI_VALUE_MARK #endif +#define lower_hexdigits (ruby_hexdigits+0) +#define upper_hexdigits (ruby_hexdigits+16) #include "vsnprintf.c" typedef struct { -- cgit v1.2.3