summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 13:29:16 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 13:29:16 (GMT)
commitdd5d029db026a106a16a307854790c8bec6434ba (patch)
tree29f1e68100d8614ed616823a5e9e0b8e888d6e94 /pack.c
parent49771dd308505856126c84285a7acbdaf3400aa0 (diff)
* compile.c (BUFSIZE): Unused macro removed.
* vm.c (BUFSIZE): Ditto. * pack.c (INT64toNUM): Ditto. (UINT64toNUM): Ditto. (BYTEWIDTH): Ditto. * time.c (lshift): Ditto. (UINT64toNUM): Ditto. (id_lshift): Unused variable removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/pack.c b/pack.c
index aae9cee..a93f7dd 100644
--- a/pack.c
+++ b/pack.c
@@ -70,14 +70,6 @@ static const char endstr[] = "sSiIlLqQ";
# define NATINT_LEN(type,len) ((int)sizeof(type))
#endif
-#if SIZEOF_LONG == 8
-# define INT64toNUM(x) LONG2NUM(x)
-# define UINT64toNUM(x) ULONG2NUM(x)
-#elif defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 8
-# define INT64toNUM(x) LL2NUM(x)
-# define UINT64toNUM(x) ULL2NUM(x)
-#endif
-
#define define_swapx(x, xtype) \
static xtype \
TOKEN_PASTE(swap,x)(xtype z) \
@@ -1899,8 +1891,6 @@ pack_unpack(VALUE str, VALUE fmt)
return ary;
}
-#define BYTEWIDTH 8
-
int
rb_uv_to_utf8(char buf[6], unsigned long uv)
{