From ce930d042913722f209bbd3209b6c90a3c71325f Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Wed, 25 Dec 1996 00:33:19 +0900 Subject: version 1.0-961225 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-961225.tar.gz Wed Dec 25 00:33:19 1996 Yukihiro Matsumoto * 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に一応対応 --- eval.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'eval.c') 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)); -- cgit v1.2.3