Skip to content

Commit

Permalink
inline fix
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Jan 10, 2001
1 parent 4c09e12 commit 3ea9ef0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ rb_data_object_alloc(klass, datap, dmark, dfree)
extern st_table *rb_class_tbl;
VALUE *rb_gc_stack_start = 0;

static INLINE int
static inline int
is_pointer_to_heap(ptr)
void *ptr;
{
Expand Down
2 changes: 1 addition & 1 deletion pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ qpencode(str, from, len)
}
}

static INLINE int
static inline int
hex2num(c)
char c;
{
Expand Down
4 changes: 3 additions & 1 deletion parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -1849,6 +1849,8 @@ none : /* none */
#include "regex.h"
#include "util.h"

#define enc ruby_default_encoding

/* We remove any previous definition of `SIGN_EXTEND_CHAR',
since ours (we hope) works properly with all combinations of
machines, compilers, `char' and `unsigned char' argument types.
Expand Down Expand Up @@ -2045,7 +2047,7 @@ rb_compile_file(f, file, start)
return yycompile(strdup(f), start);
}

static INLINE int
static inline int
nextc()
{
int c;
Expand Down
20 changes: 9 additions & 11 deletions ruby.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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"

Expand Down

0 comments on commit 3ea9ef0

Please sign in to comment.