Add deobfuscated versions of 199[1-3]/ant

Anthony/@SirWumpus kindly provided these files. The source code and
their Makefiles are in a deobfuscated/ subdirectory (for each of the
three entries) but running make alt
from the entry directory works. It uses the deobfuscated version's
Makefile but copies the compiled binary to the entry's directory to keep
things clean (deobfuscated code separate from the entry) to simplify
using the deobfuscated versions.

Entries that had a test suite Makefile have a new one for the
deobfuscated code and a try.alt.sh script was added to 1992/ant and
1993/ant but the entry_text is a bit different than the usual to
indicate that it's the deobfuscated version.

It might be that the way this is done should be reorganised some but
that can be decided on later.

The entries from 2004 and 2005 have not yet been added because some
decisions have to be made as those are the ones with a configure script.

The manifest was updated and the .entry.json and index.html files were
updated. It is not clear yet if the inventory_order is right but that
will be looked at in the next day or two.

Thank you Anthony!
This commit is contained in:
Cody Boone Ferguson committed 2024-07-05 12:53:32 -07:00
1 parent 95efa5ada6
commit a4fb0a8c8c
39 files changed
+3174 -48

No files matched your search

+32 -3
View File
@@ -1408,9 +1408,21 @@ been fixed so that if one passes no arg it will still likely crash.</p>
<h2 id="winning-entry-1991ant">Winning entry: <a href="1991/ant/index.html">1991/ant</a></h2>
<h3 id="winning-entry-source-code-ant.c">Winning entry source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/ant/ant.c">ant.c</a></h3>
</div>
<p><a href="#cody">Cody</a> added <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/ant/ant.alt.c">alternate code</a> that will be a bit easier to use for
those familiar with vim in the following ways (we don’t want vi users to also
not be able to use it or exit it, now do we ? :-) ):</p>
<p>The author, <a href="authors.html#Anthony_C_Howe">Anthony C Howe</a>, provided a
deobfuscated version which was put in by <a href="#cody">Cody</a> with thanks to Anthony!
The <code>deobfuscated</code> directory has the code and Makefile. The entry’s Makefile was
updated to compile the alt code, if <code>make alt</code> is used, but in a way that keeps
both directories clean (the deobfuscated version will not be in the entry’s
directory and vice versa) but also allowing one to just do <code>./ant.alt2</code> (see
below for why <code>alt2</code>). There are two versions here,
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/ant/deobfuscated/ant.c">deobfuscated/ant.c</a> and
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/ant/deobfuscated/ant-c89.c">deobfuscated/ant-c89.c</a> along
with the <code>Makefile</code>. The latter C file was converted from <code>K&amp;R</code> by Anthony (the
other one did not compile without a few fixes made by Cody).</p>
<p><a href="#cody">Cody</a> also added <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/ant/ant.alt.c">alternate code</a> that
will be a bit easier to use for those familiar with vim in the following ways
(we don’t want vi users to also not be able to use it or exit it, now do we ?
:-) ):</p>
<ul>
<li>Use <code>0</code> to go to first column.</li>
<li>Use <code>$</code> to go to last column.</li>
@@ -1420,6 +1432,7 @@ not be able to use it or exit it, now do we ? :-) ):</p>
<li>Use <code>q</code> to exit.</li>
</ul>
<p>The other keys were left unchanged.</p>
<p>(As this was done first it was left as <code>alt</code> and not changed to <code>alt2</code>.)</p>
<div id="1991_brnstnd">
<h2 id="winning-entry-1991brnstnd">Winning entry: <a href="1991/brnstnd/index.html">1991/brnstnd</a></h2>
<h3 id="winning-entry-source-code-brnstnd.c">Winning entry source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/brnstnd/brnstnd.c">brnstnd.c</a></h3>
@@ -1691,6 +1704,15 @@ rule where a line was not ended with a <code>\</code> but should have been.</p>
necessary to include <code>time.h</code> so Cody did this as well as this exists in other
systems too.</p>
<p>Cody also added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/ant/try.sh">try.sh</a> script.</p>
<p>The author, <a href="authors.html#Anthony_C_Howe">Anthony C Howe</a>, provided a
deobfuscated version that Cody added in, with thanks to Anthony! The source code
and the <code>Makefile</code> as well as <code>sleep.c</code> are in the <code>deobfuscated/</code> directory.
The entry’s Makefile was updated in a way that keeps the deobfuscated code
separate from the entry’s code but which allows one to use the deobfuscated
Makefile when compiling the alt code (via <code>make alt</code>). For this version,
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/ant/try.alt.sh">try.alt.sh</a> was added and an alternate test
Makefile (along the lines of the author’s provided test Makefile) was added,
updated to use <code>ant.alt</code>.</p>
<div id="1992_buzzard.1">
<h2 id="winning-entry-1992buzzard.1">Winning entry: <a href="1992/buzzard.1/index.html">1992/buzzard.1</a></h2>
<h3 id="winning-entry-source-code-buzzard.1.c">Winning entry source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/buzzard.1/buzzard.1.c">buzzard.1.c</a></h3>
@@ -1856,6 +1878,13 @@ encourage you to try the original without two args :-)</p>
</div>
<p><a href="#cody">Cody</a> added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/ant/try.sh">try.sh</a> script and a data file,
<a href="1993/ant/ants.txt">ants.txt</a>, full of ants for the script.</p>
<p>The author, <a href="authors.html#Anthony_C_Howe">Anthony C Howe</a>, provided a
deobfuscated version that Cody added in, with thanks to Anthony! The source code
(which might have had to be fixed to compile with modern compilers whereas the
<code>-c89</code> version was converted from <code>K&amp;R</code> and worked without any fixes) and its
Makefile was put in the <code>deobfuscated</code> subdirectory to keep them separate. The
entry’s Makefile was updated so that it uses the deobfuscated version’s Makefile
but allowing one to run <code>./ant.alt</code>.</p>
<div id="1993_cmills">
<h2 id="winning-entry-1993cmills">Winning entry: <a href="1993/cmills/index.html">1993/cmills</a></h2>
<h3 id="winning-entry-source-code-cmills.c-1">Winning entry source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/cmills/cmills.c">cmills.c</a></h3>