diff --git a/1987/westley/Makefile b/1987/westley/Makefile index 4df642ef6..485e35245 100644 --- a/1987/westley/Makefile +++ b/1987/westley/Makefile @@ -167,8 +167,8 @@ OBJ= ${PROG}.o DATA= TARGET= ${PROG} # -ALT_OBJ= -ALT_TARGET= +ALT_OBJ= ${PROG}.alt.o +ALT_TARGET= ${PROG}.alt ################# @@ -183,7 +183,6 @@ all: ${DATA} ${TARGET} supernova deep_magic magic charon pluto ${PROG}: ${PROG}.c - @echo "NOTE: This entry requires a non-standard K&R C compiler to compile." ${CC} ${CFLAGS} $< -o $@ ${LIBS} # alternative executable diff --git a/1987/westley/README.md b/1987/westley/README.md index cafb1709b..f0feb2b70 100644 --- a/1987/westley/README.md +++ b/1987/westley/README.md @@ -11,7 +11,22 @@ USA make all -NOTE: This entry requires a non-standard K&R C compiler to compile. +NOTE: Cody Boone Ferguson fixed this so it could compile on modern systems. For +the original file see below. + + +## Alternate code: + +If you have an older compiler you can try compiling the original source code +which is true symmetry: + + make alt + + +## To run: + + ./westley + ## Judges' comments: diff --git a/1987/westley/westley.alt.c b/1987/westley/westley.alt.c new file mode 100644 index 000000000..57500810d --- /dev/null +++ b/1987/westley/westley.alt.c @@ -0,0 +1,48 @@ + char rahc + [ ] + = + "\n/" + , + redivider + [ ] + = + "Able was I ere I saw elbA" + , + * + deliver,reviled + = + 1+1 + , + niam ; main + ( ) + {/*\} + \*/ + int tni + = + 0x0 + , + rahctup,putchar + ( ) + ,LACEDx0 = 0xDECAL, + rof ; for + (;(int) (tni);) + (int) (tni) + = reviled ; deliver = + redivider + ; +for ((int)(tni)++,++reviled;reviled* *deliver;deliver++,++(int)(tni)) rof + = + (int) -1- (tni) + ;reviled--;--deliver; + (tni) = (int) + - 0xDECAL + LACEDx0 - + rof ; for + (reviled--,(int)--(tni);(int) (tni);(int)--(tni),--deliver) + rahctup = putchar + (reviled* *deliver) + ; + rahctup * putchar + ((char) * (rahc)) + ; + /*\ + {\*/} diff --git a/1987/westley/westley.c b/1987/westley/westley.c index 57500810d..6db527893 100644 --- a/1987/westley/westley.c +++ b/1987/westley/westley.c @@ -26,11 +26,11 @@ ,LACEDx0 = 0xDECAL, rof ; for (;(int) (tni);) - (int) (tni) + /* (int)*/(tni) = reviled ; deliver = redivider ; -for ((int)(tni)++,++reviled;reviled* *deliver;deliver++,++(int)(tni)) rof +for ((int)(tni)++,++reviled;reviled* *deliver;deliver++,++/*(int)*/(tni)) rof = (int) -1- (tni) ;reviled--;--deliver;