From 8a98e80051a6790c2a9a7219836ee811bc4641a0 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 25 Jul 2024 17:22:09 -0700 Subject: [PATCH] Format fix html files of 1996 --- 1996/august/README.md | 10 +++----- 1996/august/index.html | 9 +++----- 1996/eldby/README.md | 4 ++-- 1996/eldby/index.html | 4 ++-- 1996/gandalf/README.md | 4 ++-- 1996/gandalf/index.html | 4 ++-- 1996/jonth/README.md | 15 ++++-------- 1996/jonth/index.html | 11 ++++----- 1996/rcm/README.md | 19 +++++++++------- 1996/rcm/index.html | 19 +++++++++++----- 1996/schweikh1/README.md | 48 ++++++++++++++++++--------------------- 1996/schweikh1/index.html | 47 ++++++++++++++++++++++---------------- 1996/schweikh2/README.md | 8 +++---- 1996/schweikh2/index.html | 8 +++---- 1996/schweikh3/README.md | 14 ++++++------ 1996/schweikh3/index.html | 17 ++++++++------ 1996/westley/README.md | 6 ++--- 1996/westley/index.html | 4 ++-- bugs.html | 4 ++-- bugs.md | 4 ++-- 20 files changed, 130 insertions(+), 129 deletions(-) diff --git a/1996/august/README.md b/1996/august/README.md index cff504d83..417b1aac8 100644 --- a/1996/august/README.md +++ b/1996/august/README.md @@ -13,10 +13,6 @@ ``` -NOTE: some compilers will compile this code into infinite loops! If the above -cat line (or one of the ones later in the try section) does not execute in a -very short amount of time, then you may need to fix your compiler or use gcc. - The above should print a `!` followed by a newline. @@ -167,7 +163,7 @@ And another... cat august.oo august.oo august.oo test.oo | ./august ``` -
+
Fitting the byte code for the compiler into the initial comment was a challenge. I had to strip the compiler/interpreter of @@ -191,7 +187,7 @@ coder), but decompression then takes up too much code. Maybe this would be a way to fit it all into the 1536 bytes, but I don't have time to try it. -
+
Execution starts at `main()`. Nothing can be used before it is defined. `getchar()` and `putchar()` are predefined functions. @@ -260,7 +256,7 @@ Terminals are in quotes, `()` is used for bracketing. stars: "*"* ``` -
+
Well, that is enough ranting for now. diff --git a/1996/august/index.html b/1996/august/index.html index 4f189312f..f536f9171 100644 --- a/1996/august/index.html +++ b/1996/august/index.html @@ -412,9 +412,6 @@ Location: SE - Kingdom of Sweden (

To use:

    cat august.c test.oc | ./august > test.oo
     ./august < test.oo
-

NOTE: some compilers will compile this code into infinite loops! If the above -cat line (or one of the ones later in the try section) does not execute in a -very short amount of time, then you may need to fix your compiler or use gcc.

The above should print a ! followed by a newline.

Try:

    ./try.sh
@@ -487,7 +484,7 @@ level of interpretation:

    cat august.oo august.oo test.oo | ./august

And another…

    cat august.oo august.oo august.oo test.oo | ./august
-
+

Fitting the byte code for the compiler into the initial comment was a challenge. I had to strip the compiler/interpreter of a lot of functionality to bring down their sizes. The initial @@ -507,7 +504,7 @@ the code further with a better entropy coder (e.g. an arithmetic coder), but decompression then takes up too much code. Maybe this would be a way to fit it all into the 1536 bytes, but I don’t have time to try it.

-
+

Execution starts at main(). Nothing can be used before it is defined. getchar() and putchar() are predefined functions.

Below is a description of the OC grammar.

@@ -568,7 +565,7 @@ defined. getchar() and putchar() are predefined functi "char" stars stars: "*"* -
+

Well, that is enough ranting for now.

./jonth ``` -These are supposed to happen. As is written in the -[The Jargon File](http://catb.org/jargon/html/F/feature.html): - -``` - That's not a bug, that's a feature. -``` - ## Try: @@ -67,7 +60,7 @@ as arguments to this game. Sometimes on Solaris, X gets confused and this program core dumps. The solution: give two display arguments (`./jonth host:0 host:0`). -If one (or both) windows look like a copy of the window(s) below, try +If one (or both) windows look like a copy of the window(s) below, try the `xrefresh(1)` command. Have a `nice(1)` day. diff --git a/1996/jonth/index.html b/1996/jonth/index.html index 1b99ba9ab..c8eed042d 100644 --- a/1996/jonth/index.html +++ b/1996/jonth/index.html @@ -409,7 +409,7 @@ Location: NO - Kingdom of Norway (

To build:

    make all
-

NOTE: this entry requires the X11/Xlib.h header file and the X11 library to +

NOTE: this entry requires the X11/Xlib.h header file and the X11 library to compile. For more information see the FAQ on “X11”.

Bugs and (Mis)features:

@@ -421,14 +421,11 @@ FAQ on “X11”.

For more detailed information see 1996/jonth in bugs.html.

To use:

    ./jonth :0 :0
-

NOTE: the two boards will be on top of each other so you will have to drag one +

NOTE: the two boards will be on top of each other so you will have to drag one off the other so that you can properly play.

-

NOTE: if there is no X service open this will crash. If this is the case you +

NOTE: if there is no X service open this will crash. If this is the case you might try:

    ./jonth
-

These are supposed to happen. As is written in the -The Jargon File:

-
    That's not a bug, that's a feature.

Try:

    ./jonth host1:0 host2:0

Judges’ remarks:

@@ -440,7 +437,7 @@ as arguments to this game.

Known bugs:

Sometimes on Solaris, X gets confused and this program core dumps. The solution: give two display arguments (./jonth host:0 host:0).

-

If one (or both) windows look like a copy of the window(s) below, try +

If one (or both) windows look like a copy of the window(s) below, try the xrefresh(1) command.

Have a nice(1) day.

$ g++ schweikh3.c @@ -69,7 +69,7 @@ the `new' identifier which is a C++ reserved word: ``` The source fails to compile on compilers that recognize the inline -keyword by default, e.g. gcc: +keyword by default, e.g. `gcc`: ``` $ gcc schweikh3.c @@ -80,14 +80,14 @@ keyword by default, e.g. gcc: schweikh3.c:97: parse error before `void' ``` -The `-ansi` option to gcc fixes this. +The `-ansi` option to `gcc` fixes this. The source fails to compile on obsolete systems with obsolete memory models due to the identifier `far` (to be honest: this is untested :-) ). -Does your indent cope with backslash/newline pairs in between keywords like in -`re\turn` where the `re\` is at the end of a line? ? Solaris' indent inserts +Does your `indent(1)` cope with backslash/newline pairs in between keywords like in +`re\turn` where the `re\` is at the end of a line? ? Solaris' `indent(1)` inserts spaces and thereby renders the source uncompilable... The indented source will exhibit different semantics when indenting diff --git a/1996/schweikh3/index.html b/1996/schweikh3/index.html index 9aeee37a4..f92be6175 100644 --- a/1996/schweikh3/index.html +++ b/1996/schweikh3/index.html @@ -417,7 +417,7 @@ You have been warned.

    ./schweikh3

Judges’ remarks:

The source fails to compile on compilers that recognize the inline -keyword by default. For gcc, you may need to use -ansi.

+keyword by default. For gcc, you may need to use -ansi.

See the file schweikh3.info for example output from various systems.

But still it is a useful utility. To use try:

@@ -433,11 +433,14 @@ disgusting. Besides, requiring iso646.h will render the program uncompilable on many systems that have not yet incorporated Amendment One to The Standard. If you, dear reader, suffer from this disease, just read iso646.h.

-

There are no if' statements. They have been replaced byswitch () case 1:orswitch () case 0:etc. At least oneswitchhas a declaration after the opening brace, booh! Identifiers are named after random programming languages, BASIC (asBasic`), +

