mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/stringio/stringio.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
76cc9bf0cf
commit
80fb9c7b4e
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Mar 30 00:24:53 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/stringio/stringio.c: parenthesize macro arguments.
|
||||
|
||||
Tue Mar 29 21:51:31 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* object.c (rb_String): Kernel#String should call to_str before to_s.
|
||||
|
|
|
@ -30,7 +30,7 @@ struct StringIO {
|
|||
|
||||
static void strio_init(int, VALUE *, struct StringIO *);
|
||||
|
||||
#define IS_STRIO(obj) (rb_typeddata_is_kind_of(obj, &strio_data_type))
|
||||
#define IS_STRIO(obj) (rb_typeddata_is_kind_of((obj), &strio_data_type))
|
||||
#define error_inval(msg) (errno = EINVAL, rb_sys_fail(msg))
|
||||
|
||||
static struct StringIO *
|
||||
|
@ -80,7 +80,7 @@ static const rb_data_type_t strio_data_type = {
|
|||
},
|
||||
};
|
||||
|
||||
#define check_strio(self) ((struct StringIO*)rb_check_typeddata(self, &strio_data_type))
|
||||
#define check_strio(self) ((struct StringIO*)rb_check_typeddata((self), &strio_data_type))
|
||||
|
||||
static struct StringIO*
|
||||
get_strio(VALUE self)
|
||||
|
|
Loading…
Reference in a new issue