From ec7c48cd59bb75f6236421ee8f9b658001e3f344 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 22 Jun 2024 06:43:37 -0700 Subject: [PATCH] Fixes in html files of 1990 --- 1990/README.md | 7 ++++--- 1990/dg/README.md | 2 +- 1990/dg/index.html | 2 +- 1990/index.html | 7 ++++--- 1990/scjones/README.md | 10 ++++------ 1990/scjones/index.html | 10 ++++++---- 1990/stig/README.md | 4 ++-- 1990/stig/index.html | 4 ++-- 1990/tbr/README.md | 9 +++++---- 1990/tbr/index.html | 9 +++++---- 1990/westley/README.md | 11 +++++++++-- 1990/westley/index.html | 11 +++++++++-- bugs.html | 5 ++++- bugs.md | 5 ++++- 14 files changed, 60 insertions(+), 36 deletions(-) diff --git a/1990/README.md b/1990/README.md index 806b31e83..208c3e524 100644 --- a/1990/README.md +++ b/1990/README.md @@ -7,8 +7,9 @@ You may then wish to look at the Author's remarks for even more details. This year, the Grand Prize won a standing ovation at USENIX. -The ["Strangest abuse of the rules"](stig/index.html) award was given this -year to stress the fact that starting in 1991, entries should be shell-specific. +The [Strangest abuse of the rules](stig/index.html) award was given this +year to stress the fact that starting in [1991](../years.html#1991), entries +should be shell-specific. This year was the first year that we accepted ANSI C entries. It was interesting to note that the ANSI C entries were as a whole less portable than @@ -20,7 +21,7 @@ her role as official chef of the contest. Her opinions regarding some of the contest entries were appreciated. [Rules](rules.txt) and [results](../years.html#1990) were -posted to comp.lang.c, comp.sources.unix, and alt.sources. They have been made +posted to _comp.lang.c_, _comp.sources.unix_, and _alt.sources_. They have been made available on a wide number of USENET archive sites such as uunet. diff --git a/1990/dg/README.md b/1990/dg/README.md index 44279b653..e4e5867b7 100644 --- a/1990/dg/README.md +++ b/1990/dg/README.md @@ -45,7 +45,7 @@ than 4, but when I do that I get a complaint "defines nested too deeply". ### Obfuscation spoiler: -This is another rot13 job (believe it or not) - the `#defines` are a +This is another rot13 job (believe it or not) - the `#define`s are a novel way of adding tokens: `#define b12(x) 12 x` means that at some point in the source a `12` is followed by the compressed nested `#define`s. The `b12` gets the previous compression as an argument, and diff --git a/1990/dg/index.html b/1990/dg/index.html index 5bdb6f07b..b70ce39d9 100644 --- a/1990/dg/index.html +++ b/1990/dg/index.html @@ -419,7 +419,7 @@ which we have done for the wider audience.

If my preprocessor could hack it, I could write this as one single line rather than 4, but when I do that I get a complaint “defines nested too deeply”.

Obfuscation spoiler:

-

This is another rot13 job (believe it or not) - the #defines are a +

This is another rot13 job (believe it or not) - the #defines are a novel way of adding tokens: #define b12(x) 12 x means that at some point in the source a 12 is followed by the compressed nested #defines. The b12 gets the previous compression as an argument, and diff --git a/1990/index.html b/1990/index.html index 1b175a3c9..59cf8d0ba 100644 --- a/1990/index.html +++ b/1990/index.html @@ -392,8 +392,9 @@ on how to compile it and how to run the winning program. Look at the winning source and try to figure how it does what it does! You may then wish to look at the Author’s remarks for even more details.

This year, the Grand Prize won a standing ovation at USENIX.

-

The “Strangest abuse of the rules” award was given this -year to stress the fact that starting in 1991, entries should be shell-specific.

+

The Strangest abuse of the rules award was given this +year to stress the fact that starting in 1991, entries +should be shell-specific.

This year was the first year that we accepted ANSI C entries. It was interesting to note that the ANSI C entries were as a whole less portable than the K&R C entries. We hope that in future contests people will enter more @@ -402,7 +403,7 @@ obfuscated and challenging ANSI C programs.

her role as official chef of the contest. Her opinions regarding some of the contest entries were appreciated.

Rules and results were -posted to comp.lang.c, comp.sources.unix, and alt.sources. They have been made +posted to comp.lang.c, comp.sources.unix, and alt.sources. They have been made available on a wide number of USENET archive sites such as uunet.