There are no if statements. They have been replaced by +switch () case 1: or switch () case 0: etc. At least one +switch has a declaration after the opening brace, booh! +Identifiers are named after random programming languages, BASIC (as Basic), COBOL, F77, awk etc.

You have to select maximum ANSI C conformance of your compiler. The source fails to compile under a C++ compiler due to -the `new’ identifier which is a C++ reserved word:

+the new identifier which is a C++ reserved word:

    $ g++ schweikh3.c
     schweikh3.c:9: parse error before `new'
     schweikh3.c:16: parse error before `new'
@@ -447,19 +450,19 @@ the `new’ identifier which is a C++ reserved word:

[...] schweikh3.c:91: confused by earlier errors, bailing out

The source fails to compile on compilers that recognize the inline -keyword by default, e.g. gcc:

+keyword by default, e.g. gcc:

    $ gcc schweikh3.c
     schweikh3.c:46: parse error before `void'
     schweikh3.c: In function `main':
     schweikh3.c:91: parse error before `inline'
     schweikh3.c: At top level:
     schweikh3.c:97: parse error before `void'
-

The -ansi option to gcc fixes this.

+

The -ansi option to gcc fixes this.

The source fails to compile on obsolete systems with obsolete memory models due to the identifier far (to be honest: this is untested :-) ).

