mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* internal.h (RCLASS_SUPER): use descriptive variable name
* internal.h (RCLASS_SET_SUPER): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e8c6835faa
commit
97b825bdcf
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Jun 7 17:31:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
|
||||
|
||||
* internal.h (RCLASS_SUPER): use descriptive variable name
|
||||
* internal.h (RCLASS_SET_SUPER): ditto
|
||||
|
||||
Fri Jun 7 13:25:27 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ext/json/fbuffer/fbuffer.h (fbuffer_append_str): change the place of
|
||||
|
|
10
internal.h
10
internal.h
|
@ -74,16 +74,16 @@ struct rb_classext_struct {
|
|||
|
||||
#undef RCLASS_SUPER
|
||||
static inline VALUE
|
||||
RCLASS_SUPER(VALUE c)
|
||||
RCLASS_SUPER(VALUE klass)
|
||||
{
|
||||
return RCLASS_EXT(c)->super;
|
||||
return RCLASS_EXT(klass)->super;
|
||||
}
|
||||
|
||||
static inline VALUE
|
||||
RCLASS_SET_SUPER(VALUE a, VALUE b)
|
||||
RCLASS_SET_SUPER(VALUE klass, VALUE super)
|
||||
{
|
||||
OBJ_WRITE(a, &RCLASS_EXT(a)->super, b);
|
||||
return b;
|
||||
OBJ_WRITE(klass, &RCLASS_EXT(klass)->super, super);
|
||||
return super;
|
||||
}
|
||||
|
||||
struct vtm; /* defined by timev.h */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue