Get 1992/lush to work with gcc - won't with clang
I used a patch from Yusuke Endoh to get it to work with gcc. Due to the different messages with different compilers it's expected that this won't work with every compiler. I provided a 'runme.sh' script to run the command in the correct way. I made the entry use fgets() not gets(). I updated bugs.md pointing out that it does not work with clang and alternative code is welcome.
This commit is contained in:
1 parent
3865049bde
commit
b945ec015f
5 files changed
+41
-16
No files matched your search
+17
-11
@@ -9,23 +9,29 @@
|
||||
|
||||
make all
|
||||
|
||||
### To run
|
||||
### To run:
|
||||
|
||||
make lush.again 2>&1 | ./lush
|
||||
./runme.sh
|
||||
|
||||
NOTE: This entry requires a non-standard K&R C compiler to compile.
|
||||
|
||||
## Judges' comments
|
||||
[Yusuke Endoh](/winners.html#Yusuke_Endoh) supplied a patch which makes this
|
||||
work with gcc. Thank you Yusuke! [Cody Boone
|
||||
Ferguson](/winners.html#Cody_Boone_Ferguson) made it use `fgets()` instead of
|
||||
`gets()` and also added the `runme.sh` script to demonstrate it (using make was
|
||||
problematic). Cody notes that unfortunately this does not work with clang due to
|
||||
different compiler messages.
|
||||
|
||||
The program uses error messages issued by the C Proproessor to
|
||||
generate its message to the world. One program's error is another
|
||||
program's data!
|
||||
## Judges' comments:
|
||||
|
||||
## Author's comments
|
||||
The program uses error messages issued by the C Preprocessor to
|
||||
generate its message to the world. One program's error is another
|
||||
program's data!
|
||||
|
||||
This program is yet another "Hello World." program with a twist. The
|
||||
string Hello World has been encoded in the error messages the compiler
|
||||
generates when compiling the source.
|
||||
## Author's comments:
|
||||
|
||||
This program is yet another "Hello World." program with a twist. The
|
||||
string Hello World has been encoded in the error messages the compiler
|
||||
generates when compiling the source.
|
||||
|
||||
## Copyright and CC BY-SA 4.0 License:
|
||||
|
||||
|
||||
Reference in new issue
Block a user