Merge pull request #2480 from xexyl/manifest
Fix manifest for 1992/westley
This commit is contained in:
27 files changed
+137
-150
No files matched your search
+8
-7
@@ -27,9 +27,9 @@ high quality.
|
||||
|
||||
FYI: By tradition, we do not record the count of the number entries,
|
||||
nor do we give our our guess as to the number of entries
|
||||
received. For folks who wonder, we can say that we consumed
|
||||
about 2000 pages of output (printing between 2 and 4 normal
|
||||
pages per side) during the judging process this year.
|
||||
received. For folks who wonder, we can say that **we consumed
|
||||
about _2000 pages of output_ (printing between 2 and 4 normal
|
||||
pages per side)** during the judging process this year.
|
||||
|
||||
The new instructions for submitting entries worked well - we were
|
||||
able to write scripts to unpack them and eliminate duplicates.
|
||||
@@ -49,7 +49,7 @@ a winning entry for the past 6 years!
|
||||
## A few notes regarding future contests:
|
||||
|
||||
We did not give awards to some traditional contest categories such as
|
||||
"Best Layout". We felt that to do so would deny awards to more
|
||||
"_Best Layout_". We felt that to do so would deny awards to more
|
||||
deserving entries. These categories have not been eliminated. We will
|
||||
likely be awarding them in future years.
|
||||
|
||||
@@ -59,10 +59,11 @@ judging process a little harder, so we may request that this not
|
||||
be done this in the future.
|
||||
|
||||
Some thought has been given to a separate obfuscated perl contest.
|
||||
Watch comp.lang.perl for details!
|
||||
Watch _comp.lang.perl_ for details!
|
||||
|
||||
Be sure to wait until the 1993 rules are posted before submitting entries.
|
||||
We may fine tune the rules to reflect the some ideas above.
|
||||
Be sure to wait until the [1993 rules](../1993/rules.txt) are posted before
|
||||
submitting entries. We may fine tune the rules to reflect some of the ideas
|
||||
above.
|
||||
|
||||
Please send us comments and suggestions what we have expressed above.
|
||||
Also include anything else that you would like to see in future contests.
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
The current status of this entry is:
|
||||
|
||||
```
|
||||
STATUS: known bug - please help us fix
|
||||
STATUS: INABIAF - please **DO NOT** fix
|
||||
```
|
||||
|
||||
@@ -262,7 +261,7 @@ the program will print the error message:
|
||||
```
|
||||
|
||||
(The exact text of the above error messages varies from machine to
|
||||
machine.) The four programs which read from stdin require lines
|
||||
machine.) The four programs which read from `stdin` require lines
|
||||
shorter than 999 characters.
|
||||
|
||||
The other info files are `adrian.grep.[1-6]` which contain the six
|
||||
|
||||
@@ -405,8 +405,7 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
|
||||
<pre><code> make all</code></pre>
|
||||
<h3 id="bugs-and-misfeatures">Bugs and (Mis)features:</h3>
|
||||
<p>The current status of this entry is:</p>
|
||||
<pre><code> STATUS: known bug - please help us fix
|
||||
STATUS: INABIAF - please **DO NOT** fix</code></pre>
|
||||
<pre><code> STATUS: INABIAF - please **DO NOT** fix</code></pre>
|
||||
<p>For more detailed information see <a href="../../bugs.html#1992_adrian">1992/adrian in bugs.html</a>.</p>
|
||||
<h2 id="try">Try:</h2>
|
||||
<pre><code> ./try.sh</code></pre>
|
||||
@@ -539,7 +538,7 @@ many seconds.</p>
|
||||
the program will print the error message:</p>
|
||||
<pre><code> Segmentation fault (core dumped)</code></pre>
|
||||
<p>(The exact text of the above error messages varies from machine to
|
||||
machine.) The four programs which read from stdin require lines
|
||||
machine.) The four programs which read from <code>stdin</code> require lines
|
||||
shorter than 999 characters.</p>
|
||||
<p>The other info files are <code>adrian.grep.[1-6]</code> which contain the six
|
||||
examples that appear above, and from, which is used to emulate the
|
||||
|
||||
+15
-17
@@ -39,22 +39,20 @@ An alternate version of this entry, [albert.alt.c](%%REPO_URL%%/1992/albert/albe
|
||||
Leo Broukhis, before he was an IOCCC judge, sent the IOCCC
|
||||
judges this Email message:
|
||||
|
||||
```
|
||||
From: leo _at_ zycad -dot- com (Leo Broukhis)
|
||||
Date: Tue, 30 Jan 96 17:37:51 PST
|
||||
To: judges _at_ toad -dot- com
|
||||
Subject: IOCCC 1992 - a bug
|
||||
|
||||
Dear Judges,
|
||||
|
||||
albert.c (even in its fixed form) still has a bug. Although I don't
|
||||
remember the number that exposed the bug (afair, resulting in coredump)
|
||||
in albert.orig.c that has been fixed in albert.c,
|
||||
|
||||
I've found a number exposing another bug: 10000000001 (that's 9 0's).
|
||||
Both albert and albert.orig loop without printing anything, although
|
||||
the first factor is 101 and is usually found in an instant.
|
||||
```
|
||||
> From: leo _at_ zycad -dot- com (Leo Broukhis)<br>
|
||||
> Date: Tue, 30 Jan 96 17:37:51 PST<br>
|
||||
> To: judges _at_ toad -dot- com<br>
|
||||
> Subject: IOCCC 1992 - a bug<br>
|
||||
>
|
||||
> Dear Judges,
|
||||
>
|
||||
> `albert.c` (even in its fixed form) still has a bug. Although I don't
|
||||
> remember the number that exposed the bug (afair, resulting in coredump)
|
||||
> in `albert.orig.c` that has been fixed in `albert.c`,
|
||||
>
|
||||
> I've found a number exposing another bug: 10000000001 (that's 9 0's).
|
||||
> Both albert and albert.orig loop without printing anything, although
|
||||
> the first factor is 101 and is usually found in an instant.
|
||||
|
||||
The [albert.alt.c](%%REPO_URL%%/1992/albert/albert.alt.c) file is the fixed file, whereas the
|
||||
[albert.c](%%REPO_URL%%/1992/albert/albert.c) is the file before applying Leo Broukhis' fix.
|
||||
@@ -155,7 +153,7 @@ for some years.
|
||||
recursion and is quite jumpy. This program shares these disadvantages in a
|
||||
modified form.
|
||||
4. The Conversion is to be found in Knuth, not so the Observation. The
|
||||
Observation: "if it ends in a zero, it is divisible by ten".
|
||||
Observation: "_if it ends in a zero, it is divisible by ten_".
|
||||
|
||||
|
||||
<!--
|
||||
|
||||
+14
-15
@@ -416,20 +416,19 @@ Location: <a href="../../location.html#NL">NL</a> - <em>Kingdom of the Netherlan
|
||||
<p>An alternate version of this entry, <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/albert/albert.alt.c">albert.alt.c</a>, is provided.
|
||||
Leo Broukhis, before he was an IOCCC judge, sent the IOCCC
|
||||
judges this Email message:</p>
|
||||
<pre><code> From: leo _at_ zycad -dot- com (Leo Broukhis)
|
||||
Date: Tue, 30 Jan 96 17:37:51 PST
|
||||
To: judges _at_ toad -dot- com
|
||||
Subject: IOCCC 1992 - a bug
|
||||
|
||||
Dear Judges,
|
||||
|
||||
albert.c (even in its fixed form) still has a bug. Although I don't
|
||||
remember the number that exposed the bug (afair, resulting in coredump)
|
||||
in albert.orig.c that has been fixed in albert.c,
|
||||
|
||||
I've found a number exposing another bug: 10000000001 (that's 9 0's).
|
||||
Both albert and albert.orig loop without printing anything, although
|
||||
the first factor is 101 and is usually found in an instant.</code></pre>
|
||||
<blockquote>
|
||||
<p>From: leo <em>at</em> zycad -dot- com (Leo Broukhis)<br>
|
||||
Date: Tue, 30 Jan 96 17:37:51 PST<br>
|
||||
To: judges <em>at</em> toad -dot- com<br>
|
||||
Subject: IOCCC 1992 - a bug<br></p>
|
||||
<p>Dear Judges,</p>
|
||||
<p><code>albert.c</code> (even in its fixed form) still has a bug. Although I don’t
|
||||
remember the number that exposed the bug (afair, resulting in coredump)
|
||||
in <code>albert.orig.c</code> that has been fixed in <code>albert.c</code>,</p>
|
||||
<p>I’ve found a number exposing another bug: 10000000001 (that’s 9 0’s).
|
||||
Both albert and albert.orig loop without printing anything, although
|
||||
the first factor is 101 and is usually found in an instant.</p>
|
||||
</blockquote>
|
||||
<p>The <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/albert/albert.alt.c">albert.alt.c</a> file is the fixed file, whereas the
|
||||
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/albert/albert.c">albert.c</a> is the file before applying Leo Broukhis’ fix.</p>
|
||||
<h3 id="alternate-build">Alternate build:</h3>
|
||||
@@ -489,7 +488,7 @@ for some years.</li>
|
||||
recursion and is quite jumpy. This program shares these disadvantages in a
|
||||
modified form.</li>
|
||||
<li>The Conversion is to be found in Knuth, not so the Observation. The
|
||||
Observation: “if it ends in a zero, it is divisible by ten”.</li>
|
||||
Observation: “<em>if it ends in a zero, it is divisible by ten</em>”.</li>
|
||||
</ol>
|
||||
<!--
|
||||
|
||||
|
||||
@@ -228,7 +228,7 @@ to be executed, set the temporary to `1`.
|
||||
Thanks to Bill Pugh for bringing the loop-ability of the AE to
|
||||
my attention.
|
||||
|
||||
`buzzard.1` was originally named 'cb', for obvious reasons, and is
|
||||
`buzzard.1` was originally named `cb`, for obvious reasons, and is
|
||||
dedicated to the memory of Charles Barrett.
|
||||
|
||||
|
||||
|
||||
@@ -542,7 +542,7 @@ is to stick <code>x</code> in a temporary, and if the current code is not about
|
||||
to be executed, set the temporary to <code>1</code>.</p>
|
||||
<p>Thanks to Bill Pugh for bringing the loop-ability of the AE to
|
||||
my attention.</p>
|
||||
<p><code>buzzard.1</code> was originally named ‘cb’, for obvious reasons, and is
|
||||
<p><code>buzzard.1</code> was originally named <code>cb</code>, for obvious reasons, and is
|
||||
dedicated to the memory of Charles Barrett.</p>
|
||||
<!--
|
||||
|
||||
|
||||
@@ -10,14 +10,14 @@ code](#alternate-code) below for details.
|
||||
|
||||
## To use:
|
||||
|
||||
First, you must make sure that `first` is made first (even though `make all`
|
||||
should make first first :-) ):
|
||||
**First**, you must make sure that `first` is made **first** (even though `make all`
|
||||
should make **first _first_** :-) ):
|
||||
|
||||
``` <!---sh-->
|
||||
make first
|
||||
```
|
||||
|
||||
Second:
|
||||
**Second**:
|
||||
|
||||
``` <!---sh-->
|
||||
# get help:
|
||||
@@ -27,13 +27,13 @@ Second:
|
||||
cat third demo5.th | ./first
|
||||
```
|
||||
|
||||
Third:
|
||||
**Third**:
|
||||
|
||||
``` <!---sh-->
|
||||
cat third help.th - | ./first
|
||||
```
|
||||
|
||||
NOTE: Wait until 'Ok' is printed and the type:
|
||||
**NOTE**: Wait until `Ok` is printed and the type:
|
||||
|
||||
```
|
||||
2 3 + . cr
|
||||
@@ -41,7 +41,7 @@ NOTE: Wait until 'Ok' is printed and the type:
|
||||
|
||||
Yes you should really type the 2 letters: `cr`.
|
||||
|
||||
Fourth:
|
||||
**Fourth**:
|
||||
|
||||
```
|
||||
Sorry, this is third!
|
||||
|
||||
@@ -406,21 +406,21 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
|
||||
<p>There is an alternate version of this program. See <a href="#alternate-code">Alternate
|
||||
code</a> below for details.</p>
|
||||
<h2 id="to-use">To use:</h2>
|
||||
<p>First, you must make sure that <code>first</code> is made first (even though <code>make all</code>
|
||||
should make first first :-) ):</p>
|
||||
<p><strong>First</strong>, you must make sure that <code>first</code> is made <strong>first</strong> (even though <code>make all</code>
|
||||
should make <strong>first <em>first</em></strong> :-) ):</p>
|
||||
<pre><code> make first</code></pre>
|
||||
<p>Second:</p>
|
||||
<p><strong>Second</strong>:</p>
|
||||
<pre><code> # get help:
|
||||
echo help | cat third help.th - | ./first
|
||||
|
||||
# try out a demo:
|
||||
cat third demo5.th | ./first</code></pre>
|
||||
<p>Third:</p>
|
||||
<p><strong>Third</strong>:</p>
|
||||
<pre><code> cat third help.th - | ./first</code></pre>
|
||||
<p>NOTE: Wait until ‘Ok’ is printed and the type:</p>
|
||||
<p><strong>NOTE</strong>: Wait until <code>Ok</code> is printed and the type:</p>
|
||||
<pre><code> 2 3 + . cr</code></pre>
|
||||
<p>Yes you should really type the 2 letters: <code>cr</code>.</p>
|
||||
<p>Fourth:</p>
|
||||
<p><strong>Fourth</strong>:</p>
|
||||
<pre><code> Sorry, this is third!</code></pre>
|
||||
<h2 id="try">Try:</h2>
|
||||
<pre><code> ./try.sh</code></pre>
|
||||
|
||||
+2
-2
@@ -4,8 +4,8 @@
|
||||
make all
|
||||
```
|
||||
|
||||
NOTE: we DISABLE the optimiser because having it enabled causes some invocations
|
||||
to crash in some systems.
|
||||
**NOTE**: we **FORCE DISABLE** the optimiser because having it enabled causes
|
||||
some invocations to crash in some systems.
|
||||
|
||||
|
||||
### Bugs and (Mis)features:
|
||||
|
||||
@@ -403,8 +403,8 @@ Location: <a href="../../location.html#FI">FI</a> - <em>Republic of Finland </em
|
||||
<!-- BEFORE: 1st line of markdown file: 1992/gson/README.md -->
|
||||
<h2 id="to-build">To build:</h2>
|
||||
<pre><code> make all</code></pre>
|
||||
<p>NOTE: we DISABLE the optimiser because having it enabled causes some invocations
|
||||
to crash in some systems.</p>
|
||||
<p><strong>NOTE</strong>: we <strong>FORCE DISABLE</strong> the optimiser because having it enabled causes
|
||||
some invocations to crash in some systems.</p>
|
||||
<h3 id="bugs-and-misfeatures">Bugs and (Mis)features:</h3>
|
||||
<p>The current status of this entry is:</p>
|
||||
<pre><code> STATUS: uses gets() - change to fgets() if possible</code></pre>
|
||||
|
||||
+9
-9
@@ -27,7 +27,7 @@ To see a number of options and configurations:
|
||||
## Judges' remarks:
|
||||
|
||||
The program is more interesting to run on workstations that can make use of a
|
||||
Sun raster file. Others can make use of the -text flag for character oriented
|
||||
Sun raster file. Others can make use of the `-text` flag for character oriented
|
||||
output.
|
||||
|
||||
Of course, the source (layout) is self-documenting! :-)
|
||||
@@ -97,10 +97,10 @@ may be preceded with a minus sign (or any character in `[!-/]`) and may be
|
||||
followed by other letters, so for example:
|
||||
|
||||
|
||||
- m
|
||||
- \-m
|
||||
- mask
|
||||
- \*mail
|
||||
- `m`
|
||||
- `-m`
|
||||
- `mask`
|
||||
- `*mail`
|
||||
|
||||
|
||||
all mean the same thing. Most options may be followed by one or two
|
||||
@@ -108,10 +108,10 @@ numbers. These numbers may be separated from each other and from the
|
||||
option by a space, or may be joined to each other with a comma, or may
|
||||
be appended to the single-letter option, so
|
||||
|
||||
- \-s100,200
|
||||
- size 100,200
|
||||
- \-size123 100 200
|
||||
- s100 200
|
||||
- `-s100,200`
|
||||
- `size 100,200`
|
||||
- `-size123 100 200`
|
||||
- `s100 200`
|
||||
|
||||
all mean the same (note that in `-size123` all characters following the
|
||||
initial `s` are ignored). Numbers need not be specified, as each has a
|
||||
|
||||
+9
-9
@@ -413,7 +413,7 @@ Location: <a href="../../location.html#GB">GB</a> - <em>United Kingdom of Great
|
||||
<pre><code> ./try.sh</code></pre>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>The program is more interesting to run on workstations that can make use of a
|
||||
Sun raster file. Others can make use of the -text flag for character oriented
|
||||
Sun raster file. Others can make use of the <code>-text</code> flag for character oriented
|
||||
output.</p>
|
||||
<p>Of course, the source (layout) is self-documenting! :-)</p>
|
||||
<p>NOTE: The original winning source assumed that <code>exit(3)</code> returned a value which
|
||||
@@ -468,20 +468,20 @@ with small characters having a square aspect ratio.</p>
|
||||
may be preceded with a minus sign (or any character in <code>[!-/]</code>) and may be
|
||||
followed by other letters, so for example:</p>
|
||||
<ul>
|
||||
<li>m</li>
|
||||
<li>-m</li>
|
||||
<li>mask</li>
|
||||
<li>*mail</li>
|
||||
<li><code>m</code></li>
|
||||
<li><code>-m</code></li>
|
||||
<li><code>mask</code></li>
|
||||
<li><code>*mail</code></li>
|
||||
</ul>
|
||||
<p>all mean the same thing. Most options may be followed by one or two
|
||||
numbers. These numbers may be separated from each other and from the
|
||||
option by a space, or may be joined to each other with a comma, or may
|
||||
be appended to the single-letter option, so</p>
|
||||
<ul>
|
||||
<li>-s100,200</li>
|
||||
<li>size 100,200</li>
|
||||
<li>-size123 100 200</li>
|
||||
<li>s100 200</li>
|
||||
<li><code>-s100,200</code></li>
|
||||
<li><code>size 100,200</code></li>
|
||||
<li><code>-size123 100 200</code></li>
|
||||
<li><code>s100 200</code></li>
|
||||
</ul>
|
||||
<p>all mean the same (note that in <code>-size123</code> all characters following the
|
||||
initial <code>s</code> are ignored). Numbers need not be specified, as each has a
|
||||
|
||||
+8
-7
@@ -410,9 +410,9 @@ years. The new size rules size probably contributed to the overall
|
||||
high quality.</p>
|
||||
<p>FYI: By tradition, we do not record the count of the number entries,
|
||||
nor do we give our our guess as to the number of entries
|
||||
received. For folks who wonder, we can say that we consumed
|
||||
about 2000 pages of output (printing between 2 and 4 normal
|
||||
pages per side) during the judging process this year.</p>
|
||||
received. For folks who wonder, we can say that <strong>we consumed
|
||||
about <em>2000 pages of output</em> (printing between 2 and 4 normal
|
||||
pages per side)</strong> during the judging process this year.</p>
|
||||
<p>The new instructions for submitting entries worked well - we were
|
||||
able to write scripts to unpack them and eliminate duplicates.</p>
|
||||
<p>As promised last year, we accepted programs that made use of the X
|
||||
@@ -426,7 +426,7 @@ as you are to see who has won. Even so, it is worth noting that
|
||||
a winning entry for the past 6 years!</p>
|
||||
<h2 id="a-few-notes-regarding-future-contests">A few notes regarding future contests:</h2>
|
||||
<p>We did not give awards to some traditional contest categories such as
|
||||
“Best Layout”. We felt that to do so would deny awards to more
|
||||
“<em>Best Layout</em>”. We felt that to do so would deny awards to more
|
||||
deserving entries. These categories have not been eliminated. We will
|
||||
likely be awarding them in future years.</p>
|
||||
<p>We received a few entries whose instructions were rot13’d. While
|
||||
@@ -434,9 +434,10 @@ nothing was said about this in the rules, we found that it made the
|
||||
judging process a little harder, so we may request that this not
|
||||
be done this in the future.</p>
|
||||
<p>Some thought has been given to a separate obfuscated perl contest.
|
||||
Watch comp.lang.perl for details!</p>
|
||||
<p>Be sure to wait until the 1993 rules are posted before submitting entries.
|
||||
We may fine tune the rules to reflect the some ideas above.</p>
|
||||
Watch <em>comp.lang.perl</em> for details!</p>
|
||||
<p>Be sure to wait until the <a href="../1993/rules.txt">1993 rules</a> are posted before
|
||||
submitting entries. We may fine tune the rules to reflect some of the ideas
|
||||
above.</p>
|
||||
<p>Please send us comments and suggestions what we have expressed above.
|
||||
Also include anything else that you would like to see in future contests.
|
||||
Send such email to:</p>
|
||||
|
||||
@@ -22,10 +22,11 @@ NOTE: Some compilers have had trouble optimizing this entry.
|
||||
|
||||
NOTE: Some systems need to compile with `-ltermcap` as well as `-lcurses`.
|
||||
|
||||
NOTE: The original winning source [marangon.orig.c](%%REPO_URL%%/1992/marangon/marangon.orig.c), found in
|
||||
the archive directory, assumed that `exit(3)` returns a value which cause
|
||||
problems for some systems where `exit(3)` returns a `void`. The file
|
||||
[marangon.c](%%REPO_URL%%/1992/marangon/marangon.c) avoids this problem.
|
||||
NOTE: The original winning source
|
||||
[marangon.orig.c](%%REPO_URL%%/1992/marangon/marangon.orig.c) assumed that
|
||||
`exit(3)` returns a value which cause problems for some systems where `exit(3)`
|
||||
returns a `void`. The file [marangon.c](%%REPO_URL%%/1992/marangon/marangon.c)
|
||||
avoids this problem.
|
||||
|
||||
|
||||
## Author's remarks:
|
||||
|
||||
@@ -411,10 +411,11 @@ numbers as needed. It is the side effects that get you into trouble. If you
|
||||
are not careful, you may find things “at 6’s and 7’s”. :-)</p>
|
||||
<p>NOTE: Some compilers have had trouble optimizing this entry.</p>
|
||||
<p>NOTE: Some systems need to compile with <code>-ltermcap</code> as well as <code>-lcurses</code>.</p>
|
||||
<p>NOTE: The original winning source <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/marangon/marangon.orig.c">marangon.orig.c</a>, found in
|
||||
the archive directory, assumed that <code>exit(3)</code> returns a value which cause
|
||||
problems for some systems where <code>exit(3)</code> returns a <code>void</code>. The file
|
||||
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/marangon/marangon.c">marangon.c</a> avoids this problem.</p>
|
||||
<p>NOTE: The original winning source
|
||||
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/marangon/marangon.orig.c">marangon.orig.c</a> assumed that
|
||||
<code>exit(3)</code> returns a value which cause problems for some systems where <code>exit(3)</code>
|
||||
returns a <code>void</code>. The file <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/marangon/marangon.c">marangon.c</a>
|
||||
avoids this problem.</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<p>It starts off by creating a table with number 5 in all places. The CPU melts
|
||||
the numbers and you must return them in original state. When you increase a
|
||||
|
||||
@@ -65,14 +65,6 @@
|
||||
"display_via_github" : true,
|
||||
"entry_text" : "alternate whereami tool"
|
||||
},
|
||||
{
|
||||
"file_path" : "whereami.c",
|
||||
"inventory_order" : 100,
|
||||
"OK_to_edit" : true,
|
||||
"display_as" : "c",
|
||||
"display_via_github" : true,
|
||||
"entry_text" : "tool to show your location on the map"
|
||||
},
|
||||
{
|
||||
"file_path" : "whereami.sh",
|
||||
"inventory_order" : 100,
|
||||
|
||||
@@ -547,7 +547,6 @@ joined together as one 160-character line and listed. You should see:</p>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/westley.orig.c">westley.orig.c</a> - original source code</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/try.sh">try.sh</a> - script to try entry</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/whereami.alt.sh">whereami.alt.sh</a> - alternate whereami tool</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/whereami.c">whereami.c</a> - tool to show your location on the map</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/whereami.sh">whereami.sh</a> - script to show where you are on the map</li>
|
||||
</ul>
|
||||
<h2 id="secondary-files">Secondary files</h2>
|
||||
|
||||
@@ -1063,7 +1063,7 @@ changes it to use <code>fprintf()</code> on the file (which, incidentally, is op
|
||||
read only mode which is another reason) with the <code>%s</code> specifier it will make
|
||||
<code>adhead</code> not work: it’ll print nothing at all! So this code should not be
|
||||
changed either even if it appears to be wrong. Notice too a curious thing: if
|
||||
you did change it to fprintf, even if you have the right number of args, you’d
|
||||
you did change it to <code>fprintf()</code>, even if you have the right number of args, you’d
|
||||
have to remove the outer <code>()</code> pair.</p>
|
||||
<div id="1992_albert">
|
||||
<h2 id="albert">1992/albert</h2>
|
||||
@@ -1072,20 +1072,19 @@ have to remove the outer <code>()</code> pair.</p>
|
||||
<h3 id="source-code-1992albertalbert.c">Source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/albert/albert.c">1992/albert/albert.c</a></h3>
|
||||
<h3 id="information-1992albertindex.html">Information: <a href="1992/albert/index.html">1992/albert/index.html</a></h3>
|
||||
<p>Leo Broukhis, before he was an IOCCC judge, sent the IOCCC judges an email:</p>
|
||||
<pre><code> From: leo _at_ zycad -dot- com (Leo Broukhis)
|
||||
Date: Tue, 30 Jan 96 17:37:51 PST
|
||||
To: judges _at_ toad -dot- com
|
||||
Subject: IOCCC 1992 - a bug
|
||||
|
||||
Dear Judges,
|
||||
|
||||
albert.c (even in its fixed form) still has a bug. Although I don't
|
||||
remember the number that exposed the bug (afair, resulting in coredump)
|
||||
in albert.orig.c that has been fixed in albert.c,
|
||||
|
||||
've found a number exposing another bug: 10000000001 (that's 9 0's).
|
||||
Both albert and albert.orig loop without printing anything, although
|
||||
the first factor is 101 and is usually found in an instant.</code></pre>
|
||||
<blockquote>
|
||||
<p>From: leo <em>at</em> zycad -dot- com (Leo Broukhis)<br>
|
||||
Date: Tue, 30 Jan 96 17:37:51 PST<br>
|
||||
To: judges <em>at</em> toad -dot- com<br>
|
||||
Subject: IOCCC 1992 - a bug<br></p>
|
||||
<p>Dear Judges,</p>
|
||||
<p><code>albert.c</code> (even in its fixed form) still has a bug. Although I don’t
|
||||
remember the number that exposed the bug (afair, resulting in coredump)
|
||||
in <code>albert.orig.c</code> that has been fixed in <code>albert.c</code>,</p>
|
||||
<p>I’ve found a number exposing another bug: 10000000001 (that’s 9 0’s).
|
||||
Both albert and albert.orig loop without printing anything, although
|
||||
the first factor is 101 and is usually found in an instant.</p>
|
||||
</blockquote>
|
||||
<p>A quick debugging session from Cody suggests that the problem with this value
|
||||
is that:</p>
|
||||
<pre><code> if ( ppp->qq!=48 ) return;</code></pre>
|
||||
@@ -1116,8 +1115,7 @@ entry itself. Can you fix the actual entry? You are welcome to try and do so.</p
|
||||
<h3 id="information-1992gsonindex.html">Information: <a href="1992/gson/index.html">1992/gson/index.html</a></h3>
|
||||
<p>Cody changed it so that the buffer size is <code>ARG_MAX+1</code> to try and get past the
|
||||
problem of <code>gets()</code> being used in a more complex way.</p>
|
||||
<p>It would be ideal if it were to use <code>fgets()</code> though. This will probably be
|
||||
looked at later but you’re welcome to try and fix this too! A tip on how
|
||||
<p>It would be ideal if it were to use <code>fgets()</code> though. A tip on how
|
||||
<code>gets()</code> is being used from Cody:</p>
|
||||
<p>Previously it had a buffer size of 256 which could easily overflow. In this
|
||||
entry <code>gets(3)</code> is used in a more complicated way: first <code>m</code> is set to <code>*++p</code> in
|
||||
@@ -1210,7 +1208,7 @@ than that. For instance this is what it looks like with clang:</p>
|
||||
<h3 id="source-code-1992vernvern.c">Source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/vern/vern.c">1992/vern/vern.c</a></h3>
|
||||
<h3 id="information-1992vernindex.html">Information: <a href="1992/vern/index.html">1992/vern/index.html</a></h3>
|
||||
<p>When your own checkmate is imminent it prints <code>"Har har"</code> but does not exit so
|
||||
it can ‘rub your nose in defeat’, as the author puts it. You will have to exit
|
||||
it can ‘<em>rub your nose in defeat</em>’, as the author puts it. You will have to exit
|
||||
it yourself through ctrl-c or killing it in some other fashion.</p>
|
||||
<div id="1992_westley">
|
||||
<h2 id="westley-3">1992/westley</h2>
|
||||
|
||||
@@ -975,7 +975,7 @@ changes it to use `fprintf()` on the file (which, incidentally, is opened in
|
||||
read only mode which is another reason) with the `%s` specifier it will make
|
||||
`adhead` not work: it'll print nothing at all! So this code should not be
|
||||
changed either even if it appears to be wrong. Notice too a curious thing: if
|
||||
you did change it to fprintf, even if you have the right number of args, you'd
|
||||
you did change it to `fprintf()`, even if you have the right number of args, you'd
|
||||
have to remove the outer `()` pair.
|
||||
|
||||
|
||||
@@ -990,22 +990,22 @@ have to remove the outer `()` pair.
|
||||
|
||||
Leo Broukhis, before he was an IOCCC judge, sent the IOCCC judges an email:
|
||||
|
||||
```
|
||||
From: leo _at_ zycad -dot- com (Leo Broukhis)
|
||||
Date: Tue, 30 Jan 96 17:37:51 PST
|
||||
To: judges _at_ toad -dot- com
|
||||
Subject: IOCCC 1992 - a bug
|
||||
|
||||
Dear Judges,
|
||||
> From: leo _at_ zycad -dot- com (Leo Broukhis)<br>
|
||||
> Date: Tue, 30 Jan 96 17:37:51 PST<br>
|
||||
> To: judges _at_ toad -dot- com<br>
|
||||
> Subject: IOCCC 1992 - a bug<br>
|
||||
>
|
||||
> Dear Judges,
|
||||
>
|
||||
> `albert.c` (even in its fixed form) still has a bug. Although I don't
|
||||
> remember the number that exposed the bug (afair, resulting in coredump)
|
||||
> in `albert.orig.c` that has been fixed in `albert.c`,
|
||||
>
|
||||
> I've found a number exposing another bug: 10000000001 (that's 9 0's).
|
||||
> Both albert and albert.orig loop without printing anything, although
|
||||
> the first factor is 101 and is usually found in an instant.
|
||||
|
||||
albert.c (even in its fixed form) still has a bug. Although I don't
|
||||
remember the number that exposed the bug (afair, resulting in coredump)
|
||||
in albert.orig.c that has been fixed in albert.c,
|
||||
|
||||
've found a number exposing another bug: 10000000001 (that's 9 0's).
|
||||
Both albert and albert.orig loop without printing anything, although
|
||||
the first factor is 101 and is usually found in an instant.
|
||||
```
|
||||
|
||||
|
||||
A quick debugging session from Cody suggests that the problem with this value
|
||||
@@ -1057,8 +1057,7 @@ entry itself. Can you fix the actual entry? You are welcome to try and do so.
|
||||
Cody changed it so that the buffer size is `ARG_MAX+1` to try and get past the
|
||||
problem of `gets()` being used in a more complex way.
|
||||
|
||||
It would be ideal if it were to use `fgets()` though. This will probably be
|
||||
looked at later but you're welcome to try and fix this too! A tip on how
|
||||
It would be ideal if it were to use `fgets()` though. A tip on how
|
||||
`gets()` is being used from Cody:
|
||||
|
||||
Previously it had a buffer size of 256 which could easily overflow. In this
|
||||
@@ -1182,7 +1181,7 @@ Can you help us?
|
||||
### Information: [1992/vern/index.html](1992/vern/index.html)
|
||||
|
||||
When your own checkmate is imminent it prints `"Har har"` but does not exit so
|
||||
it can 'rub your nose in defeat', as the author puts it. You will have to exit
|
||||
it can '_rub your nose in defeat_', as the author puts it. You will have to exit
|
||||
it yourself through ctrl-c or killing it in some other fashion.
|
||||
|
||||
|
||||
|
||||
@@ -1668,6 +1668,7 @@ return <code>void</code>.</p>
|
||||
<p>Cody also added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/albert/try.sh">try.sh</a> and
|
||||
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/albert/try.alt.sh">try.alt.sh</a> scripts that correspond to the entry and
|
||||
the alternate code.</p>
|
||||
<p>Even so, check <a href="bugs.html#1992_albert">1992/albert in bugs.html</a>.</p>
|
||||
<div id="1992_ant">
|
||||
<h2 id="winning-entry-1992ant">Winning entry: <a href="1992/ant/index.html">1992/ant</a></h2>
|
||||
<h3 id="winning-entry-source-code-ant.c-1">Winning entry source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/ant/ant.c">ant.c</a></h3>
|
||||
@@ -1756,7 +1757,8 @@ changing this. See <a href="faq.html#faq4_6">FAQ 4.6 - Why was arg
|
||||
count and/or type changed in main() in some older
|
||||
entries?</a> for more details.</p>
|
||||
<p>Yusuke also noted that there is a bug in the program where right after starting
|
||||
it moves towards the right but if you click the mouse it goes back.</p>
|
||||
it moves towards the right but if you click the mouse it goes back. See
|
||||
<a href="bugs.html#1992_kivinen">1992/kivinen in bugs.html</a> for more details.</p>
|
||||
<div id="1992_lush">
|
||||
<h2 id="winning-entry-1992lush">Winning entry: <a href="1992/lush/index.html">1992/lush</a></h2>
|
||||
<h3 id="winning-entry-source-code-lush.c">Winning entry source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/lush/lush.c">lush.c</a></h3>
|
||||
@@ -1809,8 +1811,7 @@ it used to be.</p>
|
||||
<h3 id="winning-entry-source-code-westley.c-5">Winning entry source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/westley.c">westley.c</a></h3>
|
||||
</div>
|
||||
<p><a href="#cody">Cody</a> fixed this to work for <code>clang</code> by changing the third and fourth arg of
|
||||
<code>main()</code> to be <code>char ** inside</code>main()<code>;</code>clang<code>requires args 2 - 4 to be</code>char
|
||||
** and some versions do not even allow a fourth arg.</p>
|
||||
<code>main()</code> to be <code>char **</code> inside <code>main()</code>; <code>clang</code> requires args 2 - 4 to be <code>char **</code> and some versions do not even allow a fourth arg.</p>
|
||||
<p>He also added the alternate version that the author gave in the remarks that is
|
||||
specifically for the USA rather than the world. This had to be fixed for <code>clang</code>
|
||||
as well to make the args of <code>main()</code> be the correct type and by moving the body
|
||||
|
||||
+6
-3
@@ -1841,6 +1841,8 @@ Cody also added the [try.sh](%%REPO_URL%%/1992/albert/try.sh) and
|
||||
[try.alt.sh](%%REPO_URL%%/1992/albert/try.alt.sh) scripts that correspond to the entry and
|
||||
the alternate code.
|
||||
|
||||
Even so, check [1992/albert in bugs.html](bugs.html#1992_albert).
|
||||
|
||||
|
||||
<div id="1992_ant">
|
||||
## Winning entry: [1992/ant](1992/ant/index.html)
|
||||
@@ -1960,7 +1962,8 @@ entries?](faq.html#faq4_6) for more details.
|
||||
|
||||
|
||||
Yusuke also noted that there is a bug in the program where right after starting
|
||||
it moves towards the right but if you click the mouse it goes back.
|
||||
it moves towards the right but if you click the mouse it goes back. See
|
||||
[1992/kivinen in bugs.html](bugs.html#1992_kivinen) for more details.
|
||||
|
||||
|
||||
<div id="1992_lush">
|
||||
@@ -2035,8 +2038,8 @@ it used to be.
|
||||
</div>
|
||||
|
||||
[Cody](#cody) fixed this to work for `clang` by changing the third and fourth arg of
|
||||
`main()` to be `char ** inside `main()`; `clang` requires args 2 - 4 to be `char
|
||||
** and some versions do not even allow a fourth arg.
|
||||
`main()` to be `char **` inside `main()`; `clang` requires args 2 - 4 to be `char
|
||||
**` and some versions do not even allow a fourth arg.
|
||||
|
||||
He also added the alternate version that the author gave in the remarks that is
|
||||
specifically for the USA rather than the world. This had to be fixed for `clang`
|
||||
|
||||
@@ -827,7 +827,6 @@
|
||||
1992,westley,westley.orig.c,50,true,c,true,original source code
|
||||
1992,westley,try.sh,100,true,shellscript,true,script to try entry
|
||||
1992,westley,whereami.alt.sh,100,true,shellscript,true,alternate whereami tool
|
||||
1992,westley,whereami.c,100,true,c,true,tool to show your location on the map
|
||||
1992,westley,whereami.sh,100,true,shellscript,true,script to show where you are on the map
|
||||
1992,westley,1992_westley.tar.bz2,1415926535,false,tbz2,false,download entry tarball
|
||||
1992,westley,README.md,4000000000,true,markdown,true,markdown source for this web page
|
||||
|
||||
|
Binary file not shown.
@@ -832,7 +832,6 @@
|
||||
1992/westley/westley.c
|
||||
1992/westley/westley.orig.c
|
||||
1992/westley/whereami.alt.sh
|
||||
1992/westley/whereami.c
|
||||
1992/westley/whereami.sh
|
||||
1993/ant/.entry.json
|
||||
1993/ant/.gitignore
|
||||
|
||||
@@ -832,7 +832,6 @@
|
||||
1992/westley/westley.c
|
||||
1992/westley/westley.orig.c
|
||||
1992/westley/whereami.alt.sh
|
||||
1992/westley/whereami.c
|
||||
1992/westley/whereami.sh
|
||||
1993/ant/.entry.json
|
||||
1993/ant/.gitignore
|
||||
|
||||
@@ -543,7 +543,6 @@
|
||||
1992/westley/westley.c
|
||||
1992/westley/westley.orig.c
|
||||
1992/westley/whereami.alt.sh
|
||||
1992/westley/whereami.c
|
||||
1992/westley/whereami.sh
|
||||
1993/ant/.entry.json
|
||||
1993/ant/.gitignore
|
||||
|
||||
Reference in new issue
Block a user