Fix some border cases of 'alt' to 'alternate'

I did not think of 'alt' at end of the line or 'alt version' (often if
not always at end of the line). This has been corrected.

As well I forgot to sort the manifest.numbers spreadsheet but that will
be in a commit that will be made in a bit.
This commit is contained in:
Cody Boone Ferguson committed 2024-05-30 08:23:44 -07:00
1 parent ffdb219ceb
commit dcfff8e753
2 files changed
+35 -34

No files matched your search

+17 -17
View File
@@ -1073,10 +1073,10 @@ useless cat, that’s why! For instance, the fact they even exist is proof that
the Earth is <strong>NOT</strong> flat: because if it was they would have pushed everything the Earth is <strong>NOT</strong> flat: because if it was they would have pushed everything
off it by now! :-) They’re also a great joy to all ailurophiles and yes they off it by now! :-) They’re also a great joy to all ailurophiles and yes they
most certainly do have a personality and they can be very sociable.</p> most certainly do have a personality and they can be very sociable.</p>
<p>Whilst he was at it, Cody made it so that one need not run the alt script or alt <p>Whilst he was at it, Cody made it so that one need not run the alt script or
code directly, to match that of the main entry. As we simulate the functionality alternate code directly, to match that of the main entry. As we simulate the
anyway, and since one may still run the code or the script (for the original functionality anyway, and since one may still run the code or the script (for
entry and the alternate code) anyway, it works out well.</p> the original entry and the alternate code) anyway, it works out well.</p>
<div id="1989_jar.2"> <div id="1989_jar.2">
<h2 id="winning-entry-1989jar.2">Winning entry: <a href="1989/jar.2/index.html">1989/jar.2</a></h2> <h2 id="winning-entry-1989jar.2">Winning entry: <a href="1989/jar.2/index.html">1989/jar.2</a></h2>
<h3 id="winning-entry-source-code-jar.2.c">Winning entry source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/jar.2/jar.2.c">jar.2.c</a></h3> <h3 id="winning-entry-source-code-jar.2.c">Winning entry source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1989/jar.2/jar.2.c">jar.2.c</a></h3>
@@ -1330,7 +1330,7 @@ entry does.</p>
</div> </div>
<p><a href="#cody">Cody</a> fixed this to work with modern compilers; <code>exit(3)</code> returns <code>void</code> but the <p><a href="#cody">Cody</a> fixed this to work with modern compilers; <code>exit(3)</code> returns <code>void</code> but the
function was used in a binary expression so this wouldn’t even compile.</p> function was used in a binary expression so this wouldn’t even compile.</p>
<p>Cody fixed (as above) and added the shortened version as <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1990/tbr/tbr.alt.c">alt <p>Cody fixed (as above) and added the shortened version as <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1990/tbr/tbr.alt.c">alternate
code</a> which originally comes from the code</a> which originally comes from the
author.</p> author.</p>
<p>Cody also changed the code (in both versions) to use <code>fgets(3)</code> instead of <p>Cody also changed the code (in both versions) to use <code>fgets(3)</code> instead of
@@ -1736,9 +1736,9 @@ operator so that it could be used in binary expressions.</p>
</div> </div>
<p>It was observed that on modern systems this goes much too quick. <a href="#yusuke">Yusuke</a> created <p>It was observed that on modern systems this goes much too quick. <a href="#yusuke">Yusuke</a> created
a patch that calls <code>usleep(3)</code> but <a href="#cody">Cody</a> thought the value was too slow so he a patch that calls <code>usleep(3)</code> but <a href="#cody">Cody</a> thought the value was too slow so he
made it a macro in the Makefile <code>Z</code> (which can be redefined with <code>make SLEEP=...</code>), defaulting at 15000. This was made an <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/kivinen/kivinen.alt.c">alt made it a macro in the Makefile <code>Z</code> (which can be redefined with <code>make SLEEP=...</code>), defaulting at 15000. This was made an <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/kivinen/kivinen.alt.c">alternate
version</a> and it is recommended one use the alt version</a> and it is recommended one use
version first. See the index.html file to see how to reconfigure it.</p> the alternate version first. See the index.html file to see how to reconfigure it.</p>
<p>Cody also made the fixed version (the code relied on <code>exit(3)</code> returning to use <p>Cody also made the fixed version (the code relied on <code>exit(3)</code> returning to use
in binary expressions) (and alternate code from it) more like the original by renaming in binary expressions) (and alternate code from it) more like the original by renaming
the <code>ext</code> macro to be <code>exit</code> which uses the comma operator. He made it so the the <code>ext</code> macro to be <code>exit</code> which uses the comma operator. He made it so the
@@ -1853,7 +1853,7 @@ encourage you to try the original without two args :-)</p>
</div> </div>
<p><a href="#yusuke">Yusuke</a> suggested that with modern systems this goes too fast so he added a call <p><a href="#yusuke">Yusuke</a> suggested that with modern systems this goes too fast so he added a call
to <code>usleep(3)</code> in a patch he made. <a href="#cody">Cody</a> made it configurable at compilation by to <code>usleep(3)</code> in a patch he made. <a href="#cody">Cody</a> made it configurable at compilation by
using a macro. This is in the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/cmills/cmills.alt.c">alt using a macro. This is in the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/cmills/cmills.alt.c">alternate
version</a> which is the recommended one to try version</a> which is the recommended one to try
first.</p> first.</p>
<div id="1993_dgibson"> <div id="1993_dgibson">
@@ -3142,8 +3142,7 @@ to the proper compiled program (it’s hardcoded). This had never been done and
the script did not even work (at least modernly?).</p> the script did not even work (at least modernly?).</p>
<p>He also added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2005/aidan/aidan.alt.c">alternate code</a> based on the <p>He also added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2005/aidan/aidan.alt.c">alternate code</a> based on the
author’s remarks which is a different approach than the one used and which author’s remarks which is a different approach than the one used and which
(according to the author) ‘is slower (particularly in worst-case or nearly so (according to the author) ‘<code>is slower (particularly in worst-case or nearly so scenarios), inelegant, and not a good starting place for sudoku generation.</code>’</p>
scenarios), inelegant, and not a good starting place for sudoku generation.’</p>
<p>Cody added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2005/aidan/try.sh">try.sh</a> and <p>Cody added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2005/aidan/try.sh">try.sh</a> and
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2005/aidan/try.alt.sh">try.alt.sh</a> scripts that correspond to the entry and <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2005/aidan/try.alt.sh">try.alt.sh</a> scripts that correspond to the entry and
alternate code respectively.</p> alternate code respectively.</p>
@@ -3393,11 +3392,12 @@ some versions do allow only one arg. This was done at first because it’s not
used but Cody discovered that later versions of <code>clang</code> have an additional defect used but Cody discovered that later versions of <code>clang</code> have an additional defect
where it does not allow only one arg so the second arg to <code>main()</code> was added where it does not allow only one arg so the second arg to <code>main()</code> was added
back.</p> back.</p>
<p>This was an unfortunate problem for the alternate code as he has been using Z for alt <p>This was an unfortunate problem for the alternate code as he has been using Z
code <code>usleep()</code> (for sleep) but in this case unfortunately the original entry for alternate code <code>usleep()</code> (for sleep) but in this case unfortunately the
used <code>Z</code> in <code>main()</code> (though unused) so to make it more like the original Cody original entry used <code>Z</code> in <code>main()</code> (though unused) so to make it more like the
renamed the macro <code>Z</code> for <code>usleep()</code> to <code>S</code> instead which can stand for sleep original Cody renamed the macro <code>Z</code> for <code>usleep()</code> to <code>S</code> instead which can
and also it is kind of like a backwards <code>Z</code>. That way <code>Z</code> could be in <code>main()</code>.</p> stand for sleep and also it is kind of like a backwards <code>Z</code>. That way <code>Z</code> could
be in <code>main()</code>.</p>
<p>Cody also made sure that the Makefile links in <code>libm</code> as not all systems do this <p>Cody also made sure that the Makefile links in <code>libm</code> as not all systems do this
by default.</p> by default.</p>
<p>Since the author suggested that the lack of certain <code>#include</code>s might break the <p>Since the author suggested that the lack of certain <code>#include</code>s might break the
@@ -4361,7 +4361,7 @@ German umlauts and Eszett (ß) see the <a href="bugs.html#2019-ciura">entry in b
website.</p> website.</p>
<p>Cody also added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2019/ciura/try.sh">try.sh</a> and <p>Cody also added the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2019/ciura/try.sh">try.sh</a> and
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2019/ciura/try.alt.sh">try.alt.sh</a> scripts.</p> <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2019/ciura/try.alt.sh">try.alt.sh</a> scripts.</p>
<p>Finally he added the scripts for the different languages that use the alt <p>Finally he added the scripts for the different languages that use the alternate
version but with the caveat that only English appears to work. See the <a href="bugs.html#2019-ciura">entry in version but with the caveat that only English appears to work. See the <a href="bugs.html#2019-ciura">entry in
bugs.html</a> for more details.</p> bugs.html</a> for more details.</p>
<div id="2019_diels-grabsch1"> <div id="2019_diels-grabsch1">
+18 -17
View File
@@ -984,10 +984,10 @@ the Earth is **NOT** flat: because if it was they would have pushed everything
off it by now! :-) They're also a great joy to all ailurophiles and yes they off it by now! :-) They're also a great joy to all ailurophiles and yes they
most certainly do have a personality and they can be very sociable. most certainly do have a personality and they can be very sociable.
Whilst he was at it, Cody made it so that one need not run the alt script or alt Whilst he was at it, Cody made it so that one need not run the alt script or
code directly, to match that of the main entry. As we simulate the functionality alternate code directly, to match that of the main entry. As we simulate the
anyway, and since one may still run the code or the script (for the original functionality anyway, and since one may still run the code or the script (for
entry and the alternate code) anyway, it works out well. the original entry and the alternate code) anyway, it works out well.
<div id="1989_jar.2"> <div id="1989_jar.2">
@@ -1345,7 +1345,7 @@ entry does.
[Cody](#cody) fixed this to work with modern compilers; `exit(3)` returns `void` but the [Cody](#cody) fixed this to work with modern compilers; `exit(3)` returns `void` but the
function was used in a binary expression so this wouldn't even compile. function was used in a binary expression so this wouldn't even compile.
Cody fixed (as above) and added the shortened version as [alt Cody fixed (as above) and added the shortened version as [alternate
code](%%REPO_URL%%/1990/tbr/tbr.alt.c) which originally comes from the code](%%REPO_URL%%/1990/tbr/tbr.alt.c) which originally comes from the
author. author.
@@ -1933,9 +1933,9 @@ operator so that it could be used in binary expressions.
It was observed that on modern systems this goes much too quick. [Yusuke](#yusuke) created It was observed that on modern systems this goes much too quick. [Yusuke](#yusuke) created
a patch that calls `usleep(3)` but [Cody](#cody) thought the value was too slow so he a patch that calls `usleep(3)` but [Cody](#cody) thought the value was too slow so he
made it a macro in the Makefile `Z` (which can be redefined with `make made it a macro in the Makefile `Z` (which can be redefined with `make
SLEEP=...`), defaulting at 15000. This was made an [alt SLEEP=...`), defaulting at 15000. This was made an [alternate
version](%%REPO_URL%%/1992/kivinen/kivinen.alt.c) and it is recommended one use the alt version](%%REPO_URL%%/1992/kivinen/kivinen.alt.c) and it is recommended one use
version first. See the index.html file to see how to reconfigure it. the alternate version first. See the index.html file to see how to reconfigure it.
Cody also made the fixed version (the code relied on `exit(3)` returning to use Cody also made the fixed version (the code relied on `exit(3)` returning to use
in binary expressions) (and alternate code from it) more like the original by renaming in binary expressions) (and alternate code from it) more like the original by renaming
@@ -2088,7 +2088,7 @@ encourage you to try the original without two args :-)
[Yusuke](#yusuke) suggested that with modern systems this goes too fast so he added a call [Yusuke](#yusuke) suggested that with modern systems this goes too fast so he added a call
to `usleep(3)` in a patch he made. [Cody](#cody) made it configurable at compilation by to `usleep(3)` in a patch he made. [Cody](#cody) made it configurable at compilation by
using a macro. This is in the [alt using a macro. This is in the [alternate
version](%%REPO_URL%%/1993/cmills/cmills.alt.c) which is the recommended one to try version](%%REPO_URL%%/1993/cmills/cmills.alt.c) which is the recommended one to try
first. first.
@@ -3881,8 +3881,8 @@ the script did not even work (at least modernly?).
He also added the [alternate code](%%REPO_URL%%/2005/aidan/aidan.alt.c) based on the He also added the [alternate code](%%REPO_URL%%/2005/aidan/aidan.alt.c) based on the
author's remarks which is a different approach than the one used and which author's remarks which is a different approach than the one used and which
(according to the author) 'is slower (particularly in worst-case or nearly so (according to the author) '`is slower (particularly in worst-case or nearly so
scenarios), inelegant, and not a good starting place for sudoku generation.' scenarios), inelegant, and not a good starting place for sudoku generation.`'
Cody added the [try.sh](%%REPO_URL%%/2005/aidan/try.sh) and Cody added the [try.sh](%%REPO_URL%%/2005/aidan/try.sh) and
[try.alt.sh](%%REPO_URL%%/2005/aidan/try.alt.sh) scripts that correspond to the entry and [try.alt.sh](%%REPO_URL%%/2005/aidan/try.alt.sh) scripts that correspond to the entry and
@@ -4249,11 +4249,12 @@ used but Cody discovered that later versions of `clang` have an additional defec
where it does not allow only one arg so the second arg to `main()` was added where it does not allow only one arg so the second arg to `main()` was added
back. back.
This was an unfortunate problem for the alternate code as he has been using Z for alt This was an unfortunate problem for the alternate code as he has been using Z
code `usleep()` (for sleep) but in this case unfortunately the original entry for alternate code `usleep()` (for sleep) but in this case unfortunately the
used `Z` in `main()` (though unused) so to make it more like the original Cody original entry used `Z` in `main()` (though unused) so to make it more like the
renamed the macro `Z` for `usleep()` to `S` instead which can stand for sleep original Cody renamed the macro `Z` for `usleep()` to `S` instead which can
and also it is kind of like a backwards `Z`. That way `Z` could be in `main()`. stand for sleep and also it is kind of like a backwards `Z`. That way `Z` could
be in `main()`.
Cody also made sure that the Makefile links in `libm` as not all systems do this Cody also made sure that the Makefile links in `libm` as not all systems do this
by default. by default.
@@ -5622,7 +5623,7 @@ website.
Cody also added the [try.sh](%%REPO_URL%%/2019/ciura/try.sh) and Cody also added the [try.sh](%%REPO_URL%%/2019/ciura/try.sh) and
[try.alt.sh](%%REPO_URL%%/2019/ciura/try.alt.sh) scripts. [try.alt.sh](%%REPO_URL%%/2019/ciura/try.alt.sh) scripts.
Finally he added the scripts for the different languages that use the alt Finally he added the scripts for the different languages that use the alternate
version but with the caveat that only English appears to work. See the [entry in version but with the caveat that only English appears to work. See the [entry in
bugs.html](bugs.html#2019-ciura) for more details. bugs.html](bugs.html#2019-ciura) for more details.