From 024fe66d200b1ea098c5284d7b03dc70dfe4873a Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 27 Oct 2023 10:16:41 -0700 Subject: [PATCH] Typo fixes in 199[01]/dds In the README.md file of 1990/dds there was a typo fixed. In the thanks file for 1990/dds I clarified something and in the case of 1991/dds there was a typo that was confusing: '-Wno-error' should have been '-Werror'; the fix enabled in the encrypted string the former but the problem was some compilers in some platforms (clang, macOS) default to -Werror which prevented the entry from compiling code as the code generated had warnings. --- 1990/dds/README.md | 4 ++-- thanks-for-fixes.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/1990/dds/README.md b/1990/dds/README.md index d1d4f985f..1a2b37d8e 100644 --- a/1990/dds/README.md +++ b/1990/dds/README.md @@ -57,7 +57,7 @@ This is the DDS-BASIC Interpreter (Version 1.00). - NEXT variable - GOSUB exp - RETURN -- GOTO exp\ +- GOTO exp - IF exp THEN exp - INPUT variable - PRINT string @@ -118,7 +118,7 @@ The Speed of DDS-BASIC Interpreter (Version 1.00) relative to Microsoft Advanced BASIC 3.31 is approximately 60%. The code size could be further reduced by doing ugly things like not declaring -the return type of functions, not freeing memory, #defining define, and joining +the return type of functions, not freeing memory, `#defin`ing define, and joining lines. In its present 1536 character form the program is reasonably portable (it may fail to run in a tagged object architecture) and nicely formatted (it fits in an `80*25` screen). diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 15c76ef1d..071b285c3 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -856,8 +856,8 @@ more like the original in this way by redefining `free` to have the comma operator itself. Cody fixed another compiler error by removing the erroneous prototype to -`fopen()`. Cody also changed a file to be a proper `FILE *` and fixed a typo in -[LANDER.BAS](1990/dds/LANDER.BAS). +`fopen()`. Cody also changed a `char *` used for file I/O to be a proper `FILE +*` and fixed a typo in [LANDER.BAS](1990/dds/LANDER.BAS). Cody also made this use `fgets()` instead of `gets()` to make it safer and to prevent an annoying and potentially alarming warning at compiling and/or linking @@ -973,7 +973,7 @@ slightly more like the original, even though it's unused. Cody fixed a segfault that prevented this entry from working in any condition and he also made it work for clang. Clang (at least in some systems?) defaults -to having `-Wno-error` and the code that the entry generates had some warnings +to having `-Werror` and the code that the entry generates had some warnings that were causing compilation to fail as it just ran `cc a.c`. It ran it by what was once `system(q-6);` but with clang this was not enough..