Final Comments

IMPORTANT NOTE: See contact.html for up to date contact details diff --git a/1990/scjones/README.md b/1990/scjones/README.md index 1b415f76f..e843bce1a 100644 --- a/1990/scjones/README.md +++ b/1990/scjones/README.md @@ -28,12 +28,10 @@ ISO character set. The Author sent us this note after he was informed that he won: -``` - Although I am quite grateful for the "ANSI Committee's Worst Abuse of C" title - (were you aware that I am a member of the committee or is the double meaning - unintentional?), I was really hoping for something more along the lines of - "Closest Resemblance to Line Noise." :-) -``` +> Although I am quite grateful for the "`ANSI Committee's Worst Abuse of C`" title +(were you aware that I am a member of the committee or is the double meaning +unintentional?), I was really hoping for something more along the lines of +"`Closest Resemblance to Line Noise`." :-) ... it was unintentional. diff --git a/1990/scjones/index.html b/1990/scjones/index.html index 81c97203c..e2a14340e 100644 --- a/1990/scjones/index.html +++ b/1990/scjones/index.html @@ -413,10 +413,12 @@ was a dark and stormy night for C when the ANSI C committee added trigraphs to the standard. Too bad that they didn’t just simply require a more reasonable ISO character set.

The Author sent us this note after he was informed that he won:

-
    Although I am quite grateful for the "ANSI Committee's Worst Abuse of C" title
-    (were you aware that I am a member of the committee or is the double meaning
-    unintentional?), I was really hoping for something more along the lines of
-    "Closest Resemblance to Line Noise."  :-)
+
+

Although I am quite grateful for the “ANSI Committee's Worst Abuse of C” title +(were you aware that I am a member of the committee or is the double meaning +unintentional?), I was really hoping for something more along the lines of +“Closest Resemblance to Line Noise.” :-)

+

… it was unintentional.

Author’s remarks:

Since this year’s contest is dedicated to ANSI C, here is a strictly conforming diff --git a/1990/stig/README.md b/1990/stig/README.md index 3b683894e..f1e3caa28 100644 --- a/1990/stig/README.md +++ b/1990/stig/README.md @@ -11,7 +11,7 @@ make all ``` -NOTE: that's not a typo or mistake but one can also do: +**NOTE**: that's not a typo or mistake but one can also do: ``` ./o @@ -25,7 +25,7 @@ C-shell alias to a Bourne-like shell alias. Note that `shst.c` is renamed to [stig.c](%%REPO_URL%%/1990/stig/stig.c) in the distribution. -WARNING: This program's `how to compile` is too specific to a particular shell. +**WARNING**: This program's `how to compile` is too specific to a particular shell. The obfuscation of this program is more related to shell obfuscation than C obfuscation. This type of entry will not be permitted in future contests. diff --git a/1990/stig/index.html b/1990/stig/index.html index c625e35bd..e27f70470 100644 --- a/1990/stig/index.html +++ b/1990/stig/index.html @@ -405,13 +405,13 @@ Location: NO - Kingdom of Norway (

    make all

To use:

    make all
-

NOTE: that’s not a typo or mistake but one can also do:

+

NOTE: that’s not a typo or mistake but one can also do:

    ./o

Judges’ remarks:

We changed the alias that the author’s suggested alias from a C-shell alias to a Bourne-like shell alias.

Note that shst.c is renamed to stig.c in the distribution.

-

WARNING: This program’s how to compile is too specific to a particular shell. +

WARNING: This program’s how to compile is too specific to a particular shell. The obfuscation of this program is more related to shell obfuscation than C obfuscation. This type of entry will not be permitted in future contests.

Author’s remarks:

diff --git a/1990/tbr/README.md b/1990/tbr/README.md index 192328a7c..b8255bb41 100644 --- a/1990/tbr/README.md +++ b/1990/tbr/README.md @@ -77,7 +77,7 @@ documented, are not considered bugs as such in the context of the contest. ## Alternate code: The authors supplied us with a slightly smaller unformatted version -of the program which we include below: +of the program: ``` #define D ,close( @@ -92,9 +92,10 @@ of the program which we include below: e(x){x<0?write(2,"?\n$ "-x/4,2),x+1||(exit(1),0):5;} ``` -and in the [alternate source](%%REPO_URL%%/1990/tbr/tbr.alt.c). It has the `exit()` returns `void` fix -as well as the `gets()` to `fgets()` fix applied to it to make it functionally -equivalent like the authors intended. +This is the [alternate source](%%REPO_URL%%/1990/tbr/tbr.alt.c) except that it +has the `exit()` returns `void` fix as well as the `gets(3)` to `fgets(3)` fix +applied to it to make it functionally equivalent like the authors intended. The +above code is their original alternate code. ### Alternate build: diff --git a/1990/tbr/index.html b/1990/tbr/index.html index ff040a6d5..d49b05032 100644 --- a/1990/tbr/index.html +++ b/1990/tbr/index.html @@ -449,7 +449,7 @@ just exit or logout? Hint: see the authors’ remarks. documented, are not considered bugs as such in the context of the contest.

Alternate code:

The authors supplied us with a slightly smaller unformatted version -of the program which we include below:

+of the program:

    #define D ,close(
     char*c,q[512],m[256],*v[99],**u,*i[3];int f[2],p;main(){for(m[m[60]=m[62]=
     32]=m[*m=124[m]=9]=6;e(-8),gets(1+(c=q))||(exit(0),0);r(0,0))for(;*++c;);}
@@ -460,9 +460,10 @@ of the program which we include below:

0),e(open(*i,0)):5,t?dup2(t,1)D t):i[2]?9 D 1),e(creat(i[2],438)):2,e(execvp(*u,u))):e(chdir(u[1])*2):6;} e(x){x<0?write(2,"?\n$ "-x/4,2),x+1||(exit(1),0):5;}
-

