mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f8f77d8423
commit
4484390f9b
1 changed files with 2 additions and 2 deletions
4
struct.c
4
struct.c
|
@ -325,14 +325,14 @@ setup_struct(VALUE nstr, VALUE members)
|
|||
len = RARRAY_LEN(members);
|
||||
for (i=0; i< len; i++) {
|
||||
VALUE sym = RARRAY_AREF(members, i);
|
||||
ID id = SYM2ID(sym);
|
||||
ID id = SYM2ID(sym);
|
||||
VALUE off = LONG2NUM(i);
|
||||
|
||||
if (i < N_REF_FUNC) {
|
||||
rb_define_method_id(nstr, id, ref_func[i], 0);
|
||||
}
|
||||
else {
|
||||
define_aref_method(nstr, sym, off);
|
||||
define_aref_method(nstr, sym, off);
|
||||
}
|
||||
define_aset_method(nstr, ID2SYM(rb_id_attrset(id)), off);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue