From 04ae4cf33c6d4b1b4ae5062d32dda3ac862173f7 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 13 Feb 2023 08:52:02 -0800 Subject: [PATCH 1/3] Remove 1986/stein/stein.orig.c Since the original program does not compile and more than one of us fixed it (the judges and me and probably others as well) and the fix is in stein.c we remove the stein.orig.c. Updated Makefile so this would not be a problem. Updated README.md to not refer to make alt. --- 1986/stein/Makefile | 8 ++------ 1986/stein/README.md | 2 -- 1986/stein/stein.orig.c | 3 --- 3 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 1986/stein/stein.orig.c diff --git a/1986/stein/Makefile b/1986/stein/Makefile index a7df5a356..f75c2e4fe 100644 --- a/1986/stein/Makefile +++ b/1986/stein/Makefile @@ -437,7 +437,7 @@ ALT_TARGET= ${PROG}.orig all: ${DATA} ${TARGET} @${TRUE} -.PHONY: alt data everything clean clobber nuke dist_clean \ +.PHONY: data everything clean clobber nuke dist_clean \ install build love haste waste make easter_egg \ supernova deep_magic magic charon pluto @@ -446,10 +446,6 @@ ${PROG}: ${PROG}.c ${CC} ${CFLAGS} $< -o $@ ${LIBS} -${LN} $@ a.out -# alternative executable -# -alt: ${DATA} ${ALT_TARGET} - @${TRUE} ${PROG}.orig: ${PROG}.orig.c @echo "NOTE: The original source may not compile using modern compilers." @@ -467,7 +463,7 @@ data: ${DATA} # utility rules ############### # -everything: all alt +everything: all clean: ${RM} -f ${OBJ} ${ALT_OBJ} diff --git a/1986/stein/README.md b/1986/stein/README.md index 243328d49..aed84d69c 100644 --- a/1986/stein/README.md +++ b/1986/stein/README.md @@ -6,8 +6,6 @@ Jan Stein make all -NOTE: The original entry may be built with "make alt". - Judges' comments: > NOTE: to avoid problems with news and mail, the single line was split diff --git a/1986/stein/stein.orig.c b/1986/stein/stein.orig.c deleted file mode 100644 index cf731c84a..000000000 --- a/1986/stein/stein.orig.c +++ /dev/null @@ -1,3 +0,0 @@ -typedef char*z;O;o;_=33303285;main(b,Z)z Z;{b=(b>=0||(main(b+1,Z+1),*Z=O%(o=(_% -25))+'0',O/=o,_/=25))&&(b<1||(O=time(&b)%0250600,main(~5,*(z*)Z),write(1,*(z*)Z -,9)));} From ddb942b35cd7c0e0774c4aad44edbaa9bd838441 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 13 Feb 2023 09:00:00 -0800 Subject: [PATCH 2/3] Fix 1987/wall/README.md Refer to compiled binary and also provide more input to try. --- 1987/wall/README.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/1987/wall/README.md b/1987/wall/README.md index fe7af6870..e1941daef 100644 --- a/1987/wall/README.md +++ b/1987/wall/README.md @@ -12,12 +12,28 @@ Panorama City, CA 91402 USA ## Judges' comments: ### Try: - lwall | bc | lwall - input: x*x - input: c^2 + + ./wall | bc | ./wall + +and input the following: + + x*x + c^2 + m*m ### Also try: - lwall | bc and lwall | cat + + ./wall | bc + + ./wall | cat + + +and enter some input like: + + x*x + 2^x + quit # for the cat version + What we found amazing was how the flow of control was transferred between subroutines. Careful inspection will show that the array of From 7d369d888204f218d0e7ccfd7cac4e10d90c53a2 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 13 Feb 2023 09:01:54 -0800 Subject: [PATCH 3/3] Typo fix in 1987/hines/README.md --- 1987/hines/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1987/hines/README.md b/1987/hines/README.md index 3ce57d360..4fff722a2 100644 --- a/1987/hines/README.md +++ b/1987/hines/README.md @@ -24,7 +24,7 @@ structured programmers. This program takes goto statements to their logical conclusion. The layout and choice of names are classic. We consider this to be a beautiful counter-example for Frank Rubin's -letter to ACM form titled: *"GOTO Considered Harmful" Considered Harmful*. +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`.