mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
inline fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4c09e12b04
commit
3ea9ef023b
4 changed files with 14 additions and 14 deletions
20
ruby.h
20
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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue