From 1d5fcc04a7a183858f39676d6ee6a79ffae6b75a Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sat, 4 May 2024 16:56:51 -0700 Subject: [PATCH] fix makrdown links to HTML files that use a %%TOKEN%% --- 2018/mills/README.md | 2 +- 2018/mills/index.html | 2 +- 2019/adamovsky/README.md | 2 +- 2019/adamovsky/index.html | 2 +- 2019/poikola/README.md | 2 +- 2019/poikola/index.html | 2 +- 2020/ferguson1/bugs.html | 4 +- 2020/ferguson1/bugs.md | 12 +- 2020/ferguson1/gameplay.html | 12 +- 2020/ferguson1/gameplay.md | 12 +- 2020/ferguson1/spoilers.html | 8 +- 2020/ferguson1/spoilers.md | 4 +- 2020/ferguson1/terminals.html | 4 +- 2020/ferguson1/terminals.md | 2 +- 2020/ferguson1/troubleshooting.html | 12 +- 2020/ferguson1/troubleshooting.md | 6 +- bin/README.md | 2 +- bin/index.html | 2 +- bugs.html | 4 +- bugs.md | 4 +- nojs-menu.html | 32 +-- nojs-menu.md | 32 +-- thanks-for-help.html | 332 ++++++++++++++-------------- thanks-for-help.md | 332 ++++++++++++++-------------- 24 files changed, 414 insertions(+), 414 deletions(-) diff --git a/2018/mills/README.md b/2018/mills/README.md index e64e78189..344cb6051 100644 --- a/2018/mills/README.md +++ b/2018/mills/README.md @@ -526,7 +526,7 @@ contest scheduling, I chose not to wait for the actual 50th anniversary). I had thought of writing self-hosting compilers for a stripped-down version of C, or maybe even a version of the B language... At the same time, I was obsessed with the idea of allowing [mullender.c from -1984](%%REPO_URL%%/1984/mullender/index.html) to run. Although +1984](../../1984/mullender/index.html) to run. Although that was still a possibility on an interpreted version of B or a stripped-down version of C, it felt cheap, as it would be [mullender.c](%%REPO_URL%%/1984/mullender/mullender.c) only in spirit. diff --git a/2018/mills/index.html b/2018/mills/index.html index b69cc96c2..59167532b 100644 --- a/2018/mills/index.html +++ b/2018/mills/index.html @@ -766,7 +766,7 @@ emulator.

contest scheduling, I chose not to wait for the actual 50th anniversary). I had thought of writing self-hosting compilers for a stripped-down version of C, or maybe even a version of the B language… At the same time, I was -obsessed with the idea of allowing mullender.c from +obsessed with the idea of allowing mullender.c from 1984 to run. Although that was still a possibility on an interpreted version of B or a stripped-down version of C, it felt cheap, as it would be diff --git a/2019/adamovsky/README.md b/2019/adamovsky/README.md index 69a6ba256..423648dcc 100644 --- a/2019/adamovsky/README.md +++ b/2019/adamovsky/README.md @@ -291,7 +291,7 @@ be applied. [6]: https://en.wikipedia.org/wiki/Lambda_calculus "Lambda Calculus on Wikipedia" [7]: https://en.wikipedia.org/wiki/Combinatory_logic "Combinatory Logic on Wikipedia" [8]: https://inazz.jp/unlambda/ "Online Unlambda interpreter" -[9]: %%REPO_URL%%/2014/birken/index.html "Best use of port 1701" +[9]: ../../2014/birken/index.html "Best use of port 1701"

Introduction (SPOILER ALERT)

-

In the gameplay.html file I have given enough +

In the gameplay.html file I have given enough information to know how the game looks, how to move the snake, how to pause etc. In this file I am including (some) information on how the game actually works: the technical details as it were, obfuscation techniques and also some of the @@ -710,10 +710,10 @@ refer to a x is possibly confusing even without the negative offset

Of course I don’t have to use negative offsets at all! I could use positive offsets for every time I use negative offsets. But where’s the fun in that? :)

BTW: Some of these are not in the table of expressions in the -HACKING.html file. Also there might be some +HACKING.html file. Also there might be some code in there that is no longer correct (it was before I started obfuscation) though it might be able to give an idea. Spoilers abound in -that file (in addition to this file) but the HACKING.html +that file (in addition to this file) but the HACKING.html file states things that are no longer true: a way of obfuscation itself! Instead of misleading comments it’s misleading statements in the file that explains what some of the things are for!

@@ -1104,7 +1104,7 @@ the score line is updated: so the empty space will be overwritten anyway. And if the score line is made an empty string it doesn’t matter because it’ll appear as all spaces anyway. Thus I could save another three bytes by changing it to:

    !o  && q *U,*V,' ');
-

Technically it would be a " " (see HACKING.html +

Technically it would be a " " (see HACKING.html else for N (not referring to the variable though it might very well matter here too) movements (i.e. due to sizes) you will at times (e.g. after eating a bug) see the snake body char at 0,0. I’m not bothered about that diff --git a/2020/ferguson1/spoilers.md b/2020/ferguson1/spoilers.md index 68a160cfc..3bac111d0 100644 --- a/2020/ferguson1/spoilers.md +++ b/2020/ferguson1/spoilers.md @@ -962,8 +962,8 @@ though because the score line is meant to display something, it squeezes a few more bytes and having a space is hardly an imposition on usage (and for that matter having a 'o' at 0,0 isn't either). -[gameplay.html]: %%REPO_URL%%/2020/ferguson1/gameplay.html -[HACKING.html]: %%REPO_URL%%/2020/ferguson1/HACKING.html +[gameplay.html]: gameplay.html +[HACKING.html]: HACKING.html


diff --git a/2020/ferguson1/terminals.html b/2020/ferguson1/terminals.html index 0983f79d3..52104ad92 100644 --- a/2020/ferguson1/terminals.html +++ b/2020/ferguson1/terminals.html @@ -553,7 +553,7 @@ properly. Because that’s what funny means in this context.

It’d be nice if curses could detect hitting more than one arrow key at the same time so that diagonal directions would be possible but unfortunately it’s not (cat -v confirms this). Even if I were to define four extra keys what -would they be? And what about the head character? The HACKING.html +would they be? And what about the head character? The HACKING.html file has information on this.

I also limit the terminal size to 10 lines/columns but most likely it would require the cheat modes to win and in any event allowing certain low values @@ -574,7 +574,7 @@ from a quick test this holds even with a terminal that has a white background. There is a way to force the background to remain white though that’s by way of monochrome (so no colours); I discuss that and another related terminal specific in the troubleshooting guide (there’s another way but it would take me over the -iocccsize; I talk about it in the HACKING.html.

+iocccsize; I talk about it in the HACKING.html.

Monochrome terminals

diff --git a/2020/ferguson1/terminals.md b/2020/ferguson1/terminals.md index 6143e1799..b1e6b13bf 100644 --- a/2020/ferguson1/terminals.md +++ b/2020/ferguson1/terminals.md @@ -410,7 +410,7 @@ you can also comment out the `init_pair()` calls. Perhaps you only need to add the `return;` to `C()`. My guess is that's the case but I do not know for certain. -[HACKING.html]: %%REPO_URL%%/2020/ferguson1/HACKING.html +[HACKING.html]: HACKING.html [Linux keyboard and console HOWTO]: https://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO.html [Linux keyboard and console HOWTO section 4]: https://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO-4.html [snake-colours.sh]: %%REPO_URL%%/2020/ferguson1/snake-colours.sh diff --git a/2020/ferguson1/troubleshooting.html b/2020/ferguson1/troubleshooting.html index 5d5fcd032..c42d4fe62 100644 --- a/2020/ferguson1/troubleshooting.html +++ b/2020/ferguson1/troubleshooting.html @@ -405,7 +405,7 @@ it as structured as possible/easiest to find.

Because the score line is dynamic in length depending on the terminal size it can happen that the score/status wraps to the next line(s). This can be fixed by -modifying the status line (see HACKING.html but +modifying the status line (see HACKING.html but you shouldn’t need it to be very wide.

@@ -444,7 +444,7 @@ when it does move you’ll see it doesn’t move for long.

Sometimes also it might appear that the movement is delayed but there are numerous causes for this some of which are a busy computer but ultimately it’ll catch up; just give it the time it needs.

-
  • BOTTOM LINE: If you want more information then see the bugs.html +

  • BOTTOM LINE: If you want more information then see the bugs.html file.

  • @@ -615,9 +615,9 @@ at least) it’s at /usr/share/terminfo/6c/linux-m (for macOS Ventu background white and the foreground black. This will of course mean you have no colour but unfortunately changing the background colour of curses would eat too many bytes in the entry (I cite the functions in the -HACKING.html.

    +HACKING.html.

    I discuss colours and terminals in much more detail in -terminals.html.

    +terminals.html.

    The text is hard to see (not bright enough)!

    @@ -687,7 +687,7 @@ example:

    is invalid input because octal only has digits 0 - 7: the resulting size will be 0.

    I discuss the signed/unsigned issue to do with curses and sizes in C being -unsigned in bugs.html but probably there isn’t +unsigned in bugs.html but probably there isn’t anything more to say here.

    Errors and error reporting

    diff --git a/2020/ferguson1/troubleshooting.md b/2020/ferguson1/troubleshooting.md index 1ba511956..9d1b8723d 100644 --- a/2020/ferguson1/troubleshooting.md +++ b/2020/ferguson1/troubleshooting.md @@ -464,10 +464,10 @@ Why does it show snake size as 0 when I specified 1? It's because the max size is 0 and I limit the size to be no bigger than the max size. -[HACKING.html]: %%REPO_URL%%/2020/ferguson1/HACKING.html +[HACKING.html]: HACKING.html [prog.c]: %%REPO_URL%%/2020/ferguson1/prog.c -[bugs.html]: %%REPO_URL%%/2020/ferguson1/bugs.html -[terminals.html]: %%REPO_URL%%/2020/ferguson1/terminals.html +[bugs.html]: bugs.html +[terminals.html]: terminals.html [snake-colours.sh]: %%REPO_URL%%/2020/ferguson1/snake-colours.sh [Snakey]: https://www.hp-lexicon.org/character/gaunt-family/morfin-gaunt/ diff --git a/bin/README.md b/bin/README.md index 925a445cd..9a5a84c60 100644 --- a/bin/README.md +++ b/bin/README.md @@ -9,7 +9,7 @@ files and other content from the [IOCCC GitHub repo](https://github.com/ioccc-src/temp-test-ioccc). -## [bin/](%%DOCROOT_SLASH%%bin/index.html) tools +## [bin/](index.html) tools ### [all-run.sh](%%DOCROOT_SLASH%%bin/all-run.sh) diff --git a/bin/index.html b/bin/index.html index 134aea6a8..596461a84 100644 --- a/bin/index.html +++ b/bin/index.html @@ -383,7 +383,7 @@ content, for the official IOCCC web site.

    inc directory as well as various JSON files and other content from the IOCCC GitHub repo.

    -

    bin/ tools

    +

    bin/ tools

    all-run.sh

    Run a command on all winning entries.

    For example:

    diff --git a/bugs.html b/bugs.html index 69a3d1527..1436b1e38 100644 --- a/bugs.html +++ b/bugs.html @@ -2035,7 +2035,7 @@ sleeping.


    STATUS: compiled executable crashes - please help us fix

    STATUS: doesn’t work with some platforms - please help us fix

    @@ -3174,7 +3174,7 @@ a crash.

    erroneously.

    Also, the maximum file size is 1GB.

    STATUS: INABIAF - please DO NOT fix

    Source code: 2019/yang/prog.c

    diff --git a/bugs.md b/bugs.md index 390f4b155..ffa6cdcb7 100644 --- a/bugs.md +++ b/bugs.md @@ -2445,7 +2445,7 @@ There was no IOCCC in 2003.
    -## [2004/gavin](%%REPO_URL%%/2004/gavin/index.html) +## [2004/gavin](2004/gavin/index.html)
    ### STATUS: compiled executable crashes - please help us fix @@ -4056,7 +4056,7 @@ erroneously. Also, the maximum file size is 1GB.
    -## [2019/yang](%%REPO_URL%%/2019/yang/index.html) +## [2019/yang](2019/yang/index.html)
    ### STATUS: INABIAF - please **DO NOT** fix diff --git a/nojs-menu.html b/nojs-menu.html index c20f7c6cd..5c7023519 100644 --- a/nojs-menu.html +++ b/nojs-menu.html @@ -379,31 +379,31 @@

    Here is the menu you missed because JavaScript is disabled:

    Entries

    Status

    FAQ

    About

    diff --git a/nojs-menu.md b/nojs-menu.md index d7ea354d7..020842bfe 100644 --- a/nojs-menu.md +++ b/nojs-menu.md @@ -2,28 +2,28 @@ ## Entries -* [Winning Entries](%%DOCROOT_SLASH%%years.html) -* [People who have won](%%DOCROOT_SLASH%%authors.html) -* [Location of authors](%%DOCROOT_SLASH%%location.html) -* [Bugs & Misfeatures](%%DOCROOT_SLASH%%bugs.html) +* [Winning Entries](years.html) +* [People who have won](authors.html) +* [Location of authors](location.html) +* [Bugs & Misfeatures](bugs.html) ## Status -* [IOCCC News](%%DOCROOT_SLASH%%news.html) -* [Contest status](%%DOCROOT_SLASH%%status.html) -* [Rules & Guidelines](%%DOCROOT_SLASH%%next/index.html) +* [IOCCC News](news.html) +* [Contest status](status.html) +* [Rules & Guidelines](next/index.html) ## FAQ -* [FAQ](%%DOCROOT_SLASH%%faq.html) -* [How to enter the IOCCC](%%DOCROOT_SLASH%%faq.html#fix_an_entry) -* [Fixing IOCCC entries](%%DOCROOT_SLASH%%faq.html#fix_an_entry) -* [Fixing the web site](%%DOCROOT_SLASH%%faq.html#fix_web_site) -* [Fixing author info](%%DOCROOT_SLASH%%faq.html#fix_author) +* [FAQ](faq.html) +* [How to enter the IOCCC](faq.html#fix_an_entry) +* [Fixing IOCCC entries](faq.html#fix_an_entry) +* [Fixing the web site](faq.html#fix_web_site) +* [Fixing author info](faq.html#fix_author) ## About -* [IOCCC Home](%%DOCROOT_SLASH%%index.html) -* [The IOCCC Judges](%%DOCROOT_SLASH%%contact.html) -* [Contacting the IOCCC](%%DOCROOT_SLASH%%contact.html) -* [Thanks for the help](%%DOCROOT_SLASH%%thanks-for-help.html) +* [IOCCC Home](index.html) +* [The IOCCC Judges](contact.html) +* [Contacting the IOCCC](contact.html) +* [Thanks for the help](thanks-for-help.html) diff --git a/thanks-for-help.html b/thanks-for-help.html index adf7877d5..991cebaea 100644 --- a/thanks-for-help.html +++ b/thanks-for-help.html @@ -656,7 +656,7 @@ rule).

    1986

    Cody made the C file executable so one does not have to do sh ./applin.c or ./applin; they can do either ./applin.c or ./applin.

    @@ -666,7 +666,7 @@ rule).

    Cody added the try.sh script.

    -

    1986/hague

    +

    1986/hague

    Source code: hague.c

    Cody made this use fgets().

    @@ -1309,7 +1309,7 @@ the program’s interactive output.

    Additionally, Cody fixed the shortened version provided by the author in the same way as the original entry, first the compile fix and then later on making it look more like the original by redefining exit and also redefining gets() -to be fgets() in the same way that the original entry is. This way the alt +to be fgets() in the same way that the original entry is. This way the alt version is equivalent in function, like the author intended, but more compact.

    @@ -1406,7 +1406,7 @@ without any type specified and as an implicit int it was not a

    Cody also made the file name in the code (which is the default maze file) not hard-coded but instead be __FILE__.

    -

    Finally Cody added the alternate +

    Finally Cody added the alternate version which will possibly feel more at home with those familiar with vi(m) (it certainly does feel more at home with him): k for forward, h for left and l for right. This version also has a @@ -1525,7 +1525,7 @@ at the end of the program which clears the screen. To make it look most like the original entry Cody left the message before ending curses in and printed another message of the same kind after endwin() was called with the exception that he added a newline at the end of the screen to be more user friendly.

    -

    Cody also added two alt versions, one to +

    Cody also added two alt versions, one to remove the maximum number of moves you may make and another to let you configure the maximum number of moves, even if that is making it harder to win. Naturally the above fix was applied to these versions too.

    @@ -1836,7 +1836,7 @@ files for functions.

    1993/lmfjyh

    Source code: lmfjyh.c

    -

    Cody added an alternate +

    Cody added an alternate version which does what the program did with gcc < 2.3.3. See the index.html file for details and for why this was made the alternate version, not the actual entry.

    @@ -2053,7 +2053,7 @@ the play along the lines of the 1995
    -

    1995/cdua

    +

    1995/cdua

    Source code: cdua.c

    Cody fixed this so that it would work with macOS. Once it could compile it @@ -2069,18 +2069,18 @@ It actually appears to allow 1 but if you specify 4 it says 0, 2 or 3 and it is an error but it’s entirely possible that they will eventually make the defect function as the error message claims.

    -

    1995/dodsond1

    +

    1995/dodsond1

    Source code: dodsond1.c

    Cody added the try.sh script that uses the text file he provided which is input we suggested one try with the entry.

    -

    1995/esde

    +

    1995/esde

    Source code: esde.c

    Cody added the try.sh script.

    -

    1995/garry

    +

    1995/garry

    Source code: garry.c

    Cody fixed the alt code so that it will compile with modern compilers. The @@ -2095,12 +2095,12 @@ alt version is not as important as alt code in other entries. In order to get the paging to work right for the garry.data file leading blank lines had to be added.

    -

    1995/heathbar

    +

    1995/heathbar

    Source code: 1995/heathbar

    Cody added the try.sh script.

    -

    1995/leo

    +

    1995/leo

    Source code: leo.c

    Cody added the try.sh script.

    @@ -2115,12 +2115,12 @@ which only allows main() to have 0, 2 or 3 args. This is done by a function (pain() as it’s annoying that clang is this way :-) ) that main() calls which has the four args.

    -

    1995/savastio

    +

    1995/savastio

    Source code: savastio.c

    Cody added the try.sh script.

    -

    1995/schnitzi

    +

    1995/schnitzi

    Source code: schnitzi.c

    Cody added the try.sh script.

    @@ -2138,7 +2138,7 @@ entry decrypts the text or something like that.

    1996

    -

    1996/august

    +

    1996/august

    Source code: august.c

    Cody fixed a segfault in this program that prevented it from working right and @@ -2152,7 +2152,7 @@ problem existed in macOS.

    commands that were given by the judges in the try section, with the fix above applied.

    -

    1996/dalbec

    +

    1996/dalbec

    Source code: dalbec.c

    Cody proposed a fix for this to compile with clang and Landon implemented it @@ -2169,7 +2169,7 @@ numbers on the same line. This was not put in an alternate version but perhaps it should be.

    Cody also added the try.sh script.

    -

    1996/eldby

    +

    1996/eldby

    Source code: eldby.c

    Cody provided an alternate version which uses @@ -2179,7 +2179,7 @@ flashing by rapidly (it affects him too but he also thinks it moves too fast nowadays anyway). We recommend that you try the alternate version first due to these reasons.

    -

    1996/gandalf

    +

    1996/gandalf

    Source code: gandalf.c

    Cody fixed this to compile and work with modern systems. As he loved the @@ -2191,12 +2191,12 @@ either different output or the same output that we briefly pointed out.

    BTW: it is perilous to try the patience of Gandalf. Go ahead, try it! :-)

    -

    1996/huffman

    +

    1996/huffman

    Source code: huffman.c

    Cody added the try.sh script.

    -

    1996/jonth

    +

    1996/jonth

    Source code: jonth.c

    Cody fixed this to not segfault under macOS. The problem was that the function @@ -2209,7 +2209,7 @@ the function in the pointer assignment.

    Cody added the try.sh script.

    -

    1996/schweikh1

    +

    1996/schweikh1

    Source code: schweikh1.c

    Cody added the try.sh script.

    @@ -2221,7 +2221,7 @@ on other systems (the other file is gcc-lib/sparc-sun-solaris2.5/2.7.2/include/errno.h). Thus Cody also added this to the Makefile despite the fact that very few probably use Solaris nowadays.

    -

    1996/schweikh2

    +

    1996/schweikh2

    Source code: schweikh2.c

    Cody added the try.sh script with a few commands to try @@ -2229,14 +2229,14 @@ along with a shorter version of something the author suggested one try (it is suggested that one try the longer version too but it will run in an infinite loop so having it in a script is less desired).

    -

    1996/schweikh3

    +

    1996/schweikh3

    Source code: schweikh3.c

    Cody updated the Makefile so that if it fails to compile it will try he method suggested for SunOS rather than having to update the Makefile manually or running a more complicated command: now one can just run make.

    -

    1996/westley

    +

    1996/westley

    Source code: westley.c

    Cody fixed a segfault in this entry as well as it displaying environmental @@ -2258,7 +2258,7 @@ provided by the author, Cody added ‘.sh’ to the clock[1-3].sh s

    1998

    -

    1998/banks

    +

    1998/banks

    Source code: /banks.c

    Cody improved the Makefile to allow for easier redefining the control @@ -2272,7 +2272,7 @@ have them like with Macs. The alt build hard codes the page up and page down alternatives because not doing so would overly complicate both builds and since you can configure them all in both builds it shouldn’t matter.

    -

    1998/bas1

    +

    1998/bas1

    Source code: bas1.c

    Cody, out of an abundance of caution, added a second arg to main() as some @@ -2284,13 +2284,13 @@ be a problem at such a time.

    Cody also added the bas1.sh script to simplify running the program.

    -

    1998/bas2

    +

    1998/bas2

    Source code: bas2.c

    Cody added the try.sh script which runs some default actions as well as allowing one to pass in different file names or strings.

    -

    1998/chaos

    +

    1998/chaos

    Source code: chaos.c

    Cody added a call to endwin() to restore terminal sanity (echo etc.) when @@ -2299,7 +2299,7 @@ exiting the program (in both versions).

    all the data files, giving instructions on how to rotate and zoom in and out, prior to each run.

    -

    1998/df

    +

    1998/df

    Source code: df.c

    Cody changed a int * used for fopen(3) to be a FILE * to be more correct @@ -2312,7 +2312,7 @@ for why this has to be done this way.

    loop until one hits q (or Q) or sends intr/ctrl-c. He also proposed there’s a way to cheat very easily. Can you figure out how?

    -

    1998/dlowe

    +

    1998/dlowe

    Source code: dlowe.c

    Cody made the program more portable by changing the void return type of main() @@ -2320,18 +2320,18 @@ to be int (in both versions).

    Cody added the scripts try.sh, try.alt.sh, pootify.sh and pootify.cgi.sh for a fun example use of the -program, a local pootifier of web pages and a CGI pootifier. See historical +program, a local pootifier of web pages and a CGI pootifier. See historical remarks for more details on the pootify scripts.

    -

    c1998/dloweneil

    +

    c1998/dloweneil

    Source code: dloweneil.c

    Cody added alt code which has vi(m) movement (in addition to the other keys except for dropping it’s not d but j or space) keys as well as allowing one to quit the game.

    -

    1998/dorssel

    +

    1998/dorssel

    Source code: dorssel.c

    Cody added the try.sh script.

    @@ -2354,7 +2354,7 @@ code look like the original with just an extra arg.

    Cody also added the try.sh script to show the output of some of the expressions that we selected.

    -

    1998/schnitzi

    +

    1998/schnitzi

    Source code: schnitzi.c

    Cody fixed invalid data types which prevented this entry from working, causing a @@ -2373,7 +2373,7 @@ doing:

    Cody also added the try.sh script to help users try the commands that we recommended as well as some added by him.

    -

    index.html

    +

    index.html

    Source code: 1998/schweikh1

    Cody fixed this for modern systems (it did not work at all) and added an @@ -2418,7 +2418,7 @@ the macros in the form of gcc -dM i.e., the lines are in the form < compute the character count in the code according to the contest rules of 1998 in the file charcount.pl.

    -

    1998/schweikh2

    +

    1998/schweikh2

    Source code: schweikh2.c

    Cody fixed the code to not trigger an internal compiler error in gcc:

    @@ -2428,17 +2428,17 @@ in the file had to be changed to ONE(O(1,1,2,6,0,6)). For an interesting historical explanation and further details and fun, see the -historical remarks in the +historical remarks in the index.html.

    Cody also added an int after register in main() in case clang decides to have a problem with that in the future which is not entirely out of the question.

    Cody also added the try.sh script.

    -

    1998/schweikh3

    +

    1998/schweikh3

    Source code: schweikh3.c

    -

    Cody added the alternate code which allows one +

    Cody added the alternate code which allows one to reconfigure the size constant in the rare case that the author wrote about occurs.

    Cody made main() have two args out of an abundance of caution as some versions @@ -2461,7 +2461,7 @@ for more details.

    There actually is a web page for the tool and this was added to the author information for the entry. It has not been added to any JSON file.

    -

    1998/tomtorfs

    +

    1998/tomtorfs

    Source code: /tomtorfs.c](https://github.com/ioccc-src/temp-test-ioccc/blob/master/1998/tomtorfs/tomtorfs.c)

    Cody fixed the assumption that EOF is -1 (the author noted that it assumes @@ -2477,21 +2477,21 @@ commands that we recommended.

    2000

    -

    2000/anderson

    +

    2000/anderson

    Source code: anderson.c

    Cody changed this entry to use fgets(3) instead of gets(3). This involved changing the K arg to gets(3) to &K in fgets(3).

    Cody also added the try.sh script.

    -

    2000/bmeyer

    +

    2000/bmeyer

    Source code: bmeyer.c

    Cody added the try.sh script with some improvements to the commands we recommended like not assuming the number of columns one has in their terminal.

    -

    2000/briddlebane

    +

    2000/briddlebane

    Source code: briddlebane.c

    Cody fixed this to compile in systems that require one to explicitly link in @@ -2499,13 +2499,13 @@ terminal.

    Cody also added the try.sh script for those who are feeling a bit too confident, cocky or even happy :-)

    -

    2000/dhyang

    +

    2000/dhyang

    Source code: dhyang.c

    Cody made this more portable by changing the void main to int main.

    He also added the try.sh script.

    -

    2000/dlowe

    +

    2000/dlowe

    Source code: dlowe.c

    Cody fixed this to compile with more recent perl versions; the symbol that’s now @@ -2513,13 +2513,13 @@ feeling a bit too confident, cocky or even happy :-)

    under Linux after this change.

    Cody also added the try.sh script.

    -

    2000/jarijyrki

    +

    2000/jarijyrki

    Source code: jarijyrki.c

    Cody made it easier to compile this in some cases by adding X11/ to the includes of Xlib.h and keysym.h.

    -

    2000/natori

    +

    2000/natori

    Source code: natori.c

    Cody fixed this for modern compilers. Depending on the compiler it would either @@ -2540,18 +2540,18 @@ like the original entry but with the two fixes.

    variable which although works it is incongruent with the other Makefiles and is more confusing (even if not confusing).

    -

    2000/primenum

    +

    2000/primenum

    Source code: primenum.c

    Cody made this more portable by changing the void main to int main.

    Cody also added the try.sh script.

    -

    2000/rince

    +

    2000/rince

    Source code: rince.c

    Cody added the try.sh script.

    -

    2000/robison

    +

    2000/robison

    Source code: robison.c

    Cody fixed an infinite loop that occurred if invalid input was entered, flooding @@ -2561,12 +2561,12 @@ the screen with:

    on it to assign to the ints, much like with 1987/lievaart. The strings are char[5] and the % specifier is %4s which is enough for the game.

    -

    2000/schneiderwent

    +

    2000/schneiderwent

    Source code: schneiderwent.c

    Cody added the try.sh script.

    -

    2000/thadgavin

    +

    2000/thadgavin

    Source code: thadgavin.c

    Cody fixed the code and added an appropriate make rule so that the @@ -2603,10 +2603,10 @@ index.html for details on that. Note that this alternate version only will impac the curses and the SDL versions as Cody does not have a DOS system to test the other version in.

    -

    2000/tomx

    +

    2000/tomx

    Source code: tomx.c

    -

    Cody added the alt code based on the +

    Cody added the alt code based on the author’s remarks with a fix for modern systems and he also added the two scripts, try.sh and try.alt.sh for the main code and the alt code respectively.

    @@ -2676,7 +2676,7 @@ sings Ten in the Bed attempt to use the program as it was designed but if compiling as 32-bit fails it will at least run the supplementary program as a 64-bit program directly.

    -

    2001/bellard

    +

    2001/bellard

    Source code: bellard.c

    Cody fixed this to compile with clang but according to the author this will not @@ -2713,7 +2713,7 @@ versions of clang it is. With gcc we can get away with compiler that does not support this would not work. Thus we use the modification by Yusuke.

    -

    2001/cheong

    +

    2001/cheong

    Source code: cheong.c

    Cody fixed this to work with clang by adding another function that is allowed to @@ -2724,7 +2724,7 @@ valid, BTW.

    Cody also added the try.sh script.

    He also fixed it to check the number of args.

    -

    2001/coupard

    +

    2001/coupard

    Source code: coupard.c

    Cody added a value to return in main() to make it more portable.

    @@ -2747,7 +2747,7 @@ those with macOS) (to do with sound; see his sound devices in macOS).

    Cody added the try.sh.

    -

    2001/ctk

    +

    2001/ctk

    Source code: ctk.c

    The ANSI escape codes were no longer valid but Yusuke provided a patch to fix @@ -2756,10 +2756,10 @@ the ANSI escape codes. This works with both Linux and macOS.

    etc.) after exiting even if you don’t press ‘q’, if you crash or if you kill the program prematurely. This was done by adding an explicit call to e() at the end of main().

    -

    Cody also added the alt code that adds +

    Cody also added the alt code that adds vi(m) movement keys.

    -

    2001/dgbeards

    +

    2001/dgbeards

    Source code: dgbeards.c

    The author provided two changes: one to speed it up and one to make it not crash @@ -2769,7 +2769,7 @@ might be) too good to get rid of so he kept that in.

    He also points out that there is a way to get the computer to automatically lose very quickly. Do you know what it is?

    -

    2001/herrmann1

    +

    2001/herrmann1

    Source code: herrmann1.c

    Cody fixed this so that the when compiling the code the program is not executed @@ -2785,7 +2785,7 @@ shellcheck. In particular there were quite a few:

    errors/warnings.

    Cody also added the try.sh script.

    -

    2001/herrmann2

    +

    2001/herrmann2

    Source code: herrmann2.c

    Cody fixed this to work with both 64-bit and 32-bit compilers by changing most @@ -2796,7 +2796,7 @@ useful than any other place as the command to try is quite long with C code.

    For some reason the original code was missing (presumingly because it had been added to .gitignore by accident) but Cody restored it from the archive.

    -

    2001/kev

    +

    2001/kev

    Source code: kev.c

    Cody improved the Makefile to allow one to more easily set up the port, @@ -2821,7 +2821,7 @@ without having to sacrifice playability by running make.

    done at a time where it was said to be a bug that should be fixed, for better or worse.

    -

    2001/schweikh

    +

    2001/schweikh

    Source code: schweikh.c

    Cody fixed this to not crash if not enough args as this was not documented by @@ -2829,7 +2829,7 @@ the author. The other problems are documented so were not fixed. See index.html for details.

    Cody also added the try.sh script.

    -

    2001/westley

    +

    2001/westley

    Source code: westley.c

    Cody added the script try.sh to automate a heap of commands @@ -2840,15 +2840,15 @@ described in the index.html, based on the author’s remarks.

    2004

    -

    2004/anonymous

    +

    2004/anonymous

    Source code: anonymous.c

    Cody added the try.sh script.

    -

    2004/arachnid

    +

    2004/arachnid

    Source code: arachnid.c

    -

    Cody added an alternate version which +

    Cody added an alternate version which allows those like himself used to h, j, k and l movement keys to not get lost. Non rogue players, vi users and Dvorak typists are invited to get lost (or use the original version)! :-)

    @@ -2857,7 +2857,7 @@ use the original version)! :-)

    file but a maze file. The extension .maz was not chosen to help with (some?) browsers knowing what to do with it.

    -

    2004/burley

    +

    2004/burley

    Source code: burley.c

    Cody fixed this to compile with clang and to work with both gcc and @@ -2886,10 +2886,10 @@ nowadays and other entries had to have this same kind of change,

    Finally the optimiser cannot be enabled so the compiler flags were changed for this, forcing -O0.

    -

    2004/gavare

    +

    2004/gavare

    Source code: gavare.c

    -

    Cody added three different alternate +

    Cody added three different alternate versions: