diff --git a/1992/lush/lush.c b/1992/lush/lush.c index dc088f4c9..b81db01bd 100644 --- a/1992/lush/lush.c +++ b/1992/lush/lush.c @@ -1,3 +1,5 @@ +#define gets(_) fgets((_),999,stdin) +#line 1 #define f 000: char *s,* @@ -63,8 +65,8 @@ ;;;} ;for ( ; - fgets - (_,999,stdin); + gets + (_); ) { for( #define f 301: diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index a444eaf1c..75f34729b 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -585,6 +585,11 @@ which can be confusing) 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. +Cody later improved the `fgets()` change to look more like the original i.e. it +now uses a redefined `gets()`. This did require modifying the line number with +`#line 1` under the macro `gets()`. Still this cannot work with clang due to +different compiler messages. See [bugs.md](/bugs.md) for details. + ## [1992/westley](1992/westley/westley.c) ([README.md](1992/westley/README.md]))