diff --git a/1987/hines/.gitignore b/1987/hines/.gitignore index d95f2717a..6c51004a0 100644 --- a/1987/hines/.gitignore +++ b/1987/hines/.gitignore @@ -1 +1,2 @@ hines +hines.alt diff --git a/1987/hines/Makefile b/1987/hines/Makefile index ba378dcdb..f443d23ea 100644 --- a/1987/hines/Makefile +++ b/1987/hines/Makefile @@ -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} diff --git a/1987/hines/README.md b/1987/hines/README.md index 4fff722a2..9ae9c4d64 100644 --- a/1987/hines/README.md +++ b/1987/hines/README.md @@ -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 diff --git a/1987/hines/hines.orig.c b/1987/hines/hines.alt.c similarity index 100% rename from 1987/hines/hines.orig.c rename to 1987/hines/hines.alt.c