Fix 1986/wall to no longer need -traditional-cpp
This was also a lot of fun to fix. It took a fair bit of tinkering but it was a lot of fun to figure out and now it works like it does with -traditional-cpp! Removed this entry from the bugs.md file as it now works. Also added to the bugs.md a minor clarification about another entry that is in status INABIAF (about warnings).
This commit is contained in:
1 parent
2d145e9f25
commit
a74abb69b7
6 files changed
+123
-38
No files matched your search
+27
-7
@@ -8,17 +8,37 @@ US of A
|
||||
|
||||
## To build:
|
||||
|
||||
make all
|
||||
|
||||
```sh
|
||||
make all
|
||||
```
|
||||
|
||||
We used a patch provided by [Yusuke Endoh](/winners.html#Yusuke_Endoh) to make
|
||||
this work with gcc. Thank you Yusuke!
|
||||
this work with gcc. Thank you Yusuke! [Cody Boone
|
||||
Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this so that it does not
|
||||
require `-traditional-cpp`. This took a fair bit of tinkering as this entry *is*
|
||||
strange. Thank you Cody for your assistance!
|
||||
|
||||
NOTE: On modern systems this entry requires the option `-traditional-cpp` which
|
||||
clang does not support. Please be advised that gcc under macOS is actually
|
||||
clang so this will not compile with the default gcc under macOS. As this entry
|
||||
stood in modern systems it did not work even when compiled.
|
||||
## To use:
|
||||
|
||||
```sh
|
||||
./wall
|
||||
```
|
||||
|
||||
### Alternative code:
|
||||
|
||||
If you have an old compiler or a compiler that supports `-traditional-cpp` you
|
||||
might enjoy looking at the original source (after patch by Yusuke applied) in
|
||||
[wall.alt.c](wall.alt.c). To build:
|
||||
|
||||
```sh
|
||||
# if you have an old enough compiler:
|
||||
make alt
|
||||
|
||||
# or with gcc:
|
||||
make CFLAGS+="-traditional-cpp" alt
|
||||
```
|
||||
|
||||
Use `./wall.alt` as you would `./wall`.
|
||||
|
||||
## Judges' comments:
|
||||
|
||||
|
||||
Reference in new issue
Block a user