summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-30 05:26:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-30 05:26:47 +0000
commit68e6271fd137221a1b8c044015903e7162a372a7 (patch)
tree029f13e6771c4c025976745a5d73b92b319ad51e
parentfa4c0ca478a6c32442307e74b7dd5626bbf352a2 (diff)
downloadruby-68e6271fd137221a1b8c044015903e7162a372a7.tar.gz
ruby-68e6271fd137221a1b8c044015903e7162a372a7.tar.xz
ruby-68e6271fd137221a1b8c044015903e7162a372a7.zip
* eval.c (rb_iter_break): should not call TAG_JUMP directly.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--eval.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e64f0d51..5ca63d279 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Aug 30 14:25:43 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_iter_break): should not call TAG_JUMP directly.
+
Sat Aug 30 03:58:21 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (struct BLOCK): remove BLOCKTAG, use scope instead.
diff --git a/eval.c b/eval.c
index 15911679c..3ec67787b 100644
--- a/eval.c
+++ b/eval.c
@@ -2418,7 +2418,8 @@ class_prefix(self, cpath)
prot_tag->retval = Qnil;\
}\
} while (0)
-static void localjump_destination _((int, struct SCOPE*, VALUE));
+
+NORETURN(static void localjump_destination _((int, struct SCOPE*, VALUE)));
static VALUE
rb_eval(self, n)
@@ -3831,7 +3832,7 @@ rb_f_abort(argc, argv)
void
rb_iter_break()
{
- JUMP_TAG(TAG_BREAK);
+ localjump_destination(TAG_BREAK, ruby_scope, Qnil);
}
NORETURN(static void rb_longjmp _((int, VALUE)));