summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1996-12-25 00:33:19 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:32 +0900
commitce930d042913722f209bbd3209b6c90a3c71325f (patch)
tree7233482f90335a8247ef426607622a8cad067a97 /eval.c
parent554b989ba1623b9f6a0b76f00824c83a23fbcbc1 (diff)
version 1.0-961225v1_0_961225
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-961225.tar.gz Wed Dec 25 00:33:19 1996 Yukihiro Matsumoto <matz@caelum.co.jp> * version 1.0-961225 * io.c (Init_IO): newを無効化 * lib/tkthcore.rb: tk_call "global $foo; set foo 5"などもできるように * eval.c (thread_restore_context): $~, $_でスタックを壊していた * process.c (rb_waitpid): threadに一応対応
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eval.c b/eval.c
index 43a4bf07f6..2f2ee5923a 100644
--- a/eval.c
+++ b/eval.c
@@ -3,7 +3,7 @@
eval.c -
$Author: matz $
- $Date: 1995/01/12 08:54:45 $
+ $Date: 1996/12/25 08:54:45 $
created at: Thu Jun 10 14:22:17 JST 1993
Copyright (C) 1993-1995 Yukihiro Matsumoto
@@ -3858,9 +3858,6 @@ thread_restore_context(th, exit)
errinfo = th->errinfo;
last_status = th->last_status;
- lastline_set(th->last_line);
- backref_set(th->last_match);
-
sourcefile = th->file;
sourceline = th->line;
@@ -3869,6 +3866,9 @@ thread_restore_context(th, exit)
FLUSH_REGISTER_WINDOWS;
MEMCPY(tmp->stk_pos, tmp->stk_ptr, VALUE, tmp->stk_len);
+ lastline_set(tmp->last_line);
+ backref_set(tmp->last_match);
+
switch (ex) {
case 1:
JUMP_TAG2(TAG_FATAL, INT2FIX(0));