aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-09 03:16:21 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-09 03:16:21 -0400
commitf7434033acc7555a30ddc0fd88981cba72c9bac2 (patch)
tree4d0bb995bea60c5da566cd957126d72f99b2a50d
parenta2a2a8437246ea12bbce0c133538617e49c43a90 (diff)
downloadbw-atari8-tools-f7434033acc7555a30ddc0fd88981cba72c9bac2.tar.gz
whichbas: tweakage.
-rw-r--r--whichbas.15
-rw-r--r--whichbas.c2
-rw-r--r--whichbas.rst5
3 files changed, 9 insertions, 3 deletions
diff --git a/whichbas.1 b/whichbas.1
index 4c32834..baead4f 100644
--- a/whichbas.1
+++ b/whichbas.1
@@ -186,9 +186,12 @@ EXTENDed OSS BASIC XE detected.
.B \fB13\fP
Compiled Turbo BASIC detected.
.TP
-.B \fB32\fP
+.B \fB64\fP
None of the above; not BASIC.
.UNINDENT
+.sp
+In the future, more exit codes may be defined (in the range \fB14\fP to
+\fB63\fP), but the existing ones will not change.
.SH COPYRIGHT
.sp
WTFPL. See \fI\%http://www.wtfpl.net/txt/copying/\fP for details.
diff --git a/whichbas.c b/whichbas.c
index 2911883..fb1d0c6 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -28,7 +28,7 @@ int bas_type = 0x0f; /* start out with all enabled */
#define SRET_AMSB 11
#define SRET_EXTENDED_BXE 12
#define SRET_COMPILED_TURBO 13
-#define SRET_NOT_BASIC 32
+#define SRET_NOT_BASIC 64
int script_mode = 0; /* -s flag */
int script_ret; /* -s mode, exit with one of SRET_*, above, as status */
diff --git a/whichbas.rst b/whichbas.rst
index bd7e354..327e8dc 100644
--- a/whichbas.rst
+++ b/whichbas.rst
@@ -154,7 +154,10 @@ With the **-s** option, the exit status is:
**13**
Compiled Turbo BASIC detected.
-**32**
+**64**
None of the above; not BASIC.
+In the future, more exit codes may be defined (in the range **14** to
+**63**), but the existing ones will not change.
+
.. include:: manftr.rst