Skip to content

Commit

Permalink
* eval.c (block_pass): return from block jumps directory to
Browse files Browse the repository at this point in the history
  block invoker.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Jan 29, 2001
1 parent 2f0faf6 commit 35e5ddf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Mon Jan 29 14:25:39 2001 Yukihiro Matsumoto <[email protected]>

* eval.c (block_pass): return from block jumps directory to
block invoker.

Mon Jan 29 01:40:27 2001 Yukihiro Matsumoto <[email protected]>

* string.c (str_independent): should not clear str->orig here.
Expand Down
18 changes: 17 additions & 1 deletion eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -6333,7 +6333,23 @@ block_pass(self, node)
POP_TAG();
POP_ITER();
if (_block.tag->dst == state) {
state &= TAG_MASK;
if (orphan) {
state &= TAG_MASK;
}
else {
struct BLOCK *ptr = old_block;

while (ptr) {
if (ptr->scope == _block.scope) {
ptr->tag->dst = state;
break;
}
ptr = ptr->prev;
}
if (!ptr) {
state &= TAG_MASK;
}
}
}
ruby_block = old_block;
ruby_safe_level = safe;
Expand Down

0 comments on commit 35e5ddf

Please sign in to comment.