aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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