* 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
4
struct.c
4
struct.c
@ -325,14 +325,14 @@ setup_struct(VALUE nstr, VALUE members)
|
|||||||
len = RARRAY_LEN(members);
|
len = RARRAY_LEN(members);
|
||||||
for (i=0; i< len; i++) {
|
for (i=0; i< len; i++) {
|
||||||
VALUE sym = RARRAY_AREF(members, i);
|
VALUE sym = RARRAY_AREF(members, i);
|
||||||
ID id = SYM2ID(sym);
|
ID id = SYM2ID(sym);
|
||||||
VALUE off = LONG2NUM(i);
|
VALUE off = LONG2NUM(i);
|
||||||
|
|
||||||
if (i < N_REF_FUNC) {
|
if (i < N_REF_FUNC) {
|
||||||
rb_define_method_id(nstr, id, ref_func[i], 0);
|
rb_define_method_id(nstr, id, ref_func[i], 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
define_aref_method(nstr, sym, off);
|
define_aref_method(nstr, sym, off);
|
||||||
}
|
}
|
||||||
define_aset_method(nstr, ID2SYM(rb_id_attrset(id)), off);
|
define_aset_method(nstr, ID2SYM(rb_id_attrset(id)), off);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user