From aa6ca26e8bdb71795582d9f0d511cf370f9fe585 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 11 Nov 1999 04:08:26 +0000 Subject: [PATCH] 19991111 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 10 ++++------ regex.c | 7 ------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/hash.c b/hash.c index a0d11c06dd..b06b3535ea 100644 --- a/hash.c +++ b/hash.c @@ -79,19 +79,17 @@ static int rb_any_cmp(a, b) VALUE a, b; { + VALUE args[2]; if (FIXNUM_P(a)) { if (FIXNUM_P(b)) return a != b; } else if (TYPE(a) == T_STRING) { if (TYPE(b) == T_STRING) return rb_str_cmp(a, b); } - else { - VALUE args[2]; - args[0] = a; - args[1] = b; - return !rb_with_disable_interrupt(eql, (VALUE)args); - } + args[0] = a; + args[1] = b; + return !rb_with_disable_interrupt(eql, (VALUE)args); } static int diff --git a/regex.c b/regex.c index 8634dfe90c..9988be2d2a 100644 --- a/regex.c +++ b/regex.c @@ -48,13 +48,6 @@ # include #endif -#if defined(STDC_HEADERS) -# include -#else -/* We need this for `regex.h', and perhaps for the Emacs include files. */ -# include -#endif - #ifndef __STDC__ # define volatile #endif