From 10a947b34e7c3bd0107b2f6795f3e25a878d6394 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 18 Oct 2023 01:32:07 -0700 Subject: [PATCH 1/4] Minor improvements to 1991/fine/{demo.sh,Makefile} The demo.sh script now shows a bit more what is going on, at least in so far as the text can go either way: instead of showing: Green terra: Terra green Vex: Irk [...] The rug gary lenT: Gur eht tnel yraG it shows: Green terra <-> Terra green Vex <-> Irk [...] The rug gary lenT <-> Gur eht tnel yraG The Makefile now silences as many warnings as possible. --- 1991/fine/Makefile | 5 +++-- 1991/fine/demo.sh | 16 ++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/1991/fine/Makefile b/1991/fine/Makefile index 6d59c67fa..884227c08 100644 --- a/1991/fine/Makefile +++ b/1991/fine/Makefile @@ -39,7 +39,8 @@ include ../../var.mk # Common C compiler warnings to silence # CSILENCE= -Wno-bitwise-op-parentheses -Wno-error -Wno-implicit-function-declaration \ - -Wno-int-conversion -Wno-pointer-to-int-cast -Wno-implicit-int + -Wno-int-conversion -Wno-pointer-to-int-cast -Wno-implicit-int -Wno-parentheses \ + -Wno-return-type -Wno-deprecated-non-prototype -Wno-disabled-macro-expansion # Common C compiler warning flags # @@ -94,7 +95,7 @@ endif # ifeq ($(CC),gcc) # -#CSILENCE+= +CSILENCE+= -Wno-missing-parameter-type # #CWARN+= # diff --git a/1991/fine/demo.sh b/1991/fine/demo.sh index fce54fd84..c651c3bc9 100755 --- a/1991/fine/demo.sh +++ b/1991/fine/demo.sh @@ -2,22 +2,22 @@ make all || exit 1 -echo -n "Green terra: " +echo -n "Green terra <-> " echo "Green terra" |./fine -echo -n "Vex: " +echo -n "Vex <-> " echo "Vex" | ./fine -echo -n "Tang: " +echo -n "Tang <-> " echo "Tang" | ./fine -echo -n "Vend onyx: " +echo -n "Vend onyx <-> " echo "Vend onyx" | ./fine -echo -n "Cheryl be flashy: " +echo -n "Cheryl be flashy <-> " echo "Cheryl be flashy" | ./fine -echo -n "Rail: " +echo -n "Rail <-> " echo "Rail" | ./fine -echo -n "Clerk: " +echo -n "Clerk <-> " echo "Clerk" | ./fine -echo -n "The rug gary lenT: " +echo -n "The rug gary lenT <-> " echo "The rug gary lenT" | ./fine From c50723592cf155ac3a861cc312449079e704b4a1 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 18 Oct 2023 01:44:55 -0700 Subject: [PATCH 2/4] Remove extra spaces in 1991/fine/demo.sh --- 1991/fine/demo.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/1991/fine/demo.sh b/1991/fine/demo.sh index c651c3bc9..03f0996fd 100755 --- a/1991/fine/demo.sh +++ b/1991/fine/demo.sh @@ -2,22 +2,22 @@ make all || exit 1 -echo -n "Green terra <-> " +echo -n "Green terra <-> " echo "Green terra" |./fine -echo -n "Vex <-> " +echo -n "Vex <-> " echo "Vex" | ./fine -echo -n "Tang <-> " +echo -n "Tang <-> " echo "Tang" | ./fine -echo -n "Vend onyx <-> " +echo -n "Vend onyx <-> " echo "Vend onyx" | ./fine -echo -n "Cheryl be flashy <-> " +echo -n "Cheryl be flashy <-> " echo "Cheryl be flashy" | ./fine -echo -n "Rail <-> " +echo -n "Rail <-> " echo "Rail" | ./fine -echo -n "Clerk <-> " +echo -n "Clerk <-> " echo "Clerk" | ./fine -echo -n "The rug gary lenT <-> " +echo -n "The rug gary lenT <-> " echo "The rug gary lenT" | ./fine From d480964c3ed583e797b43e10f0c19fee6ef73b1d Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 18 Oct 2023 01:46:54 -0700 Subject: [PATCH 3/4] Add comment at top of 1991/fine/demo.sh It seems like if I'm going to add a demo script it might be a good idea to have a comment briefly explaining what the script does but in such a way that does not spoil the entry. --- 1991/fine/demo.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/1991/fine/demo.sh b/1991/fine/demo.sh index 03f0996fd..96bb82a73 100755 --- a/1991/fine/demo.sh +++ b/1991/fine/demo.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# +# demo.sh - script to demonstrate IOCCC entry 1991/fine +# make all || exit 1 From ff02e6ce8ab9b93bc1905d58f323f6be7aa8eba1 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 18 Oct 2023 04:43:12 -0700 Subject: [PATCH 4/4] Add missing space to 1991/fine/demo.sh --- 1991/fine/demo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1991/fine/demo.sh b/1991/fine/demo.sh index 96bb82a73..9beddf6a9 100755 --- a/1991/fine/demo.sh +++ b/1991/fine/demo.sh @@ -6,7 +6,7 @@ make all || exit 1 echo -n "Green terra <-> " -echo "Green terra" |./fine +echo "Green terra" | ./fine echo -n "Vex <-> " echo "Vex" | ./fine