1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/ruby.h (rb_type): forward declaration to suppress a

warning.  a patch from Naohisa Goto at [ruby-dev:39350]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-18 15:02:21 +00:00
parent 06e52ba57b
commit 21367ae077
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sat Sep 19 00:02:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/ruby.h (rb_type): forward declaration to suppress a
warning. a patch from Naohisa Goto at [ruby-dev:39350]
Fri Sep 18 23:59:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (GlobPathValue): adjust return types. based on a patch

View file

@ -384,6 +384,7 @@ enum ruby_value_type {
#define BUILTIN_TYPE(x) (int)(((struct RBasic*)(x))->flags & T_MASK)
static inline int rb_type(VALUE obj);
#define TYPE(x) rb_type((VALUE)(x))
#define RB_GC_GUARD(v) (*(volatile VALUE *)&(v))