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:
1 parent
1a907f1360
commit
b86f6dc73e
2 files changed
+4
-4
No files matched your search
+4
-3
@@ -39,7 +39,8 @@ include ../../var.mk
|
|||||||
# Common C compiler warnings to silence
|
# Common C compiler warnings to silence
|
||||||
#
|
#
|
||||||
CSILENCE= -Wno-char-subscripts -Wno-error -Wno-implicit-function-declaration \
|
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
|
# Common C compiler warning flags
|
||||||
#
|
#
|
||||||
@@ -114,8 +115,8 @@ OBJ= ${PROG}.o
|
|||||||
DATA=
|
DATA=
|
||||||
TARGET= ${PROG}
|
TARGET= ${PROG}
|
||||||
#
|
#
|
||||||
ALT_OBJ=
|
ALT_OBJ= ${PROG}.alt.o
|
||||||
ALT_TARGET=
|
ALT_TARGET= ${PROG}.alt
|
||||||
|
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
int e(int x),r(int t,int o);
|
|
||||||
#define gets(x)fgets((x),512,stdin)
|
#define gets(x)fgets((x),512,stdin)
|
||||||
#define exit(x) exit((x)),0
|
#define exit(x) exit((x)),0
|
||||||
#define D ,close(
|
#define D ,close(
|
||||||
|
|||||||
Reference in new issue
Block a user