Skip to content

Commit

Permalink
CHANGE: removed the quit/now option
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed May 28, 2023
1 parent fe70ad4 commit 7bce104
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
17 changes: 9 additions & 8 deletions src/core/n-system.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@
{
REBVAL *val = D_ARG(2);

if (D_REF(3)) {
REBINT n = 0;
if (D_REF(1)) {
if (IS_INTEGER(val)) n = Int32(val);
else if (IS_TRUE(val)) n = 100;
}
OS_EXIT(n);
}
/* not using quit/now anymore... see https://github.com/Oldes/Rebol-issues/issues/1743 */
//if (D_REF(3)) {
// REBINT n = 0;
// if (D_REF(1)) {
// if (IS_INTEGER(val)) n = Int32(val);
// else if (IS_TRUE(val)) n = 100;
// }
// OS_EXIT(n);
//}

Halt_Code(RE_QUIT, val); // NONE if /return not set
DEAD_END;
Expand Down
2 changes: 1 addition & 1 deletion src/mezz/mezz-secure.reb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ secure: function/with [
; Check if SECURE is secured:
if pol-obj/secure <> 0.0.0 [
if pol-obj/secure == 'throw [cause-error 'access 'security :policy]
quit/now/return 101 ; an arbitrary code
quit/return 101 ; an arbitrary code
]

; Bulk-set all policies:
Expand Down
4 changes: 2 additions & 2 deletions src/mezz/sys-start.reb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ start: func [
;-- User is requesting usage info:
if flags/help [
lib/usage
unless flags/halt [quit/now]
unless flags/halt [quit]
quiet: true
]

Expand Down Expand Up @@ -210,7 +210,7 @@ start: func [
;-- Evaluate: --do "some code" if found
if do-arg [
do intern load/all do-arg
unless script [quit/now]
unless script [quit]
]

;-- Evaluate script argument?
Expand Down

0 comments on commit 7bce104

Please sign in to comment.