mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* expand tabs.
This commit is contained in:
parent
00dc0dae0d
commit
e2f987e654
1 changed files with 5 additions and 5 deletions
10
class.c
10
class.c
|
@ -1884,7 +1884,7 @@ rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, V
|
||||||
for (; i < required; i++) {
|
for (; i < required; i++) {
|
||||||
VALUE keyword = ID2SYM(table[i]);
|
VALUE keyword = ID2SYM(table[i]);
|
||||||
if (keyword_hash) {
|
if (keyword_hash) {
|
||||||
if (extract_kwarg(keyword, values[i])) {
|
if (extract_kwarg(keyword, values[i])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1898,7 +1898,7 @@ rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, V
|
||||||
j = i;
|
j = i;
|
||||||
if (optional && keyword_hash) {
|
if (optional && keyword_hash) {
|
||||||
for (i = 0; i < optional; i++) {
|
for (i = 0; i < optional; i++) {
|
||||||
if (extract_kwarg(ID2SYM(table[required+i]), values[required+i])) {
|
if (extract_kwarg(ID2SYM(table[required+i]), values[required+i])) {
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1909,9 +1909,9 @@ rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, V
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (values && !keyword_hash) {
|
if (values && !keyword_hash) {
|
||||||
for (i = 0; i < required + optional; i++) {
|
for (i = 0; i < required + optional; i++) {
|
||||||
values[i] = Qundef;
|
values[i] = Qundef;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return j;
|
return j;
|
||||||
#undef extract_kwarg
|
#undef extract_kwarg
|
||||||
|
|
Loading…
Add table
Reference in a new issue