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:
Cody Boone Ferguson committed 2023-03-28 07:42:07 -07:00
1 parent 3865049bde
commit b945ec015f
5 files changed
+41 -16

No files matched your search

+16
View File
@@ -113,6 +113,14 @@ any problems.
Entries with this status do not work under some OSes and/or architectures (and/or
something else?). Please help us to fix it!
## STATUS: doesn't work with some compilers - please provide alternative code
Some entries do not work with some compilers. A good example is
[1992/lush](1992/lush/lush.c) which uses error messages from the compiler to
generate its output.
Please help us by writing alternative code!
## STATUS: main() function args not allowed - please help us fix
Entries with this status have a problem in that the args to main() are not of a
@@ -440,6 +448,14 @@ so it should stay with this note.
# 1992
## [1992/lush](1992/lush/lush.c) ([README.md](1992/lush/README.md))
## STATUS: doesn't work with some compilers - please provide alternative code
We used a patch from [Yusuke Endoh](/winners.html#Yusuke_Endoh) to get this to
work but it only works with gcc. Unfortunately due to the way the entry works
and the fact that other compilers like clang have different warnings and errors
this simply does not work with them. Can you help us?
# 1993