diff options
-rw-r--r-- | whichbas.c | 17 | ||||
-rw-r--r-- | whichbas.h | 17 |
2 files changed, 19 insertions, 15 deletions
@@ -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 */ diff --git a/whichbas.h b/whichbas.h new file mode 100644 index 0000000..0165953 --- /dev/null +++ b/whichbas.h @@ -0,0 +1,17 @@ +/* this stuff is in a separate .h file so that eventually, + listbas.c can include it (it'll execute "whichbas -s" to detect + the BASIC type). */ + +#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 |