diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-01-05 04:41:21 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-01-05 04:41:21 +0000 |
commit | de7161526014b781468cea5d84411e23be945f79 (patch) | |
tree | ce7e90b3c16ce6246be9850c9b1ea1328992c0e7 /util.c | |
parent | a1d1b1516750c1047ceb7010f8f5ca34b358c7e3 (diff) | |
download | ruby-de7161526014b781468cea5d84411e23be945f79.tar.gz |
20000105
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -6,7 +6,7 @@ $Date$ created at: Fri Mar 10 17:22:34 JST 1995 - Copyright (C) 1993-1999 Yukihiro Matsumoto + Copyright (C) 1993-2000 Yukihiro Matsumoto ************************************************/ @@ -51,21 +51,11 @@ int rb_special_const_p(obj) VALUE obj; { - if (FIXNUM_P(obj)) return Qtrue; - if (obj == Qnil) return Qtrue; - if (obj == Qfalse) return Qtrue; - if (obj == Qtrue) return Qtrue; + if (SPECIAL_CONST_P(obj)) return Qtrue; return Qfalse; } -int -rb_test_false_or_nil(v) - VALUE v; -{ - return (v != Qnil) && (v != Qfalse); -} - #include "util.h" #ifndef HAVE_STRING_H char *strchr _((char*,char)); |