fix how alt code is used in 1987/hines

This commit is contained in:
Landon Curt Noll committed 2023-03-08 02:46:00 -08:00
1 parent 643c6fb24a
commit 6ada1710e9
4 files changed
+17 -7

No files matched your search

+1
View File
@@ -1 +1,2 @@
hines
hines.alt
+3 -3
View File
@@ -166,8 +166,8 @@ OBJ= ${PROG}.o
DATA=
TARGET= ${PROG}
#
ALT_OBJ= ${PROG}.orig.o
ALT_TARGET= ${PROG}.orig
ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ${PROG}.alt
#################
@@ -189,7 +189,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}
+13 -4
View File
@@ -11,14 +11,25 @@ USA
make all
NOTE: The original entry may be built with "make alt".
### To run
## Judges' comments:
./hines file.c
### Try:
./hines hines.c
### Alternate code
An alternate version of this entry, `hines.alt.c`.
With older compilers you can try the alt version:
make alt
Use `hines.alt` as you would `hines` above.
## Judges' comments
This program was designed to maximize the bother function for
structured programmers. This program takes goto statements to their
logical conclusion. The layout and choice of names are classic.
@@ -27,8 +38,6 @@ We consider this to be a beautiful counter-example for Frank Rubin's
letter to ACM form titled: _"'GOTO Considered Harmful' Considered Harmful"_.
See the Communications of the ACM, March 1987, Page 195-196.
NOTE: With older compilers you can try the alt version like: `make alt`.
Copyright (c) 1987, Landon Curt Noll & Larry Bassel.
All Rights Reserved. Permission for personal, educational or non-profit use is
granted provided this this copyright and notice are included in its entirety
File renamed without changes.