From 3019afc4321012d8e18504f225dfffb379fd72ce Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 16 Mar 2023 10:12:25 -0700 Subject: [PATCH] Minor updates to 1990 Add thank you note to Cody in some README.md files, remove the warning that 1990/westley/westley.c might not compile with modern compilers (since I fixed it) and reworded a statement slightly. Yes I'm thanking myself but it's actually from the judges. --- 1990/stig/README.md | 2 +- 1990/tbr/README.md | 9 +++++---- 1990/westley/README.md | 5 +++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/1990/stig/README.md b/1990/stig/README.md index 2bdc4e482..500aac79e 100644 --- a/1990/stig/README.md +++ b/1990/stig/README.md @@ -13,7 +13,7 @@ make all -NOTE: that's not a typo but one can also do: +NOTE: that's not a typo or mistake but one can also do: ./o diff --git a/1990/tbr/README.md b/1990/tbr/README.md index ee2c98ee3..9cc3a2410 100644 --- a/1990/tbr/README.md +++ b/1990/tbr/README.md @@ -17,10 +17,15 @@ make all +NOTE: modern compilers had a problem with this entry because the `exit(3)` +function returns void but [Cody Boone Ferguson](/winners#Cody_Boone_Ferguson) +got it to work with the use of a comma operator. Thank you Cody! + ### To run ./tbr + ## Judges' comments @@ -46,10 +51,6 @@ of the program which we include below: e(x){x<0?write(2,"?\n$ "-x/4,2),x+1||(exit(1),0):5;} -Modern compilers had a problem with this entry because the exit(3) function -returns void but we were able to get it to compile by using the comma -operator which we also did in the smaller version. - ## Author's comments diff --git a/1990/westley/README.md b/1990/westley/README.md index 99539285f..9f8051ccb 100644 --- a/1990/westley/README.md +++ b/1990/westley/README.md @@ -10,12 +10,13 @@ make all -NOTE: This entry might not compile when using modern compilers. - ### To run ./westley 1 +NOTE: [Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to +compile under modern systems. Thank you Cody for your assistance! + NOTE: this entry will segfault without an arg and will enter an infinite loop if input is not a number (or is a negative number).