fix how alt code is used in 1988/isaak

This commit is contained in:
Landon Curt Noll committed 2023-03-08 02:30:19 -08:00
1 parent d1bb558f70
commit 12523dd4c9
4 files changed
+17 -8

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
isaak
isaak.alt
isaak.output
+4 -4
View File
@@ -167,11 +167,11 @@ ENTRY= isaak
PROG= ${ENTRY}
#
OBJ= ${PROG}.o
DATA=
DATA= isaak.encode
TARGET= ${PROG}
#
ALT_OBJ= ${PROG}.orig.o
ALT_TARGET= ${PROG}.orig
ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ${PROG}.alt
#################
@@ -193,7 +193,7 @@ ${PROG}: ${PROG}.c
alt: data ${ALT_TARGET}
@${TRUE}
${PROG}.orig: ${PROG}.orig.c
${PROG}.alt: ${PROG}.alt.c
@echo "NOTE: The original source might not compile using modern compilers."
${CC} ${CFLAGS} $< -o $@ ${LIBS}
+12 -4
View File
@@ -1,4 +1,4 @@
Best visuals:
# Best visuals:
Mark Isaak
Imagen Corporation
@@ -7,11 +7,17 @@ Best visuals:
95052-8101
USA
Compile with:
## To build:
cc -DI=B -DO=- -Dy isaak.c -o isaak
make all
Execute without arguments.
### To run
./isaak
### Alternate code
An alternate version of this entry, `isaak.alt.c`.
The original entry starts with the line:
@@ -20,6 +26,8 @@ The original entry starts with the line:
This works on some systems. Why? Note that `#include <stdio.h>` is given on
the last line. Why is this needed? Note the unusual calls to sprintf.
## Judges' comments
NOTE: The program relies heavily on ASCII. Don't even think of running it on
an EBCDIC machine. If you name the file anything other than "isaak.c", you must
change the `#include` on line 7.
File renamed without changes.