summaryrefslogtreecommitdiffstats
path: root/ruby.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-01-10 10:07:31 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-01-10 10:07:31 +0000
commit3b9557fda087643e155432c5055aea1f76c54fb6 (patch)
treef436ade55218d83f2154f34d7f91f7e5403ebc72 /ruby.h
parent6e525927d9bf89145236db65ad4795f9fc7b42a6 (diff)
downloadruby-3b9557fda087643e155432c5055aea1f76c54fb6.tar.gz
ruby-3b9557fda087643e155432c5055aea1f76c54fb6.tar.xz
ruby-3b9557fda087643e155432c5055aea1f76c54fb6.zip
inline fix
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/ruby.h b/ruby.h
index f00f39b93..f47aca075 100644
--- a/ruby.h
+++ b/ruby.h
@@ -539,15 +539,14 @@ EXTERN VALUE rb_eNameError;
EXTERN VALUE rb_eSyntaxError;
EXTERN VALUE rb_eLoadError;
-extern INLINE VALUE rb_class_of _((VALUE));
-extern INLINE int rb_type _((VALUE));
-extern INLINE int rb_special_const_p _((VALUE));
+extern inline VALUE rb_class_of _((VALUE));
+extern inline int rb_type _((VALUE));
+extern inline int rb_special_const_p _((VALUE));
-#if defined(HAVE_INLINE) || defined(RUBY_NO_INLINE)
#ifndef RUBY_NO_INLINE
-extern
+extern inline
#endif
-INLINE VALUE
+VALUE
rb_class_of(VALUE obj)
{
if (FIXNUM_P(obj)) return rb_cFixnum;
@@ -560,9 +559,9 @@ rb_class_of(VALUE obj)
}
#ifndef RUBY_NO_INLINE
-extern
+extern inline
#endif
-INLINE int
+int
rb_type(VALUE obj)
{
if (FIXNUM_P(obj)) return T_FIXNUM;
@@ -575,15 +574,14 @@ rb_type(VALUE obj)
}
#ifndef RUBY_NO_INLINE
-extern
+extern inline
#endif
-INLINE int
+int
rb_special_const_p(VALUE obj)
{
if (SPECIAL_CONST_P(obj)) return Qtrue;
return Qfalse;
}
-#endif
#include "intern.h"