From e788706235648df9bd98741c29b77dfc6e04ee2c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 27 Nov 2003 15:47:33 +0000 Subject: [PATCH] * eval.c (rb_f_exit), process.c (rb_f_exit_bang): use VALUEs not but TYPEs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 ++++- eval.c | 4 ++-- process.c | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 555aab01ed..91af3dfb0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -Fri Nov 28 00:34:44 2003 Nobuyoshi Nakada +Fri Nov 28 00:47:29 2003 Nobuyoshi Nakada * eval.c (rb_f_exit), process.c (rb_f_exit_bang): treat true as success, false as failure. [ruby-dev:22067] @@ -6,6 +6,9 @@ Fri Nov 28 00:34:44 2003 Nobuyoshi Nakada * eval.c (rb_f_abort, rb_thread_switch), process.c (rb_f_system): use ANSI macro instead of hard coded value. + * eval.c (rb_f_exit), process.c (rb_f_exit_bang): use VALUEs not but + TYPEs. + Thu Nov 27 22:05:48 2003 Akinori MUSHA * eval.c, gc.c: FreeBSD/ia64 currently does not have a way for a diff --git a/eval.c b/eval.c index 5cfee877ec..8d64bf6bbd 100644 --- a/eval.c +++ b/eval.c @@ -3896,10 +3896,10 @@ rb_f_exit(argc, argv) rb_secure(4); if (rb_scan_args(argc, argv, "01", &status) == 1) { switch (status) { - case T_TRUE: + case Qtrue: istatus = EXIT_SUCCESS; break; - case T_FALSE: + case Qfalse: istatus = EXIT_FAILURE; break; default: diff --git a/process.c b/process.c index cbee4ffd38..3210882001 100644 --- a/process.c +++ b/process.c @@ -882,10 +882,10 @@ rb_f_exit_bang(argc, argv, obj) rb_secure(4); if (rb_scan_args(argc, argv, "01", &status) == 1) { switch (status) { - case T_TRUE: + case Qtrue: istatus = EXIT_SUCCESS; break; - case T_FALSE: + case Qfalse: istatus = EXIT_FAILURE; break; default: