From 8b03ef61bb86c51c69ae929aaa4a4c55077ce5a2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 15 Jul 2024 23:46:41 -0400 Subject: whichbas: move SRET_* constants to external header. --- whichbas.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'whichbas.c') diff --git a/whichbas.c b/whichbas.c index 80ea507..9f7f6db 100644 --- a/whichbas.c +++ b/whichbas.c @@ -7,6 +7,7 @@ #include #include "bas.h" +#include "whichbas.h" #define BT_INVALID 0 #define BT_ATARI 1 @@ -18,22 +19,8 @@ int bas_type = 0x0f; /* start out with all enabled */ -#define SRET_ATARI 3 -#define SRET_TURBO 4 -#define SRET_BXL 5 -#define SRET_BXE 6 -#define SRET_TURBO_OR_BXL 7 -#define SRET_TURBO_OR_BXE 8 -#define SRET_TURBO_OR_BXL_OR_BXE 9 -#define SRET_UKNOWN_DERIV 10 -#define SRET_AMSB 11 -#define SRET_EXTENDED_BXE 12 -#define SRET_COMPILED_TURBO 13 -#define SRET_APLUS 14 -#define SRET_NOT_BASIC 64 - int script_mode = 0; /* -s flag */ -int script_ret; /* -s mode, exit with one of SRET_*, above, as status */ +int script_ret; /* -s mode, exit with one of SRET_* from whichbas.h as status */ int keep_going = 0; /* -k flag */ -- cgit v1.2.3