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.
This commit is contained in:
1 parent
7b53858243
commit
1a26232be0
4 files changed
+27
-8
No files matched your search
@@ -39,7 +39,7 @@ include ../../var.mk
|
|||||||
# Common C compiler warnings to silence
|
# Common C compiler warnings to silence
|
||||||
#
|
#
|
||||||
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-extra-tokens \
|
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
|
# Common C compiler warning flags
|
||||||
#
|
#
|
||||||
@@ -112,8 +112,8 @@ OBJ= ${PROG}.o
|
|||||||
DATA=
|
DATA=
|
||||||
TARGET= ${PROG}
|
TARGET= ${PROG}
|
||||||
#
|
#
|
||||||
ALT_OBJ=
|
ALT_OBJ= ${PROG}.alt.o
|
||||||
ALT_TARGET=
|
ALT_TARGET= ${PROG}.alt
|
||||||
|
|
||||||
LEVEL= 5
|
LEVEL= 5
|
||||||
|
|
||||||
@@ -138,6 +138,9 @@ ${PROG}: ${PROG}.c
|
|||||||
alt: data ${ALT_TARGET}
|
alt: data ${ALT_TARGET}
|
||||||
@${TRUE}
|
@${TRUE}
|
||||||
|
|
||||||
|
${PROG}.alt: ${PROG}.alt.c
|
||||||
|
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||||
|
|
||||||
# data files
|
# data files
|
||||||
#
|
#
|
||||||
data: ${DATA}
|
data: ${DATA}
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
make all
|
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:
|
### Bugs and (Mis)features:
|
||||||
|
|
||||||
@@ -34,11 +37,23 @@ make clobber all LEVEL=6
|
|||||||
## Alternate code:
|
## Alternate code:
|
||||||
|
|
||||||
The authors provided a spoiler version of the program. Originally uuencoded we
|
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
|
`uuencode`d blob is still available in their remarks below. They encourage you
|
||||||
to first try and figure out the program without the spoiler.
|
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:
|
## Judges' remarks:
|
||||||
|
|
||||||
Back in 1995, values of `LEVEL>8` caused some compilers (and in one case a
|
Back in 1995, values of `LEVEL>8` caused some compilers (and in one case a
|
||||||
|
|||||||
File renamed without changes.
+5
-4
@@ -1853,10 +1853,11 @@ calls which has the four args.
|
|||||||
|
|
||||||
## <a name="1995_vanschnitz"></a>[1995/vanschnitz](/1995/vanschnitz/vanschnitz.c) ([README.md](/1995/vanschnitz/README.md))
|
## <a name="1995_vanschnitz"></a>[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
|
[Cody](#cody) added the authors' [spoiler as a C
|
||||||
2023 we have decided that in most cases all the code should be available for the
|
file](/1995/vanschnitz/vanschnitz.alt.c) as in 2023 we have decided that in most
|
||||||
wider audience, without having to extract it. The exception is when the files
|
cases all the code should be available for the wider audience, without having to
|
||||||
are created by the entry or the entry decrypts the text or whatever else.
|
extract it. The exception is when the files are created by the entry or the
|
||||||
|
entry decrypts the text or something like that.
|
||||||
|
|
||||||
|
|
||||||
# <a name="1996"></a>1996
|
# <a name="1996"></a>1996
|
||||||
|
|||||||
Reference in new issue
Block a user