From 7cfbc1e30c8565e78a2b64baf6623f0243581b23 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sun, 9 Jul 2023 07:16:44 -0700 Subject: [PATCH] Fixes to 1984/decot Make the decot.orig.c what was originally submitted prior to the judges changing a line due to some compilers disliking that line. The alt version does not have this fix applied. Note that I yanked paste the line so if there was a typo that's there too though it appears not to have that problem. Updated Makefile noting that the purpose of the entry is to print out rubbish so if one sees nonsense it's expected. Fix README.md to refer to decot.orig.c instead of decot.alt.c for the change made by the judges (that is to see it prior to the judges' change). --- 1984/decot/Makefile | 1 + 1984/decot/README.md | 4 +--- 1984/decot/decot.orig.c | 2 +- bugs.md | 17 +++++++++++++++++ 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/1984/decot/Makefile b/1984/decot/Makefile index 3ff473135..34d192d6d 100644 --- a/1984/decot/Makefile +++ b/1984/decot/Makefile @@ -135,6 +135,7 @@ all: data ${TARGET} ${PROG}: ${PROG}.c ${CC} ${CFLAGS} $< -o $@ ${LIBS} + @echo "NOTE: this program prints out a string of garbage." # alternative executable # diff --git a/1984/decot/README.md b/1984/decot/README.md index 383f55de2..f132f42ac 100644 --- a/1984/decot/README.md +++ b/1984/decot/README.md @@ -46,9 +46,7 @@ for(signal=0;*k *x * __FILE__ *i;) do { ``` -To see what we mean look at the source file in the -[archive/archive-1984.tar.bz2](/archive-1984.tar.bz2) tarball or -[decot.alt.c](decot.alt.c). +To see what we mean look at the [original source file](decot.orig.c). ## Author's remarks: diff --git a/1984/decot/decot.orig.c b/1984/decot/decot.orig.c index 031519b57..f843ece9e 100644 --- a/1984/decot/decot.orig.c +++ b/1984/decot/decot.orig.c @@ -12,7 +12,7 @@ struct tag{int x0,*xO;} *main(i, dup, signal) { { - for(signal=0;*k *x * __FILE__ *i;) do { + for(signal=0;*k * x * __FILE__ *i;) do { (printf(&*"'\",x); /*\n\\", (*((double(tag,u)(*)())&floor))(i))); goto _0; diff --git a/bugs.md b/bugs.md index 1f3c53d8d..3a3680b31 100644 --- a/bugs.md +++ b/bugs.md @@ -427,6 +427,23 @@ Cody! # 1984 +## [1984/decot](1984/decot/decot.c) ([README.md](1984/decot/README.md) +## STATUS: INABIAF - please **DO NOT** fix + +The purpose of this program is to print out a string of rubbish. In particular +you should see something like: + +```sh +$ ./decot +'",x); /* +\ +``` + +without a newline after the `\`. This is not a bug. + + + +## STATUS: INABIAF - please **DO NOT** fix ## [1984/laman](1984/laman/laman.c) ([README.md](1984/laman/README.md) ## STATUS: INABIAF - please **DO NOT** fix