diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-27 07:10:58 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-27 07:10:58 +0000 |
commit | 6731d42dc563d8be7e332c7212d1091308d7f176 (patch) | |
tree | 48db04333ba63f89121ba05c2bcdc3e765af5343 /ruby.h | |
parent | 7c5000bc2cdb78d99a02fab1496ebdef31a0e9bd (diff) | |
download | ruby-6731d42dc563d8be7e332c7212d1091308d7f176.tar.gz ruby-6731d42dc563d8be7e332c7212d1091308d7f176.tar.xz ruby-6731d42dc563d8be7e332c7212d1091308d7f176.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@1286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r-- | ruby.h | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -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" |