From e0a9b41a32f93874538985e82625b428deb8567d Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sun, 2 Apr 2023 12:00:55 -0700 Subject: [PATCH 1/2] Format and typo fixes in 2019/adamovsky/README.md --- 2019/adamovsky/README.md | 249 ++++++++++++++++++++------------------- 1 file changed, 128 insertions(+), 121 deletions(-) diff --git a/2019/adamovsky/README.md b/2019/adamovsky/README.md index 4e3fc5bfe..2263899ea 100644 --- a/2019/adamovsky/README.md +++ b/2019/adamovsky/README.md @@ -1,6 +1,6 @@ # Most functional interpreter - Ondřej Adamovský +Ondřej Adamovský ## To build: @@ -29,9 +29,9 @@ make Even after pre-processing and indenting, the C code of this entry is about as understandable as the Unlambda code. -Pretending that we don't know a bit of functional programming :) and lacking a better way -to understand the entry but to fuzz it, -we stumbled on a string of bytes which crashed it: +Pretending that we don't know a bit of functional programming :) and lacking a +better way to understand the entry but to fuzz it, we stumbled on a string of +bytes which crashed it: ``` ````.0`.0`.0`c.0``sssss @@ -43,38 +43,40 @@ Functional programming is not a panacea against core dumps, after all. **»A highly structured state state machine«** -### Purpose +### Purpose: The purpose of this program is to allow you to play Colossal Cave Adventure as implemented by [Kunihiko Sakamoto][1]. As that was written in [Unlambda programming language][2] designed by David Alexander Madore it has to be an Unlambda interpreter. -### Aesthetics +### Aesthetics: The program grew a bit too long so I had to use several macros to downsize it. That unfortunately reduced my options for program layout. I decided to separate -it into two portions. The initial macro section where I had limited resources and -you should disregard its shape, unless you like it, and the rest is a separator in the -form of a single line followed by a section signifying the function of the program, -a block with removed shape of lambda character. Even the official IOCCC size tool -acknowledges this: When you call `./iocccsize -i Date: Sun, 2 Apr 2023 12:06:57 -0700 Subject: [PATCH 2/2] Fixes in 2019/burton/Makefile and README.md The Makefile had a bad character, a '%' instead of a '$' which caused a rule to fail. Format fixes in README.md. There is one thing I'm not sure about. It appears to be a mistake but I'm not sure if there is some meaning. Line 66: Input should be less than ten million octets toavoidthisproblem. But the last 'word' should be, at least if it is a mistake, four words. I have not changed it as the context was not clear enough to be sure it was incorrect. This can be dealt with another time. --- 2019/burton/Makefile | 2 +- 2019/burton/README.md | 31 ++++++++++++++++--------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/2019/burton/Makefile b/2019/burton/Makefile index c79bf4860..ad0d624c2 100644 --- a/2019/burton/Makefile +++ b/2019/burton/Makefile @@ -135,7 +135,7 @@ ${PROG}.clean: ${PROG}.clean.c ${CC} ${CFLAGS} $< -o $@ ${LIBS} remarks: README.md - %{RM} -f $@ + ${RM} -f $@ ${CP} $? $@ correct: newlines remarks 256 check diff --git a/2019/burton/README.md b/2019/burton/README.md index 060a5b4c3..9814e5c33 100644 --- a/2019/burton/README.md +++ b/2019/burton/README.md @@ -1,6 +1,6 @@ # Best one-liner - Dave Burton +Dave Burton ## To build: @@ -28,7 +28,7 @@ unix utilities available as winning entries. ## Author's comments: -### Synopsis +### Synopsis: Feed it anything on stdin. The output should look familiar. @@ -40,31 +40,32 @@ WARN="-Wno-implicit-int -Wno-missing-variable-declarations -Wno-parentheses" cc -Wall -Wextra -Weverything -pedantic $WARN -include stdio.h -o prog prog.c ``` -### Description +### Description: -Included is a test script, useful for the corner cases. -As in all good Unix programs, it is silent upon success; any output demonstrates an error. -Instead of checking correctness, the check script can simply output the results: -(The Makefile contains the spoiler): +Included is a test script, useful for the corner cases. As in all good Unix +programs, it is silent upon success; any output demonstrates an error. Instead +of checking correctness, the check script can simply output the results: (The +Makefile contains the spoiler): ```sh out=cat ./check ./prog ``` -Interestingly, and a spoiler here: MacOS and FreeBSD implement the common utility "correctly". -CentOS and Ubuntu both share a "flawed" utility that changes output format based upon input redirection or pipeline(!). -As well, the latter two also behave slightly differently on what they count as whitespace: -\a and \b are both counted whitespace(!), even though the relevant man pages on these systems -omit these characters from the description. +Interestingly, and a spoiler here: macOS and FreeBSD implement the common +utility "correctly". CentOS and Ubuntu both share a "flawed" utility that +changes output format based upon input redirection or pipeline(!). As well, the +latter two also behave slightly differently on what they count as whitespace: +`\a` and `\b` are both counted whitespace(!), even though the relevant man pages +on these systems omit these characters from the description. -This program follows FreeBSD and MacOS, the arbiters of correct for these purposes. +This program follows FreeBSD and macOS, the arbiters of correct for these purposes. -### Limits +### Limits: Requires the C locale and ASCII character set. Input should be less than ten million octets toavoidthisproblem. -### See Also +### See Also: You can enjoy this code from beginning to end. No whitespace was harmed in the creation of this program.