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 /pack.c | |
parent | f5219fee6307461c7ead4358290958679d9d0d38 (diff) |
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 'pack.c')
-rw-r--r-- | pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1204,7 +1204,7 @@ infected_str_new(const char *ptr, long len, VALUE str) static VALUE pack_unpack(VALUE str, VALUE fmt) { - static const char hexdigits[] = "0123456789abcdef"; +#define hexdigits ruby_hexdigits char *s, *send; char *p, *pend; VALUE ary; |