Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
0.28.1.1
Browse files Browse the repository at this point in the history
Fixed exit code weirdness
  • Loading branch information
PQCraft committed Oct 27, 2021
1 parent 15502b5 commit 22e2c84
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions clibasic.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@

// Base defines

char VER[] = "0.28.1";
char VER[] = "0.28.1.1";

#if defined(__linux__)
char OSVER[] = "Linux";
Expand Down Expand Up @@ -1136,12 +1136,12 @@ int main(int argc, char** argv) {
copyStrSnip(progbuf[progindex], cp - cmdl, cp, cmd);
cmdl = 0;
runcmd();
if (cmdint) {err = 0; inProg = false; unloadAllProg(); cmdint = false; goto brkproccmd;}
if (cmdint) {inProg = false; unloadAllProg(); cmdint = false; goto brkproccmd;}
if (cp == -1) {err = 0; inProg = false; unloadAllProg(); goto brkproccmd;}
if (cp > -1 && progbuf[progindex][cp] == 0) {
unloadProg();
err = 0;
if (progindex < 0) {
err = 0;
inProg = false;
goto rechk;
} else {
Expand Down
7 changes: 4 additions & 3 deletions commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ if (chkCmd(2, "EXIT", "QUIT")) {
err = 0;
if (argct == 1) {
if (!solvearg(1)) goto cmderr;
err = atoi(arg[1]);
if (runfile) {
err = retval = atoi(arg[1]);
} else {
err = atoi(arg[1]);
retval = err;
}
} else {
err = 0;
}
if (inProg) {
if (progindex > 0) unloadProg();
Expand Down
2 changes: 1 addition & 1 deletion examples
Submodule examples updated 1 files
+1 −1 color.bas

0 comments on commit 22e2c84

Please sign in to comment.