and in the alternate source. It has the exit() returns void fix -as well as the gets() to fgets() fix applied to it to make it functionally -equivalent like the authors intended.

+

This is the alternate source except that it +has the exit() returns void fix as well as the gets(3) to fgets(3) fix +applied to it to make it functionally equivalent like the authors intended. The +above code is their original alternate code.

Alternate build:

    make alt

Alternate use:

diff --git a/1990/westley/README.md b/1990/westley/README.md index 7b9db3580..cf3ddc187 100644 --- a/1990/westley/README.md +++ b/1990/westley/README.md @@ -4,6 +4,10 @@ make all ``` +There is an alternate version for those with an old enough compiler or for those +who wish to see how C changed over the years. See [Alternate +code](#alternate-code) below. + ### Bugs and (Mis)features: @@ -40,7 +44,8 @@ The alternate code is provided to show how C changed. ### Alternate build: -If you have an old enough compiler try and to see how C has changed over the years: +If you have an old enough compiler or if you want to see how C changed over the +years: ``` make alt @@ -49,6 +54,8 @@ If you have an old enough compiler try and to see how C has changed over the yea ### Alternate use: +Assuming that `westley.alt` compiles: + ``` ./westley.alt ``` @@ -88,7 +95,7 @@ Lint complains about everything - null effect, xxx may be used before set, statement not reached, return(e) and return. Lint dumps core on some systems. My personal favorite lint complaint is -**_"warning: eroticism unused in function main"._** +> warning: eroticism unused in function `main`. Also obviously, `(char)lotte` and `(char*)lie` are incompatible types... diff --git a/1990/westley/index.html b/1990/westley/index.html index 1dcb790d8..8cb347f96 100644 --- a/1990/westley/index.html +++ b/1990/westley/index.html @@ -403,6 +403,9 @@ Location: US - United States of America

To build:

    make all
+

There is an alternate version for those with an old enough compiler or for those +who wish to see how C changed over the years. See Alternate +code below.

Bugs and (Mis)features:

The current status of this entry is:

    STATUS: INABIAF - please **DO NOT** fix
@@ -415,9 +418,11 @@ Location: US - United States of America

Alternate code:

The alternate code is provided to show how C changed.

Alternate build:

-

If you have an old enough compiler try and to see how C has changed over the years:

+

If you have an old enough compiler or if you want to see how C changed over the +years:

    make alt

Alternate use:

+

Assuming that westley.alt compiles:

    ./westley.alt <number>

Judges’ remarks:

If you would rather “Daisy” someone other than Westley, rename @@ -441,7 +446,9 @@ have an “English-like” syntax.

Lint complains about everything - null effect, xxx may be used before set, statement not reached, return(e) and return. Lint dumps core on some systems. My personal favorite lint complaint is

-

“warning: eroticism unused in function main”.

+
+

warning: eroticism unused in function main.

+

Also obviously, (char)lotte and (char*)lie are incompatible types…