From 1cb070de20a8c49b9ea573e06a17c5fa468607f0 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 25 Oct 2023 06:00:36 -0700 Subject: [PATCH] Add missing ':' to Alternate code sections This was done as: sgit -e 's/\(# Alternate code\)$/\1:/g' '*README.md' The heading levels and other things to do with alternate code that are being discussed have not been addressed here. That will come later. This is, as noted, just adding the missing ':' where it was missing. The command does NOT touch it when it is not prefixed with '# ' because there are cases where normal lines end with 'Alternate code' (these will be turned into links later on). --- 1988/dale/README.md | 2 +- 1993/lmfjyh/README.md | 2 +- 2004/arachnid/README.md | 2 +- 2004/hoyle/README.md | 2 +- 2004/kopczynski/README.md | 2 +- 2012/konno/README.md | 2 +- 2012/zeitak/README.md | 2 +- 2015/duble/README.md | 2 +- 2015/howe/README.md | 2 +- 2020/kurdyukov1/README.md | 2 +- 2020/kurdyukov3/README.md | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/1988/dale/README.md b/1988/dale/README.md index 40142f2be..22b06c7b1 100644 --- a/1988/dale/README.md +++ b/1988/dale/README.md @@ -38,7 +38,7 @@ behaviour? ./dale "$(printf "the following files exist in this directory:\n%s\n" *)" ``` -### Alternate code +### Alternate code: If you have an old enough compiler you can try the original version in [dale.alt.c](dale.alt.c). To use: diff --git a/1993/lmfjyh/README.md b/1993/lmfjyh/README.md index 2b532a5d1..6cc947c17 100644 --- a/1993/lmfjyh/README.md +++ b/1993/lmfjyh/README.md @@ -39,7 +39,7 @@ If you have gcc < 2.3.3 (i.e. the entry can compile): ``` -### Alternate code +### Alternate code: To use: diff --git a/2004/arachnid/README.md b/2004/arachnid/README.md index 7a57ff874..76cf1080f 100644 --- a/2004/arachnid/README.md +++ b/2004/arachnid/README.md @@ -36,7 +36,7 @@ QWERTY keyboards. Rogue players, vi users, and Dvorak typists are invited to get lost (or use the alt version)! -### Alternate code +### Alternate code: To use: diff --git a/2004/hoyle/README.md b/2004/hoyle/README.md index eed4d2be9..592c258d4 100644 --- a/2004/hoyle/README.md +++ b/2004/hoyle/README.md @@ -24,7 +24,7 @@ make ./hoyle 2 0 1 0 -0.001 ``` -### Alternate code +### Alternate code: An alternate version of this entry, [hoyle.alt.c](hoyle.alt.c), is provided. This alternate code has a missing newline and used a non-standard tab stop size. diff --git a/2004/kopczynski/README.md b/2004/kopczynski/README.md index fb01eb7c9..decc3c940 100644 --- a/2004/kopczynski/README.md +++ b/2004/kopczynski/README.md @@ -42,7 +42,7 @@ What happens if you feed the program source to the program? Can you figure out why? -### Alternate code +### Alternate code: The judges modified the program to print its result. The original program returned the result as an exit code: diff --git a/2012/konno/README.md b/2012/konno/README.md index 4aa4283ce..560d46e70 100644 --- a/2012/konno/README.md +++ b/2012/konno/README.md @@ -24,7 +24,7 @@ NOTE: N is an integer from 0 to 255. ./konno 30 ``` -### Alternate code +### Alternate code: An alternate version of this entry, [konno.alt.c](konno.alt.c), is provided. This alternate code is an unobfuscated version of the winning code. diff --git a/2012/zeitak/README.md b/2012/zeitak/README.md index 11d86fdad..5c2f48552 100644 --- a/2012/zeitak/README.md +++ b/2012/zeitak/README.md @@ -28,7 +28,7 @@ try [incorrect.c](incorrect.c) and the program itself. NOTE: it prints an error and exits on the first nesting error so it will not detect multiple issues! -### Alternate code +### Alternate code: An alternate version of this entry, [zeitak.alt.c](zeitak.alt.c), is provided. The file [zeitak.alt.c](zeitak.alt.c) provides a version that has been slightly diff --git a/2015/duble/README.md b/2015/duble/README.md index 8fbd72269..d075444fc 100644 --- a/2015/duble/README.md +++ b/2015/duble/README.md @@ -29,7 +29,7 @@ DRAFT=1 ./prog < prog.c ./prog < prog.c ``` -## Alternate code +## Alternate code: An alternate version of this entry, prog.alt.c, is provided. This alternate code is discussed below in the "prog.c vs prog.alt.c" section of the Author's diff --git a/2015/howe/README.md b/2015/howe/README.md index 42b86a960..d6e1d04a3 100644 --- a/2015/howe/README.md +++ b/2015/howe/README.md @@ -44,7 +44,7 @@ cp war-and-peace.txt nuked.tmp ./avgtime.sh 100 ./prog war-and-peace.txt nuked.tmp ``` -### Alternate code +### Alternate code: An alternate version of this entry, `prog.alt.c`, is provided. This alternate code does not use a 64 bit FNV hash. diff --git a/2020/kurdyukov1/README.md b/2020/kurdyukov1/README.md index dc2e08681..760148016 100644 --- a/2020/kurdyukov1/README.md +++ b/2020/kurdyukov1/README.md @@ -25,7 +25,7 @@ echo IOCCC | ./prog ./prog < prog.x86_64.asm ``` -### Alternate code +### Alternate code: An even smaller alternate version of this entry, prog.alt.c, is provided. This code does not contain any headers, nor any workaround for WIN32 based platforms. diff --git a/2020/kurdyukov3/README.md b/2020/kurdyukov3/README.md index 20d039f5f..82fb50794 100644 --- a/2020/kurdyukov3/README.md +++ b/2020/kurdyukov3/README.md @@ -28,7 +28,7 @@ echo International Obfuscated C Code Contest | ./prog ./prog < input.txt ``` -### Alternate code +### Alternate code: There is an alternate version of this code in `prog.alt.c` where the main code is a macro.