From d9c3005ec70a91e1f8c7c1918084fe54790272b0 Mon Sep 17 00:00:00 2001
From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com>
Date: Sun, 17 Dec 2023 12:23:02 -0800
Subject: [PATCH 1/6] Minor fixes in FAQ
Let's just say that these minor issues have also gone up in smoke.
---
faq.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/faq.md b/faq.md
index b205192f4..36884981c 100644
--- a/faq.md
+++ b/faq.md
@@ -1921,12 +1921,12 @@ Machine](https://web.archive.org) and see if you can find the last non 4xx non
valuable. Other times you might find it with a web search.
Some links were changed to more recent URLs by doing this exact
-same thing. Some links, while they real a valid web page, no longer
+same thing. Some links, while they were a valid web page, no longer
reach the intended web page (for example when the domain is sold
and the new domain owner's content no longer provides the content
-that was originally intended. And while the content of the web
+that was originally intended .. and while the content of the web
page may be humorous to some, the original content may have literally
-gone "up in smoke".
+gone "up in smoke").
In cases where the original content is lost, try searching for it on
the [Internet Wayback Machine](https://web.archive.org). When searching
From 7b538582434aae17e2f07c2d1858ccba33ead4de Mon Sep 17 00:00:00 2001
From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com>
Date: Sun, 17 Dec 2023 12:24:34 -0800
Subject: [PATCH 2/6] Add missing alt subsections in 1994/tvr
---
1994/tvr/README.md | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/1994/tvr/README.md b/1994/tvr/README.md
index 76d26cad9..0fc4d3fb3 100644
--- a/1994/tvr/README.md
+++ b/1994/tvr/README.md
@@ -4,6 +4,11 @@
make all
```
+
+The author provided a spoiler version as alt code. See [Alternate
+code](#alternate-code) below.
+
+
### Bugs and (Mis)features:
The current status of this entry is:
@@ -35,10 +40,19 @@ Mode may be a value from 0 to 12.
## Alternate code:
-The author has provided us a spoiler version:
+The author provided us a spoiler version that might be of interest to some.
+
+
+### Alternate build:
```sh
make tvr.alt
+```
+
+
+### Alternate use:
+
+```sh
./tvr.alt altmode screensize/2 < colormapfile
```
From 1a26232be0da07af09fbd254e2634efb4abcaaa3 Mon Sep 17 00:00:00 2001
From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com>
Date: Sun, 17 Dec 2023 12:29:12 -0800
Subject: [PATCH 3/6] Add missing alt subsections to 1995/vanschnitz
The spoiler.c was also renamed to vanschnitz.alt.c and the Makefile was
updated so that running make alt will compile it. The Makefile also now
has -Wno-implicit-int.
---
1995/vanschnitz/Makefile | 9 ++++++---
1995/vanschnitz/README.md | 17 ++++++++++++++++-
1995/vanschnitz/{spoiler.c => vanschnitz.alt.c} | 0
thanks-for-help.md | 9 +++++----
4 files changed, 27 insertions(+), 8 deletions(-)
rename 1995/vanschnitz/{spoiler.c => vanschnitz.alt.c} (100%)
diff --git a/1995/vanschnitz/Makefile b/1995/vanschnitz/Makefile
index ad42e9c64..7342baac1 100644
--- a/1995/vanschnitz/Makefile
+++ b/1995/vanschnitz/Makefile
@@ -39,7 +39,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-extra-tokens \
- -Wno-overlength-strings -Wno-strict-prototypes
+ -Wno-overlength-strings -Wno-strict-prototypes -Wno-implicit-int
# Common C compiler warning flags
#
@@ -112,8 +112,8 @@ OBJ= ${PROG}.o
DATA=
TARGET= ${PROG}
#
-ALT_OBJ=
-ALT_TARGET=
+ALT_OBJ= ${PROG}.alt.o
+ALT_TARGET= ${PROG}.alt
LEVEL= 5
@@ -138,6 +138,9 @@ ${PROG}: ${PROG}.c
alt: data ${ALT_TARGET}
@${TRUE}
+${PROG}.alt: ${PROG}.alt.c
+ ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
+
# data files
#
data: ${DATA}
diff --git a/1995/vanschnitz/README.md b/1995/vanschnitz/README.md
index 56e90e8a6..fe8f9a951 100644
--- a/1995/vanschnitz/README.md
+++ b/1995/vanschnitz/README.md
@@ -4,6 +4,9 @@
make all
```
+The authors provided a spoiler version, originally uuencoded but uudecoded by us
+in 2023. See [Alternate code](#alternate-code) below.
+
### Bugs and (Mis)features:
@@ -34,11 +37,23 @@ make clobber all LEVEL=6
## Alternate code:
The authors provided a spoiler version of the program. Originally uuencoded we
-have decoded it for the wider audience in [spoiler.c](spoiler.c). The
+have decoded it for the wider audience in [vanschnitz.alt.c](vanschnitz.alt.c). The
`uuencode`d blob is still available in their remarks below. They encourage you
to first try and figure out the program without the spoiler.
+### Alternate build:
+
+```sh
+make alt
+```
+
+
+### Alternate use:
+
+Use `vanschnitz.alt` as you would `vanschnitz` above.
+
+
## Judges' remarks:
Back in 1995, values of `LEVEL>8` caused some compilers (and in one case a
diff --git a/1995/vanschnitz/spoiler.c b/1995/vanschnitz/vanschnitz.alt.c
similarity index 100%
rename from 1995/vanschnitz/spoiler.c
rename to 1995/vanschnitz/vanschnitz.alt.c
diff --git a/thanks-for-help.md b/thanks-for-help.md
index ff246651a..5ff8b82b2 100644
--- a/thanks-for-help.md
+++ b/thanks-for-help.md
@@ -1853,10 +1853,11 @@ calls which has the four args.
## [1995/vanschnitz](/1995/vanschnitz/vanschnitz.c) ([README.md](/1995/vanschnitz/README.md))
-[Cody](#cody) added the authors' [spoiler as a C file](/1995/vanschnitz/spoiler.c) as in
-2023 we have decided that in most cases all the code should be available for the
-wider audience, without having to extract it. The exception is when the files
-are created by the entry or the entry decrypts the text or whatever else.
+[Cody](#cody) added the authors' [spoiler as a C
+file](/1995/vanschnitz/vanschnitz.alt.c) as in 2023 we have decided that in most
+cases all the code should be available for the wider audience, without having to
+extract it. The exception is when the files are created by the entry or the
+entry decrypts the text or something like that.
# 1996
From d1489ed01131f657a22779ebe43e3d6a07ce4995 Mon Sep 17 00:00:00 2001
From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com>
Date: Sun, 17 Dec 2023 12:37:23 -0800
Subject: [PATCH 4/6] Add 1998/dlowe/try.alt.sh, add missing subsections
---
1998/dlowe/README.md | 24 ++++++++++++++++++++++--
1998/dlowe/try.alt.sh | 36 ++++++++++++++++++++++++++++++++++++
1998/dlowe/try.sh | 1 +
thanks-for-help.md | 2 +-
4 files changed, 60 insertions(+), 3 deletions(-)
create mode 100755 1998/dlowe/try.alt.sh
diff --git a/1998/dlowe/README.md b/1998/dlowe/README.md
index d77e5c351..69c8fff0e 100644
--- a/1998/dlowe/README.md
+++ b/1998/dlowe/README.md
@@ -4,6 +4,9 @@
make all
```
+There is an alternate version available. See [Alternate code](#alternate-code)
+below for more details.
+
## To use:
@@ -42,17 +45,34 @@ Also try:
## Alternate code:
-NOTE: The original entry was just a text based pootifier. To build
-that version try:
+The original entry was just a text based pootifier. This alternate version is
+that program.
+
+
+### Alternate build:
```sh
make alt
+```
+
+
+### Alternate use:
+
+
+```
./dlowe.alt < anyfile > pootfile
```
What's the difference between this and `dlowe`?
+### Alternate try:
+
+```sh
+./try.alt.sh
+```
+
+
## Judges' remarks:
Why could this this entry be considered a utility? Well because it
diff --git a/1998/dlowe/try.alt.sh b/1998/dlowe/try.alt.sh
new file mode 100755
index 000000000..05b11df0a
--- /dev/null
+++ b/1998/dlowe/try.alt.sh
@@ -0,0 +1,36 @@
+#!/usr/bin/env bash
+#
+# try.sh - try out 1998/dlowe pootifier alt code
+#
+
+make everything || exit 1
+
+CAT="$(type -P cat)"
+MAN="$(type -P man)"
+COL="$(type -P col)"
+
+if [[ -z "$CAT" || ! -e "$CAT" ]]; then
+ echo "$0: no cat found" 1>&2
+ exit 1
+elif [[ -z "$COL" || ! -e "$COL" ]]; then
+ echo "$0: col not found" 1>&2
+ exit 1
+elif [[ -z "$MAN" || ! -e "$MAN" ]]; then
+ echo "$0: can't execute man" 1>&2
+ exit 1
+fi
+
+rm -f make.1
+read -r -n 1 -p "Press any key to pootify make(1): "
+"$MAN" make | "$COL" -b | ./dlowe.alt > make.1
+"$MAN" ./make.1
+
+read -r -n 1 -p "Press any key to pootify dlowe.c: "
+echo 1>&2
+./dlowe.alt < dlowe.c
+echo 1>&2
+
+read -r -n 1 -p "Press any key to pootify dlowe.alt.c: "
+echo 1>&2
+./dlowe.alt < dlowe.alt.c
+echo 1>&2
diff --git a/1998/dlowe/try.sh b/1998/dlowe/try.sh
index 5dc390a8d..18645fc87 100755
--- a/1998/dlowe/try.sh
+++ b/1998/dlowe/try.sh
@@ -26,4 +26,5 @@ read -r -n 1 -p "Press any key to pootify make(1): "
"$MAN" ./make.1
read -r -n 1 -p "Press any key to pootify dlowe.c: "
+echo 1>&2
./dlowe < dlowe.c
diff --git a/thanks-for-help.md b/thanks-for-help.md
index 5ff8b82b2..5aed94a63 100644
--- a/thanks-for-help.md
+++ b/thanks-for-help.md
@@ -2033,7 +2033,7 @@ be done in modern systems) to be `_int`.
to be `int` (in both versions).
Cody added the scripts [try.sh](/1998/dlowe/try.sh),
-[pootify.sh](/1998/dlowe/pootify.sh) and
+[try.alt.sh](/1998/dlowe/try.alt.sh), [pootify.sh](/1998/dlowe/pootify.sh) and
[pootify.cgi.sh](/1998/dlowe/pootify.cgi.sh) for a fun example use of the
program, a local pootifier of web pages and a CGI pootifier. It should be noted
that the CGI version might have an issue with modern systems; see [historical
From 6e35e2d6d03d489bf54b5e48fb6d6149dca9f37a Mon Sep 17 00:00:00 2001
From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com>
Date: Sun, 17 Dec 2023 12:39:09 -0800
Subject: [PATCH 5/6] Add missing alt subsection to 2011/vik
---
2011/vik/README.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/2011/vik/README.md b/2011/vik/README.md
index 59f411f94..bc1c2d2de 100644
--- a/2011/vik/README.md
+++ b/2011/vik/README.md
@@ -45,6 +45,11 @@ Archive](http://modarchive.org).
## Alternate code:
+This version is based on the author's remarks and it should work for Windows.
+
+
+### Alternate build:
+
Assuming that `make` is similar enough try:
```sh
From e4ca73288e59d4be96ad2e53dc798b61152ffb01 Mon Sep 17 00:00:00 2001
From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com>
Date: Sun, 17 Dec 2023 12:40:44 -0800
Subject: [PATCH 6/6] Add missing alt subsections to 2013/cable3
---
2013/cable3/README.md | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/2013/cable3/README.md b/2013/cable3/README.md
index d8b52d8c7..f67c37427 100644
--- a/2013/cable3/README.md
+++ b/2013/cable3/README.md
@@ -38,13 +38,21 @@ combinations are left for the discovery of the user.
## Alternate code:
-An alternate version, which should compile in Windows, is provided. To use try:
+An alternate version, which should compile in Windows, is provided.
+
+
+### Alternate build:
+
+Assuming `make` is available and will function:
```sh
make alt
```
+
+### Alternate use:
+
Use `cable3.alt` as you would `cable3` above.