Improve fix of 1990/tbr

In particular the fix to make it more like the original. There was no
need to have the function prototypes at the top of the file.

I also added a couple -Wno- options to the CSILENCE variable in the
Makefile.

I also added to the Makefile so that make alt will build the alt version
(only functional difference is that there is gets() instead of fgets()).
This commit is contained in:
Cody Boone Ferguson committed 2023-09-26 11:23:31 -07:00
1 parent 1a907f1360
commit b86f6dc73e
2 files changed
+4 -4

No files matched your search

+4 -3
View File
@@ -39,7 +39,8 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-char-subscripts -Wno-error -Wno-implicit-function-declaration \
-Wno-unused-value -Wno-deprecated-non-prototype -Wno-return-type
-Wno-unused-value -Wno-deprecated-non-prototype -Wno-return-type -Wno-implicit-int \
-Wno-empty-body
# Common C compiler warning flags
#
@@ -114,8 +115,8 @@ OBJ= ${PROG}.o
DATA=
TARGET= ${PROG}
#
ALT_OBJ=
ALT_TARGET=
ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ${PROG}.alt
#################
-1
View File
@@ -1,4 +1,3 @@
int e(int x),r(int t,int o);
#define gets(x)fgets((x),512,stdin)
#define exit(x) exit((x)),0
#define D ,close(