* 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
This commit is contained in:
nobu 2003-11-27 15:47:33 +00:00
Родитель 99fb5f4871
Коммит e788706235
3 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -1,4 +1,4 @@
Fri Nov 28 00:34:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri Nov 28 00:47:29 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_f_exit), process.c (rb_f_exit_bang): treat true as * eval.c (rb_f_exit), process.c (rb_f_exit_bang): treat true as
success, false as failure. [ruby-dev:22067] success, false as failure. [ruby-dev:22067]
@ -6,6 +6,9 @@ Fri Nov 28 00:34:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_f_abort, rb_thread_switch), process.c (rb_f_system): use * eval.c (rb_f_abort, rb_thread_switch), process.c (rb_f_system): use
ANSI macro instead of hard coded value. 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 <knu@iDaemons.org> Thu Nov 27 22:05:48 2003 Akinori MUSHA <knu@iDaemons.org>
* eval.c, gc.c: FreeBSD/ia64 currently does not have a way for a * eval.c, gc.c: FreeBSD/ia64 currently does not have a way for a

4
eval.c
Просмотреть файл

@ -3896,10 +3896,10 @@ rb_f_exit(argc, argv)
rb_secure(4); rb_secure(4);
if (rb_scan_args(argc, argv, "01", &status) == 1) { if (rb_scan_args(argc, argv, "01", &status) == 1) {
switch (status) { switch (status) {
case T_TRUE: case Qtrue:
istatus = EXIT_SUCCESS; istatus = EXIT_SUCCESS;
break; break;
case T_FALSE: case Qfalse:
istatus = EXIT_FAILURE; istatus = EXIT_FAILURE;
break; break;
default: default:

Просмотреть файл

@ -882,10 +882,10 @@ rb_f_exit_bang(argc, argv, obj)
rb_secure(4); rb_secure(4);
if (rb_scan_args(argc, argv, "01", &status) == 1) { if (rb_scan_args(argc, argv, "01", &status) == 1) {
switch (status) { switch (status) {
case T_TRUE: case Qtrue:
istatus = EXIT_SUCCESS; istatus = EXIT_SUCCESS;
break; break;
case T_FALSE: case Qfalse:
istatus = EXIT_FAILURE; istatus = EXIT_FAILURE;
break; break;
default: default: