зеркало из https://github.com/github/ruby.git
* compile.c (iseq_compile_each): used more appropriate construct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5004e33f8d
Коммит
e5df8fd261
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Jul 31 11:48:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* compile.c (iseq_compile_each): used more appropriate construct.
|
||||||
|
|
||||||
Fri Jul 31 10:54:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Jul 31 10:54:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (literal_concat_gen): reduced unnecessary node at string
|
* parse.y (literal_concat_gen): reduced unnecessary node at string
|
||||||
|
|
|
@ -4188,10 +4188,9 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
|
||||||
case NODE_RETURN:{
|
case NODE_RETURN:{
|
||||||
rb_iseq_t *is = iseq;
|
rb_iseq_t *is = iseq;
|
||||||
|
|
||||||
while (is) {
|
if (is) {
|
||||||
if (is->type == ISEQ_TYPE_TOP || is->type == ISEQ_TYPE_CLASS) {
|
if (is->type == ISEQ_TYPE_TOP || is->type == ISEQ_TYPE_CLASS) {
|
||||||
COMPILE_ERROR((ERROR_ARGS "Invalid return"));
|
COMPILE_ERROR((ERROR_ARGS "Invalid return"));
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LABEL *splabel = 0;
|
LABEL *splabel = 0;
|
||||||
|
@ -4219,7 +4218,6 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
|
||||||
ADD_INSN(ret, nd_line(node), pop);
|
ADD_INSN(ret, nd_line(node), pop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче