diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-26 05:29:06 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-02-26 05:29:06 +0000 |
| commit | d2fbacfcf976a58e545c91d740b102048c67fc7b (patch) | |
| tree | f352837db7633a5d6355461ca14f0f870d951e86 /parse.y | |
| parent | 7cedde03e9c7d437fa9dbbc65865809536e76067 (diff) | |
| download | ruby-d2fbacfcf976a58e545c91d740b102048c67fc7b.tar.gz ruby-d2fbacfcf976a58e545c91d740b102048c67fc7b.tar.xz ruby-d2fbacfcf976a58e545c91d740b102048c67fc7b.zip | |
* eval.c (proc_call): should not modify ruby_block->frame.iter
based on ruby_frame->iter altered by PUSH_ITER().
* eval.c (rb_thread_fd_close): should save current context before
raising exception.
* io.c (set_stdin): preserve original stdin.
* io.c (set_outfile): preserve original stdout/stderr.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -1271,7 +1271,12 @@ primary : literal cref_pop(); class_nest--; } - | kCLASS tLSHFT expr term + | kCLASS tLSHFT expr + { + $<num>$ = in_def; + in_def = 0; + } + term { $<num>$ = in_single; in_single = 0; @@ -1279,10 +1284,6 @@ primary : literal cref_push(); local_push(); } - { - $<num>$ = in_def; - in_def = 0; - } compstmt kEND { @@ -1291,8 +1292,8 @@ primary : literal local_pop(); cref_pop(); class_nest--; - in_single = $<num>5; - in_def = $<num>6; + in_def = $<num>4; + in_single = $<num>6; } | kMODULE cname { |
