diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-13 07:07:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-13 07:07:39 +0000 |
commit | b4974e71dcb32d430d7d686c5de247218991ec6c (patch) | |
tree | 8a2416811576cb5d2d48626f1512394f272e1882 /sprintf.c | |
parent | f5219fee6307461c7ead4358290958679d9d0d38 (diff) | |
download | ruby-b4974e71dcb32d430d7d686c5de247218991ec6c.tar.gz |
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
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |