aboutsummaryrefslogtreecommitdiff
path: root/whichbas.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-15 23:46:41 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-15 23:46:41 -0400
commit8b03ef61bb86c51c69ae929aaa4a4c55077ce5a2 (patch)
treeffc752c627ed3bdce00beb104dc10afe831121e5 /whichbas.c
parentaa7c742ae667c8f827256e097a6c5b9c9bf20483 (diff)
downloadbw-atari8-tools-8b03ef61bb86c51c69ae929aaa4a4c55077ce5a2.tar.gz
whichbas: move SRET_* constants to external header.
Diffstat (limited to 'whichbas.c')
-rw-r--r--whichbas.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/whichbas.c b/whichbas.c
index 80ea507..9f7f6db 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -7,6 +7,7 @@
#include <sys/wait.h>
#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 */