Improve situation with clang for 1989/westley

The alt code has been changed so that in addition to the main feature
working it will also generate ver0 and ver1 correctly; ver2 and ver3
cannot be compiled still. This is not perfect but it is progress. I will
look at this further later most likely.

Added compile.alt.sh to compile the alt code and generate the alt code
generated code. It generates it in the file name form alt.ver[0-3].c and
the code will be compiled as such.

Added try.sh to demonstrate the main (original) program. This is because
there are a lot of commands to try.

Added try.alt.sh to demonstrate the alt program (not trying the ver2 and
ver3, naturally). The rationale is the same as for try.sh.

The Makefile has been updated for these changes.

Updated .gitignore as a number of new files will be created when running
compile.alt.sh.

The bugs.md has been updated as there has been some progress made. The
hint was removed at this time as it's not applicable now; the problem of
main() args not being allowed is no longer true. However the status line
has not been updated because the root of the problem is this. There are
currently no hints because I do not have any yet.

The thanks file has also been updated for the new scripts as well as the
situation being changed.
This commit is contained in:
Cody Boone Ferguson committed 2023-10-26 08:32:00 -07:00
1 parent ff72c76ff1
commit 08a699bfe8
11 files changed
+261 -80

No files matched your search

+70
View File
@@ -0,0 +1,70 @@
#!/usr/bin/env bash
make all || exit 1
echo "$ echo IOCCC | ./westley"
echo IOCCC | ./westley
echo
echo "$ echo IOCCC | ./westley 1"
echo IOCCC | ./westley 1
echo
echo "$ echo IOCCC | ./westley 1 2"
echo IOCCC | ./westley 1 2
echo
echo "$ echo IOCCC | ./westley 1 2 3"
echo IOCCC | ./westley 1 2 3
echo
echo "$ echo IOCCC | ./ver0"
echo IOCCC | ./ver0
echo
echo "$ echo Version 1 | ./ver1"
echo Version 1 | ./ver1
echo
echo "$ echo Version 1 | ./ver1 1"
echo Version 1 | ./ver1 1
echo
echo "$ echo Version 1 | ./ver1 1 2"
echo Version 1 | ./ver1 1 2
echo
echo "$ echo Version 1 | ./ver1 1 2 3"
echo Version 1 | ./ver1 1 2 3
echo
echo "$ echo Version 2 | ./ver2"
echo Version 2 | ./ver2
echo
echo "$ echo Version 2 | ./ver2 1"
echo Version 2 | ./ver2 1
echo
echo "$ echo Version 2 | ./ver2 1 2"
echo Version 2 | ./ver2 1 2
echo
echo "$ echo Version 2 | ./ver2 1 2 3"
echo Version 2 | ./ver2 1 2 3
echo
echo "$ echo Version 3 | ./ver3"
echo Version 3 | ./ver3
echo
echo "$ echo Version 3 | ./ver3 1"
echo Version 3 | ./ver3 1
echo
echo "$ echo Version 3 | ./ver3 1 2"
echo Version 3 | ./ver3 1 2
echo
echo "$ echo Version 3 | ./ver3 1 2 3"
echo Version 3 | ./ver3 1 2 3