From 41d230e23451cdf2e08090736e366c2ae94a11aa Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 8 Nov 2023 11:55:10 -0800 Subject: [PATCH] Fix 1992/gson in macOS + format/typo checks The fix is simply disabling the optimiser. This allows the specific cases where it crashed on start in macOS to not happen. An example command where it crashed: ./gson free software foundation < /usr/share/dict/words The README.md file has been typo/format checked. --- 1992/gson/Makefile | 2 +- 1992/gson/README.md | 54 +++++++++++++++++++++++++++------------------ thanks-for-fixes.md | 5 ++++- 3 files changed, 37 insertions(+), 24 deletions(-) diff --git a/1992/gson/Makefile b/1992/gson/Makefile index 103b1d9fa..d73e8c79e 100644 --- a/1992/gson/Makefile +++ b/1992/gson/Makefile @@ -69,7 +69,7 @@ CINCLUDE= # Optimization # -OPT= -O3 +OPT= # Default flags for ANSI C compilation # diff --git a/1992/gson/README.md b/1992/gson/README.md index 45996f635..743386ab9 100644 --- a/1992/gson/README.md +++ b/1992/gson/README.md @@ -4,6 +4,16 @@ make all ``` +### Bugs and (Mis)features: + +The current status of this entry is: + +``` +STATUS: uses gets() - change to fgets() if possible +``` + +For more detailed information see [1992 gson in bugs.md](/bugs.md#1992-gson). + ## To use: @@ -92,7 +102,7 @@ number of words in the anagrams is limited to 3 by default. This limit can be changed using a numeric command line option, as in `./ag -4 international obfuscated c code contest