summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-27 07:10:58 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-27 07:10:58 +0000
commitb60a365763c4abce061a49c2e68b1105f81fe598 (patch)
tree48db04333ba63f89121ba05c2bcdc3e765af5343 /ruby.h
parent2559f0d90ddf45f6cbaadc69a7a2fd7a3bfbf8a0 (diff)
* eval.c (rb_mod_define_method): should have clear method cache.
* eval.c (rb_mod_define_method): should have raised exception for type error. * ruby.h: changed "extern INLINE" to "static inline". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/ruby.h b/ruby.h
index 2a875e008e..03c9b61f3d 100644
--- a/ruby.h
+++ b/ruby.h
@@ -541,18 +541,7 @@ EXTERN VALUE rb_eNameError;
EXTERN VALUE rb_eSyntaxError;
EXTERN VALUE rb_eLoadError;
-#ifdef INLINE_DEFINE
-#define INLINE
-#else
-#define INLINE inline
-#endif
-
-extern INLINE VALUE rb_class_of _((VALUE));
-extern INLINE int rb_type _((VALUE));
-extern INLINE int rb_special_const_p _((VALUE));
-
-#if !defined(NO_C_INLINE) || defined(INLINE_DEFINE)
-extern INLINE VALUE
+static inline VALUE
#if defined(__cplusplus)
rb_class_of(VALUE obj)
#else
@@ -569,7 +558,7 @@ rb_class_of(obj)
return RBASIC(obj)->klass;
}
-extern INLINE int
+static inline int
#if defined(__cplusplus)
rb_type(VALUE obj)
#else
@@ -586,7 +575,7 @@ rb_type(obj)
return BUILTIN_TYPE(obj);
}
-extern INLINE int
+static inline int
#if defined(__cplusplus)
rb_special_const_p(VALUE obj)
#else
@@ -597,9 +586,6 @@ rb_special_const_p(obj)
if (SPECIAL_CONST_P(obj)) return Qtrue;
return Qfalse;
}
-#endif
-
-#undef INLINE
#include "intern.h"