From e5ef2978f6948b31e8ea4ab64aadad476a20632e Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 11 Mar 2023 08:05:11 -0800 Subject: [PATCH] Revisit 1985 entries Updated the README.md files. Renamed shapiro/shapiro.orig.c -> shapiro/shapiro.alt.c. This is one of the exceptions where we have the alt version as this alt version is not actually in the archive tarball (there are other exceptions for various reasons). --- 1985/applin/README.md | 3 +-- 1985/august/README.md | 10 +++++++++- 1985/lycklama/README.md | 4 +++- 1985/shapiro/README.md | 4 ++-- 1985/shapiro/{shapiro.orig.c => shapiro.alt.c} | 0 1985/sicherman/Makefile | 3 +-- 1985/sicherman/README.md | 9 ++++----- 7 files changed, 20 insertions(+), 13 deletions(-) rename 1985/shapiro/{shapiro.orig.c => shapiro.alt.c} (100%) diff --git a/1985/applin/README.md b/1985/applin/README.md index 1d03d457b..166983f60 100644 --- a/1985/applin/README.md +++ b/1985/applin/README.md @@ -6,8 +6,7 @@ Jack Applin [with help from Robert Heckendorn] make all -## Try: - +## To run: ./applin diff --git a/1985/august/README.md b/1985/august/README.md index f88e6bded..4ba694b92 100644 --- a/1985/august/README.md +++ b/1985/august/README.md @@ -7,11 +7,19 @@ Lennart Augustsson make all +## To run: + + ./august ## Try: - ./august + ./august | head -n 10 + +If you have the `primes(6)` tool (sometimes part of BSD Games) you can see +what of the output in the first N (say 15) lines are primes: + + while read -r n ; do primes "$n" $((n + 1)) ; done < <((./august | head -n 15 )) ## Judges' comments: diff --git a/1985/lycklama/README.md b/1985/lycklama/README.md index 2d95515ea..3bf070056 100644 --- a/1985/lycklama/README.md +++ b/1985/lycklama/README.md @@ -6,8 +6,10 @@ Ed Lycklama make all -NOTE: This entry uses non-standard args to main() that do not work with modern compilers. +## To run: + + ./lycklama < some_file ## Try: diff --git a/1985/shapiro/README.md b/1985/shapiro/README.md index ffe872d2d..e1fa78e1d 100644 --- a/1985/shapiro/README.md +++ b/1985/shapiro/README.md @@ -16,13 +16,13 @@ Carl Shapiro As submitted, this program was 3 lines (2 of defines and 1 of code). To make news & mail happy we split the last line into 7. The file -[shapiro.orig.c](shapiro.orig.c) is the original version. +[shapiro.alt.c](shapiro.alt.c) is the original version. This program was selected for the 1987 t-shirt collection. We found this program is be simply a**maze**ing! Run this program without -arguments and notice the output. +arguments and notice the output. Copyright (c) 1985, Landon Curt Noll & Larry Bassel. diff --git a/1985/shapiro/shapiro.orig.c b/1985/shapiro/shapiro.alt.c similarity index 100% rename from 1985/shapiro/shapiro.orig.c rename to 1985/shapiro/shapiro.alt.c diff --git a/1985/sicherman/Makefile b/1985/sicherman/Makefile index 2a9ee097a..01d2e7cf4 100644 --- a/1985/sicherman/Makefile +++ b/1985/sicherman/Makefile @@ -182,8 +182,7 @@ all: ${DATA} ${TARGET} supernova deep_magic magic charon pluto ${PROG}: ${PROG}.c - @echo "NOTE: This entry will not compile when using clang because it does not support" - @echo " -traditional-cpp but it should compile with gcc." + @echo "NOTE: NOTE: this entry requires a compiler that supports -traditional-cpp." ${CC} ${CFLAGS} $< -o $@ ${LIBS} # alternative executable diff --git a/1985/sicherman/README.md b/1985/sicherman/README.md index bfcc2a137..22bd6d2a4 100644 --- a/1985/sicherman/README.md +++ b/1985/sicherman/README.md @@ -6,13 +6,12 @@ Col. G. L. Sicherman make all -NOTE: This entry uses non-standard args to main() that do not work with modern compilers. +NOTE: This entry requires a compiler that support `-traditional-cpp`. -NOTE: This entry requires a non-standard K&R C compiler to compile. ## Judges' comments: -This program abuses the C preprocessor so much that some /lib/cpp's fail to +This program abuses the C preprocessor so much that some /lib/cpp fail to strip out all of the comments on the first pass! If you were able to understand Decot's entry in 1984, you will have a head start on this one. @@ -21,8 +20,8 @@ Be sure to run this program through lint! If your lint works correctly, it should warn you that the argument 'Manual' isn't used. Like the program says, what's that mean? -Run the program without arguments and enter the letters 'a' thru 'm' -on a line. Now enter the letters 'n' thru 'z'. But to borrow a quote +Run the program without arguments and enter the letters 'a' through 'm' +on a line. Now enter the letters 'n' through 'z'. But to borrow a quote from Richard Stallman: If you think you understand what this code does, then you don't, so read it again! Explain why: