Merge pull request #1730 from xexyl/buzzard.2-1992
This commit is contained in:
3 files changed
+41
-19
No files matched your search
+26
-12
@@ -5,7 +5,8 @@ make all
|
|||||||
```
|
```
|
||||||
|
|
||||||
NOTE: this version is a fixed version for modern C compilers. See the [Alternate
|
NOTE: this version is a fixed version for modern C compilers. See the [Alternate
|
||||||
code](#alternate-code) section below for how to use the original.
|
code](#alternate-code) section below for how to use the original and why one
|
||||||
|
might wish to do so.
|
||||||
|
|
||||||
|
|
||||||
### Try:
|
### Try:
|
||||||
@@ -23,6 +24,30 @@ Also try:
|
|||||||
to show the code with followed by the result so you can truly see the magic.
|
to show the code with followed by the result so you can truly see the magic.
|
||||||
|
|
||||||
|
|
||||||
|
## Alternate code:
|
||||||
|
|
||||||
|
This version is the original which might not work as you expect nowadays.
|
||||||
|
|
||||||
|
|
||||||
|
### Alternate build:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make alt
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Alternate use:
|
||||||
|
|
||||||
|
To see if your compiler has the problem described in the Judges' remarks below,
|
||||||
|
try:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./westley.alt
|
||||||
|
```
|
||||||
|
|
||||||
|
Does it show the same output as `westley`?
|
||||||
|
|
||||||
|
|
||||||
## Judges' remarks:
|
## Judges' remarks:
|
||||||
|
|
||||||
Your compiler must parse
|
Your compiler must parse
|
||||||
@@ -51,17 +76,6 @@ cc -E westley.alt.c
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Alternate code:
|
|
||||||
|
|
||||||
To see if your compiler has the problem described above try:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
make alt
|
|
||||||
./westley.alt
|
|
||||||
```
|
|
||||||
|
|
||||||
Does it show the same output as `westley`?
|
|
||||||
|
|
||||||
|
|
||||||
## Author's remarks:
|
## Author's remarks:
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
make all
|
make all
|
||||||
```
|
```
|
||||||
|
|
||||||
|
There is an alternate version of this program. See [Alternate
|
||||||
|
code](#alternate-code) below for details.
|
||||||
|
|
||||||
|
|
||||||
## To use:
|
## To use:
|
||||||
|
|
||||||
@@ -47,9 +50,10 @@ Sorry, this is third!
|
|||||||
|
|
||||||
## Alternate code:
|
## Alternate code:
|
||||||
|
|
||||||
An alternate version of this entry, [buzzard.2.alt.c](buzzard.2.alt.c), is
|
This alternate version, [buzzard.2.alt.c](buzzard.2.alt.c), does not contain a
|
||||||
provided. This alternate code does not contain a fix that the author notes
|
fix that the author notes in their remarks.
|
||||||
below.
|
|
||||||
|
### Alternate build:
|
||||||
|
|
||||||
To compile this alternate version:
|
To compile this alternate version:
|
||||||
|
|
||||||
@@ -57,6 +61,9 @@ To compile this alternate version:
|
|||||||
make alt
|
make alt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Alternate use:
|
||||||
|
|
||||||
Use `buzzard.2.alt` as you would `buzzard.2` above.
|
Use `buzzard.2.alt` as you would `buzzard.2` above.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+5
-4
@@ -676,12 +676,13 @@ was fixed by Misha Dynin, based on the judges' remarks, so that this would work
|
|||||||
with modern C compilers. We encourage you to try the alternate version to see
|
with modern C compilers. We encourage you to try the alternate version to see
|
||||||
what happens with current compilers! See the README.md files for details.
|
what happens with current compilers! See the README.md files for details.
|
||||||
|
|
||||||
[Cody](#cody) changed the `int`s to be `float` as that's what they are printed as: not
|
[Cody](#cody) added the [try.sh](/1988/westley/try.sh) script to show the magic of the
|
||||||
strictly necessary but nonetheless more correct, even if not warned against.
|
|
||||||
|
|
||||||
Cody added the [try.sh](/1988/westley/try.sh) script to show the magic of the
|
|
||||||
entry as seeing the code with the result at once is far more beautiful.
|
entry as seeing the code with the result at once is far more beautiful.
|
||||||
|
|
||||||
|
Cody also changed the `int`s to be `float` as that's what they are printed as:
|
||||||
|
not strictly necessary but nonetheless more correct, even if not warned against.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# <a name="1989"></a>1989
|
# <a name="1989"></a>1989
|
||||||
|
|||||||
Reference in new issue
Block a user