Fix 1984/decot alt build

In the case of this entry, it is so screwy that having the CFLAGS
conflicts with the -traditional-cpp option in some systems. Thus the alt
rule has ONLY the -traditional-cpp option. The thanks file notes this
oddity and how to view the diff between the original and the alternate
code.

Also the bugs file was changed to be worded like the README.md file.

The index.html file was improved for the fix to the Makefile (for the
alt build) and it also links to the specific lines in the code on GitHub
(see the index.html file how it talks about specific lines in the
judges' remarks).
This commit is contained in:
Cody Boone Ferguson committed 2024-06-20 06:29:56 -07:00
1 parent d3a036b900
commit ebdc5487ad
8 files changed
+58 -26

No files matched your search

+1
View File
@@ -2,6 +2,7 @@
# sort with: ../../bin/sgi.sh
*.dSYM
decot
decot.alt
decot.orig
indent
indent.c
+4 -2
View File
@@ -144,9 +144,11 @@ ${PROG}: ${PROG}.c
alt: data ${ALT_TARGET}
@${TRUE}
# We CANNOT have the ${CFLAGS} here as -traditional-cpp conflicts with them,
# causing a compilation error in at least some versions of gcc.
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} -traditional-cpp $< -o $@ ${LDFLAGS}
${CC} -traditional-cpp $< -o $@ ${LDFLAGS}
# data files
#
data: ${DATA}
+11 -2
View File
@@ -40,6 +40,10 @@ can use this version.
make alt
```
Notice that one **CANNOT** have the usual `${CFLAGS}` along with the
`-traditional-cpp` in all systems. This is why the Makefile only has the latter
option as the others conflict with it.
### Alternate use:
@@ -71,14 +75,19 @@ to:
for(signal=0;*k *x * __FILE__ *i;) do {
```
To see what we mean look at the [original source file](%%REPO_URL%%/1984/decot/decot.orig.c). The
[alternate code](%%REPO_URL%%/1984/decot/decot.alt.c) is the version that has this modification. The
To see what we mean look at the [original source
file](%%REPO_URL%%/1984/decot/decot.orig.c) at [line
15](%%REPO_URL%%/1984/decot/decot.orig.c#L15) which has the way it once was. The
[alternate code](%%REPO_URL%%/1984/decot/decot.alt.c) is the version that has
this modification but at [line 16](%%REPO_URL%%/1984/decot/decot.alt.c#L16). The
fixed version has instead:
``` <!---c-->
for(signal=0;*k *= * __FILE__ *i;) do {
```
plus a line above it that had to be added.
## Author's remarks:
+9 -2
View File
@@ -418,6 +418,9 @@ The original code was fixed in 2023 to not require this.</p>
can use this version.</p>
<h3 id="alternate-build">Alternate build:</h3>
<pre><code> make alt</code></pre>
<p>Notice that one <strong>CANNOT</strong> have the usual <code>${CFLAGS}</code> along with the
<code>-traditional-cpp</code> in all systems. This is why the Makefile only has the latter
option as the others conflict with it.</p>
<h3 id="alternate-use">Alternate use:</h3>
<pre><code> ./decot.alt</code></pre>
<h2 id="judges-remarks">Judges’ remarks:</h2>
@@ -430,10 +433,14 @@ changed it from:</p>
<pre><code> for(signal=0;*k * x * __FILE__ *i;) do {</code></pre>
<p>to:</p>
<pre><code> for(signal=0;*k *x * __FILE__ *i;) do {</code></pre>
<p>To see what we mean look at the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1984/decot/decot.orig.c">original source file</a>. The
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1984/decot/decot.alt.c">alternate code</a> is the version that has this modification. The
<p>To see what we mean look at the <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1984/decot/decot.orig.c">original source
file</a> at <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1984/decot/decot.orig.c#L15">line
15</a> which has the way it once was. The
<a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1984/decot/decot.alt.c">alternate code</a> is the version that has
this modification but at <a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1984/decot/decot.alt.c#L16">line 16</a>. The
fixed version has instead:</p>
<pre><code> for(signal=0;*k *= * __FILE__ *i;) do {</code></pre>
<p>plus a line above it that had to be added.</p>
<h2 id="authors-remarks">Author’s remarks:</h2>
<p>No remarks were provided by the author.</p>
<!--