108 lines
2.3 KiB
Markdown
108 lines
2.3 KiB
Markdown
## To build:
|
|
|
|
``` <!---sh-->
|
|
make all
|
|
```
|
|
|
|
**NOTE**: there is an [alternate version](#alternate-code) which will only work if
|
|
you have an old enough compiler or a compiler that supports `-traditional-cpp`.
|
|
The original code was fixed in 2023 to not require this.
|
|
|
|
|
|
### Bugs and (Mis)features:
|
|
|
|
The current status of this entry is:
|
|
|
|
> **STATUS: INABIAF - please DO NOT fix**
|
|
|
|
For more detailed information see [1984/decot in bugs.html](../../bugs.html#1984_decot).
|
|
|
|
|
|
## To use:
|
|
|
|
``` <!---sh-->
|
|
./decot
|
|
```
|
|
|
|
|
|
## Alternate code:
|
|
|
|
This alternate code, the original, requires a compiler that supports
|
|
`-traditional-cpp` or an old enough compiler. If you have such a compiler you
|
|
can use this version.
|
|
|
|
|
|
### Alternate build:
|
|
|
|
``` <!---sh-->
|
|
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:
|
|
|
|
``` <!---sh-->
|
|
./decot.alt
|
|
```
|
|
|
|
|
|
## Judges' remarks:
|
|
|
|
This program prints out what looks like a fragment of C code.
|
|
|
|
Is this a **bug** or is this a **feature**? To help choose
|
|
the judges offer this one comment: understand remarks!
|
|
|
|
|
|
### Historical remarks:
|
|
|
|
Some new (in 1984) compilers disliked line 15 of the original source, so we
|
|
changed it from:
|
|
|
|
``` <!---c-->
|
|
for(signal=0;*k * x * __FILE__ *i;) do {
|
|
```
|
|
|
|
to:
|
|
|
|
``` <!---c-->
|
|
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) 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:
|
|
|
|
No remarks were provided by the author.
|
|
|
|
|
|
<!--
|
|
|
|
Copyright © 1984-2024 by Landon Curt Noll. All Rights Reserved.
|
|
|
|
You are free to share and adapt this file under the terms of this license:
|
|
|
|
Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
|
|
|
|
For more information, see:
|
|
|
|
https://creativecommons.org/licenses/by-sa/4.0/
|
|
|
|
-->
|