Merge pull request #2579 from xexyl/westley92
Remove non bug bug status in 1992/westley
This commit is contained in:
14 files changed
+90
-59
No files matched your search
@@ -33,6 +33,14 @@
|
||||
"display_via_github" : true,
|
||||
"entry_text" : "alternate source code"
|
||||
},
|
||||
{
|
||||
"file_path" : "westley.alt2.c",
|
||||
"inventory_order" : 45,
|
||||
"OK_to_edit" : true,
|
||||
"display_as" : "c",
|
||||
"display_via_github" : true,
|
||||
"entry_text" : "one line alternate code that documents itself at 80 columns"
|
||||
},
|
||||
{
|
||||
"file_path" : "westley.alt.orig.c",
|
||||
"inventory_order" : 50,
|
||||
|
||||
@@ -7,6 +7,7 @@ indent.o
|
||||
prog.orig
|
||||
westley
|
||||
westley.alt
|
||||
westley.alt2
|
||||
westley.orig
|
||||
whereami
|
||||
whereami.alt
|
||||
+12
-4
@@ -135,17 +135,25 @@ all: data ${TARGET}
|
||||
${PROG}: ${PROG}.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
${LN} -sf ${PROG} whereami
|
||||
@echo "NOTE: your terminal must be at least 80 columns wide for this to work right"
|
||||
@echo "NOTE: your terminal must be AT LEAST 80 columns wide for this to work right"
|
||||
|
||||
# alternative executable
|
||||
#
|
||||
alt: data ${ALT_TARGET}
|
||||
@${TRUE}
|
||||
|
||||
alt2: data ${ALT_TARGET}2
|
||||
@${TRUE}
|
||||
|
||||
${PROG}.alt: ${PROG}.alt.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
${LN} -sf ${PROG}.alt whereami.alt
|
||||
@echo "NOTE: your terminal must be at least 80 columns wide for this to work right"
|
||||
@echo "NOTE: your terminal must be AT LEAST 80 columns wide for this to work right"
|
||||
|
||||
${PROG}.alt2: ${PROG}.alt2.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
${LN} -sf ${PROG}.alt whereami.alt2
|
||||
@echo "NOTE: your terminal must WRAP AT 80 columns this to work right"
|
||||
|
||||
|
||||
# data files
|
||||
@@ -213,9 +221,9 @@ clean:
|
||||
fi
|
||||
|
||||
clobber: clean
|
||||
${RM} -f ${TARGET} ${ALT_TARGET}
|
||||
${RM} -f ${TARGET} ${ALT_TARGET} ${ALT_TARGET}2
|
||||
${RM} -rf *.dSYM
|
||||
${RM} -f whereami whereami.alt
|
||||
${RM} -f whereami whereami.alt whereami.alt2
|
||||
@-if [ -e sandwich ]; then \
|
||||
${RM} -f sandwich; \
|
||||
echo 'ate sandwich'; \
|
||||
|
||||
+30
-7
@@ -4,6 +4,9 @@
|
||||
make all
|
||||
```
|
||||
|
||||
There are two alternate versions that relate to the US specifically. See
|
||||
[Alternate code](#alternate-code) below.
|
||||
|
||||
|
||||
### Bugs and (Mis)features:
|
||||
|
||||
@@ -26,10 +29,8 @@ If lost:
|
||||
|
||||
Where `lat` and `long` correspond to your latitude and longitude.
|
||||
|
||||
**NOTE**: you **MUST** have a terminal that is at least 80 columns for this to show
|
||||
properly. The `whereami.sh` and `whereami.alt.sh` scripts check this but if you
|
||||
do not have such a terminal you can run the `whereami` (or for the alternate code
|
||||
described below, `whereami.alt`) directly.
|
||||
**NOTE**: you **MUST** have a terminal that is **at least 80 columns** for this
|
||||
to show properly. The `whereami.sh` and `whereami.alt.sh` scripts check this.
|
||||
|
||||
|
||||
## Try:
|
||||
@@ -41,7 +42,17 @@ described below, `whereami.alt`) directly.
|
||||
|
||||
## Alternate code:
|
||||
|
||||
The author provided a version for the US which we added.
|
||||
The author provided a version for the US which we added in two files: the first
|
||||
one is fixed to work for clang; the second one is more for show than for use: if
|
||||
you have your terminal set at 80 columns you will see that the source code
|
||||
documents itself. The author explains this but what is meant is it will look
|
||||
like:
|
||||
|
||||
> main(l,a,n,d)...<br>
|
||||
> [A M E R I C A]...
|
||||
|
||||
That version, which will not compile with `clang`, is the second alternate
|
||||
version, [westley.alt2.c](%%REPO_URL%%/1992/westley/westley.alt2.c).
|
||||
|
||||
|
||||
### Alternate build:
|
||||
@@ -50,6 +61,18 @@ The author provided a version for the US which we added.
|
||||
make alt
|
||||
```
|
||||
|
||||
If you have `gcc` you can also compile the second alternate version, though it
|
||||
is functionally equivalent to the first. The original limitation where one has
|
||||
to have a terminal that wraps at 80 columns is unfortunately in this version
|
||||
because it requires a specific length so if you do not have this it will not
|
||||
look right; use the first alternate version if you want to see correct output
|
||||
with wider terminals.
|
||||
|
||||
|
||||
``` <!---sh-->
|
||||
make alt2
|
||||
```
|
||||
|
||||
|
||||
### Alternate use:
|
||||
|
||||
@@ -57,8 +80,8 @@ The author provided a version for the US which we added.
|
||||
./whereami.alt.sh lat long
|
||||
```
|
||||
|
||||
**NOTE**: this alternative version also needs a terminal with at least 80 columns
|
||||
but if you do not have such a terminal you can run `whereami.alt` directly.
|
||||
**NOTE**: this alternative version also needs a terminal with **at least 80
|
||||
columns**.
|
||||
|
||||
|
||||
### Alternate try:
|
||||
|
||||
+25
-7
@@ -409,6 +409,8 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
|
||||
<!-- BEFORE: 1st line of markdown file: 1992/westley/README.md -->
|
||||
<h2 id="to-build">To build:</h2>
|
||||
<pre><code> make all</code></pre>
|
||||
<p>There are two alternate versions that relate to the US specifically. See
|
||||
<a href="#alternate-code">Alternate code</a> below.</p>
|
||||
<h3 id="bugs-and-misfeatures">Bugs and (Mis)features:</h3>
|
||||
<p>The current status of this entry is:</p>
|
||||
<blockquote>
|
||||
@@ -420,20 +422,35 @@ Location: <a href="../../location.html#US">US</a> - <em>United States of America
|
||||
<p>If lost:</p>
|
||||
<pre><code> ./whereami.sh lat long</code></pre>
|
||||
<p>Where <code>lat</code> and <code>long</code> correspond to your latitude and longitude.</p>
|
||||
<p><strong>NOTE</strong>: you <strong>MUST</strong> have a terminal that is at least 80 columns for this to show
|
||||
properly. The <code>whereami.sh</code> and <code>whereami.alt.sh</code> scripts check this but if you
|
||||
do not have such a terminal you can run the <code>whereami</code> (or for the alternate code
|
||||
described below, <code>whereami.alt</code>) directly.</p>
|
||||
<p><strong>NOTE</strong>: you <strong>MUST</strong> have a terminal that is <strong>at least 80 columns</strong> for this
|
||||
to show properly. The <code>whereami.sh</code> and <code>whereami.alt.sh</code> scripts check this.</p>
|
||||
<h2 id="try">Try:</h2>
|
||||
<pre><code> ./try.sh</code></pre>
|
||||
<h2 id="alternate-code">Alternate code:</h2>
|
||||
<p>The author provided a version for the US which we added.</p>
|
||||
<p>The author provided a version for the US which we added in two files: the first
|
||||
one is fixed to work for clang; the second one is more for show than for use: if
|
||||
you have your terminal set at 80 columns you will see that the source code
|
||||
documents itself. The author explains this but what is meant is it will look
|
||||
like:</p>
|
||||
<blockquote>
|
||||
<p>main(l,a,n,d)…<br>
|
||||
[A M E R I C A]…</p>
|
||||
</blockquote>
|
||||
<p>That version, which will not compile with <code>clang</code>, is the second alternate
|
||||
version, <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley.alt2.c">westley.alt2.c</a>.</p>
|
||||
<h3 id="alternate-build">Alternate build:</h3>
|
||||
<pre><code> make alt</code></pre>
|
||||
<p>If you have <code>gcc</code> you can also compile the second alternate version, though it
|
||||
is functionally equivalent to the first. The original limitation where one has
|
||||
to have a terminal that wraps at 80 columns is unfortunately in this version
|
||||
because it requires a specific length so if you do not have this it will not
|
||||
look right; use the first alternate version if you want to see correct output
|
||||
with wider terminals.</p>
|
||||
<pre><code> make alt2</code></pre>
|
||||
<h3 id="alternate-use">Alternate use:</h3>
|
||||
<pre><code> ./whereami.alt.sh lat long</code></pre>
|
||||
<p><strong>NOTE</strong>: this alternative version also needs a terminal with at least 80 columns
|
||||
but if you do not have such a terminal you can run <code>whereami.alt</code> directly.</p>
|
||||
<p><strong>NOTE</strong>: this alternative version also needs a terminal with <strong>at least 80
|
||||
columns</strong>.</p>
|
||||
<h3 id="alternate-try">Alternate try:</h3>
|
||||
<p>The <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/try.sh">try.sh</a> script uses both the original
|
||||
entry and the alternate code so one can try the same script for both:</p>
|
||||
@@ -555,6 +572,7 @@ 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.c">westley.c</a> - entry source code</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/Makefile">Makefile</a> - entry Makefile</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/westley.alt.c">westley.alt.c</a> - alternate source code</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/westley.alt2.c">westley.alt2.c</a> - one line alternate code that documents itself at 80 columns</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1992/westley/westley.alt.orig.c">westley.alt.orig.c</a> - original source code</li>
|
||||
<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>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
main(l,a,n,d)char**a;{for(d=atoi(a[1])/2*80-atoi(a[2])-2043;n="bnaBCOCXdBBHGYdAP[A M E R I C A].AqandkmavX|ELC}BOCd"[l++-3];)for(;n-->64;)putchar(!d+++33^l&1);}
|
||||
Executable → Regular
File mode changed.
@@ -1252,18 +1252,6 @@ at 80 columns. However due to the nature of the program if the terminal is <
|
||||
in column width it will not display right. To see the number of columns in your
|
||||
terminal try:</p>
|
||||
<pre><code> echo $COLUMNS</code></pre>
|
||||
<h3 id="status-known-bug---please-help-us-fix-4">STATUS: known bug - please help us fix</h3>
|
||||
<p>The author suggested that the alternate version, which Cody added (but fixed for
|
||||
modern systems), should print</p>
|
||||
<pre><code> main(l,a,n,d)...
|
||||
[A M E R I C A]...</code></pre>
|
||||
<p>…going down the left edge if your terminal auto-wraps at 80 characters.</p>
|
||||
<p>This however does not seem to work. It does not appear to be because of the fix
|
||||
for modern systems as it doesn’t work for gcc either, even before any changes.
|
||||
This might be a misunderstanding or it might be that having 80 columns (resized)
|
||||
does not count (though the output before the fix of the 80 column requirement
|
||||
showed was correct when at 80-columns so it seems like this could be a bug if
|
||||
it’s not a misunderstanding).</p>
|
||||
<hr style="width:10%;text-align:left;margin-left:0">
|
||||
<div id="1993">
|
||||
<h1 id="section-9">1993</h1>
|
||||
@@ -1289,7 +1277,7 @@ not exist in the archive. Do you have it? Please provide it!</p>
|
||||
<div id="1993_cmills">
|
||||
<h2 id="cmills">1993/cmills</h2>
|
||||
</div>
|
||||
<h3 id="status-known-bug---please-help-us-fix-5">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="status-known-bug---please-help-us-fix-4">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="source-code-1993cmillscmills.c">Source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1993/cmills/cmills.c">1993/cmills/cmills.c</a></h3>
|
||||
<h3 id="information-1993cmillsindex.html">Information: <a href="1993/cmills/index.html">1993/cmills/index.html</a></h3>
|
||||
<p>In multiple platforms, both macOS and also linux (in particular a RHEL 9.3
|
||||
@@ -1507,7 +1495,7 @@ if it checked for <code>!= EOF</code>.</p>
|
||||
<div id="1994_tvr">
|
||||
<h2 id="tvr">1994/tvr</h2>
|
||||
</div>
|
||||
<h3 id="status-known-bug---please-help-us-fix-6">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="status-known-bug---please-help-us-fix-5">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="source-code-1994tvrtvr.c">Source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1994/tvr/tvr.c">1994/tvr/tvr.c</a></h3>
|
||||
<h3 id="information-1994tvrindex.html">Information: <a href="1994/tvr/index.html">1994/tvr/index.html</a></h3>
|
||||
<p>The judges said the following in their remarks:</p>
|
||||
@@ -1540,7 +1528,7 @@ it calls <code>getchar()</code> via the pointer <code>m</code>. So this is a fea
|
||||
<div id="1995_leo">
|
||||
<h2 id="leo">1995/leo</h2>
|
||||
</div>
|
||||
<h3 id="status-known-bug---please-help-us-fix-7">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="status-known-bug---please-help-us-fix-6">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="source-code-1995leoleo.c">Source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1995/leo/leo.c">1995/leo/leo.c</a></h3>
|
||||
<h3 id="information-1995leoindex.html">Information: <a href="1995/leo/index.html">1995/leo/index.html</a></h3>
|
||||
<p>The judges suggested that the following commands should result in output:</p>
|
||||
@@ -1693,7 +1681,7 @@ is in the index.html file as something to try and ponder.</p>
|
||||
<div id="2000_dlowe">
|
||||
<h2 id="dlowe-1">2000/dlowe</h2>
|
||||
</div>
|
||||
<h3 id="status-known-bug---please-help-us-fix-8">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="status-known-bug---please-help-us-fix-7">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="source-code-2000dlowedlowe.c">Source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2000/dlowe/dlowe.c">2000/dlowe/dlowe.c</a></h3>
|
||||
<h3 id="information-2000dloweindex.html">Information: <a href="2000/dlowe/index.html">2000/dlowe/index.html</a></h3>
|
||||
<p>The author gives an example command:</p>
|
||||
@@ -1984,7 +1972,7 @@ before the fixes there.</p>
|
||||
<h3 id="information-2001herrmann1index.html">Information: <a href="2001/herrmann1/index.html">2001/herrmann1/index.html</a></h3>
|
||||
<p>The author referred to the file <code>herrmann1.turing</code> but it does not exist not even
|
||||
in the archive. Do you have a copy? Please provide it!</p>
|
||||
<h3 id="status-known-bug---please-help-us-fix-9">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="status-known-bug---please-help-us-fix-8">STATUS: known bug - please help us fix</h3>
|
||||
<p>There is also a bug in part. During compilation you’re supposed to see some
|
||||
animation but this does not seem to work with modern gcc versions. It appears
|
||||
that version 2.95 works but maybe others do as well. Do you have a fix? We would
|
||||
@@ -2060,7 +2048,7 @@ it? Please provide it!</p>
|
||||
<div id="2001_williams">
|
||||
<h2 id="williams">2001/williams</h2>
|
||||
</div>
|
||||
<h3 id="status-known-bug---please-help-us-fix-10">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="status-known-bug---please-help-us-fix-9">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="source-code-2001williamswilliams.c">Source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2001/williams/williams.c">2001/williams/williams.c</a></h3>
|
||||
<h3 id="information-2001williamsindex.html">Information: <a href="2001/williams/index.html">2001/williams/index.html</a></h3>
|
||||
<p>There seem to be a couple bugs at least in this entry. The first one is that
|
||||
@@ -2909,7 +2897,7 @@ player become bigger, stay away from blocks!</p>
|
||||
<div id="2014_vik">
|
||||
<h2 id="vik-2">2014/vik</h2>
|
||||
</div>
|
||||
<h3 id="status-known-bug---please-help-us-fix-11">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="status-known-bug---please-help-us-fix-10">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="source-code-2014vikprog.c">Source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2014/vik/prog.c">2014/vik/prog.c</a></h3>
|
||||
<h3 id="information-2014vikindex.html">Information: <a href="2014/vik/index.html">2014/vik/index.html</a></h3>
|
||||
<p><a href="authors.html#Cody_Boone_Ferguson">Cody Boone Ferguson</a> discovered a bug to do
|
||||
@@ -2968,7 +2956,7 @@ result. Error messages become garbled, though.</p></li>
|
||||
<div id="2015_howe">
|
||||
<h2 id="howe">2015/howe</h2>
|
||||
</div>
|
||||
<h3 id="status-known-bug---please-help-us-fix-12">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="status-known-bug---please-help-us-fix-11">STATUS: known bug - please help us fix</h3>
|
||||
<p>The test scripts do not seem to work properly with bash but this would be ideal
|
||||
as not all systems have a compatible shell (they assume a POSIX compliant
|
||||
shell). One, with bash, might see:</p>
|
||||
@@ -3063,7 +3051,7 @@ fixing the syntax error in the generated <code>ioccc.json</code> file.</p>
|
||||
<div id="2018_mills">
|
||||
<h2 id="mills-1">2018/mills</h2>
|
||||
</div>
|
||||
<h3 id="status-known-bug---please-help-us-fix-13">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="status-known-bug---please-help-us-fix-12">STATUS: known bug - please help us fix</h3>
|
||||
<h3 id="source-code-2018millsprog.c">Source code: <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2018/mills/prog.c">2018/mills/prog.c</a></h3>
|
||||
<h3 id="information-2018millsindex.html">Information: <a href="2018/mills/index.html">2018/mills/index.html</a></h3>
|
||||
<p>After exiting the program (with ctrl-e) if you try running it again you will
|
||||
|
||||
@@ -1230,26 +1230,6 @@ terminal try:
|
||||
```
|
||||
|
||||
|
||||
### STATUS: known bug - please help us fix
|
||||
|
||||
The author suggested that the alternate version, which Cody added (but fixed for
|
||||
modern systems), should print
|
||||
|
||||
``` <!---c-->
|
||||
main(l,a,n,d)...
|
||||
[A M E R I C A]...
|
||||
```
|
||||
|
||||
...going down the left edge if your terminal auto-wraps at 80 characters.
|
||||
|
||||
This however does not seem to work. It does not appear to be because of the fix
|
||||
for modern systems as it doesn't work for gcc either, even before any changes.
|
||||
This might be a misunderstanding or it might be that having 80 columns (resized)
|
||||
does not count (though the output before the fix of the 80 column requirement
|
||||
showed was correct when at 80-columns so it seems like this could be a bug if
|
||||
it's not a misunderstanding).
|
||||
|
||||
|
||||
<hr style="width:10%;text-align:left;margin-left:0">
|
||||
<div id="1993">
|
||||
# 1993
|
||||
|
||||
@@ -829,6 +829,7 @@
|
||||
1992,westley,westley.c,20,true,c,true,entry source code
|
||||
1992,westley,Makefile,30,true,makefile,true,entry Makefile
|
||||
1992,westley,westley.alt.c,40,true,c,true,alternate source code
|
||||
1992,westley,westley.alt2.c,45,true,c,true,one line alternate code that documents itself at 80 columns
|
||||
1992,westley,westley.alt.orig.c,50,true,c,true,original source code
|
||||
1992,westley,westley.orig.c,50,true,c,true,original source code
|
||||
1992,westley,try.sh,100,true,shellscript,true,script to try entry
|
||||
|
||||
|
Binary file not shown.
@@ -835,6 +835,7 @@
|
||||
1992/westley/try.sh
|
||||
1992/westley/westley.alt.c
|
||||
1992/westley/westley.alt.orig.c
|
||||
1992/westley/westley.alt2.c
|
||||
1992/westley/westley.c
|
||||
1992/westley/westley.orig.c
|
||||
1992/westley/whereami.alt.sh
|
||||
|
||||
@@ -835,6 +835,7 @@
|
||||
1992/westley/try.sh
|
||||
1992/westley/westley.alt.c
|
||||
1992/westley/westley.alt.orig.c
|
||||
1992/westley/westley.alt2.c
|
||||
1992/westley/westley.c
|
||||
1992/westley/westley.orig.c
|
||||
1992/westley/whereami.alt.sh
|
||||
|
||||
@@ -545,6 +545,7 @@
|
||||
1992/westley/try.sh
|
||||
1992/westley/westley.alt.c
|
||||
1992/westley/westley.alt.orig.c
|
||||
1992/westley/westley.alt2.c
|
||||
1992/westley/westley.c
|
||||
1992/westley/westley.orig.c
|
||||
1992/westley/whereami.alt.sh
|
||||
|
||||
Reference in new issue
Block a user