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 | b0cc7e80a6471c5a38e327a6f20a38ad8f406d39 (patch) | |
tree | 48b6aa490841427277d779379813080fd49e38f3 /ruby.h | |
parent | 97101e1a65cdea02e26cfa0e752d62bb87f6b162 (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/branches/ruby_1_6@1286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r-- | ruby.h | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -542,18 +542,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 @@ -570,7 +559,7 @@ rb_class_of(obj) return RBASIC(obj)->klass; } -extern INLINE int +static inline int #if defined(__cplusplus) rb_type(VALUE obj) #else @@ -587,7 +576,7 @@ rb_type(obj) return BUILTIN_TYPE(obj); } -extern INLINE int +static inline int #if defined(__cplusplus) rb_special_const_p(VALUE obj) #else @@ -598,9 +587,6 @@ rb_special_const_p(obj) if (SPECIAL_CONST_P(obj)) return Qtrue; return Qfalse; } -#endif - -#undef INLINE #include "intern.h" |