-

Does your indent cope with backslash/newline pairs in between keywords like in -re\turn where the re\ is at the end of a line? ? Solaris’ indent inserts +

Does your indent(1) cope with backslash/newline pairs in between keywords like in +re\turn where the re\ is at the end of a line? ? Solaris’ indent(1) inserts spaces and thereby renders the source uncompilable…

The indented source will exhibit different semantics when indenting changes the number of lines (due to using the __LINE__ macro in an diff --git a/1996/westley/README.md b/1996/westley/README.md index 6887c6a7a..25aa66653 100644 --- a/1996/westley/README.md +++ b/1996/westley/README.md @@ -4,9 +4,9 @@ make all ``` - There is another version which is the original entry. See [alternate - version](#alternate-code) for details as to how to use and why it was made the - alt version. +There is another version which is the original entry. See [Alternate +code](#alternate-code) for details as to how to use and why it was made the +alt version. ## To use: diff --git a/1996/westley/index.html b/1996/westley/index.html index d498c2f4a..b92d82c31 100644 --- a/1996/westley/index.html +++ b/1996/westley/index.html @@ -409,8 +409,8 @@ Location: US - United States of America

To build:

    make all
-

There is another version which is the original entry. See alternate -version for details as to how to use and why it was made the +

There is another version which is the original entry. See Alternate +code for details as to how to use and why it was made the alt version.

To use:

    ./clock1.sh
diff --git a/bugs.html b/bugs.html
index 2c78dc2fd..69fecc36b 100644
--- a/bugs.html
+++ b/bugs.html
@@ -1570,7 +1570,7 @@ compilers to use the program but this file is missing. Can you provide it?

Source code: 1996/gandalf/gandalf.c

Information: 1996/gandalf/index.html

-

The link was http://www.tc3.co.uk/~gandalf/G.HTML but this no longer exists as +

The link was http://www.tc3.co.uk/~gandalf/G.HTML but this no longer exists as it was instead requiring a login / password.

Do you have an updated link? We welcome your help!

@@ -1615,7 +1615,7 @@ almost be done except that some of the output of the

Information: 1996/jonth/index.html

If X is not running this program will very likely crash or do something funny. This should NOT be fixed.

-

NOTE: the two boards will be on top of each other so you will have to drag one +

NOTE: the two boards will be on top of each other so you will have to drag one off the other so that you can properly play.

As well: the link which was http://www.uio.no/~jonth is no longer valid and diff --git a/bugs.md b/bugs.md index 42d1a6c10..084989f8e 100644 --- a/bugs.md +++ b/bugs.md @@ -1704,7 +1704,7 @@ We would appreciate anyone who has it or even just knows the name! Thank you. ### Source code: [1996/gandalf/gandalf.c](%%REPO_URL%%/1996/gandalf/gandalf.c) ### Information: [1996/gandalf/index.html](1996/gandalf/index.html) -The link was http://www.tc3.co.uk/~gandalf/G.HTML but this no longer exists as +The link was `http://www.tc3.co.uk/~gandalf/G.HTML` but this no longer exists as it was instead requiring a login / password. Do you have an updated link? We welcome your help! @@ -1764,7 +1764,7 @@ But since it does not for the time being it is advisable to just redirect If X is not running this program will very likely crash or do something funny. This should NOT be fixed. -NOTE: the two boards will be on top of each other so you will have to drag one +**NOTE**: the two boards will be on top of each other so you will have to drag one off the other so that you can properly play.