summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index ce09465..cb892cd 100644
--- a/eval.c
+++ b/eval.c
@@ -3315,7 +3315,7 @@ rb_exit(status)
VALUE exit;
exit_status = status;
- exit = rb_exc_new(rb_eSystemExit, 0, 0);
+ exit = rb_exc_new2(rb_eSystemExit, "exit");
rb_iv_set(exit, "status", INT2NUM(status));
rb_exc_raise(exit);
}
@@ -4152,7 +4152,7 @@ stack_length(p)
#endif
if (p) *p = STACK_END;
-#ifdef sparc
+#ifdef __sparc__
return rb_gc_stack_start - STACK_END + 0x80;
#else
return (STACK_END < rb_gc_stack_start) ? rb_gc_stack_start - STACK_END
@@ -6445,7 +6445,7 @@ block_pass(self, node)
break;
case TAG_BREAK:
if (orphan) {
- rb_raise(rb_eLocalJumpError, "retry from proc-closure");
+ rb_raise(rb_eLocalJumpError, "break from proc-closure");
}
break;
case TAG_RETRY: