From b8a2935f2bc6a3f9b06fbdfa21a56cc665b80d91 Mon Sep 17 00:00:00 2001 From: David Given Date: Thu, 24 Nov 2016 21:26:05 +0100 Subject: [PATCH] Fix more invalid prototypes of stdlib functions; build dependency fix. --- lang/basic/src/bem.h | 9 +-------- lang/basic/src/build.lua | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lang/basic/src/bem.h b/lang/basic/src/bem.h index deb6eb435..eb1435802 100644 --- a/lang/basic/src/bem.h +++ b/lang/basic/src/bem.h @@ -3,6 +3,7 @@ * See the copyright notice in the ACK home directory, in the file "Copyright". */ +#include #include #include #include @@ -73,11 +74,3 @@ extern Linerecord *currline; extern char *itoa(); extern char *salloc(); - -extern char *strcpy(); -extern char *strcat(); -#if __STDC__ -#include -#else -extern char *malloc(); -#endif diff --git a/lang/basic/src/build.lua b/lang/basic/src/build.lua index f4d6b94a8..eff53d6e9 100644 --- a/lang/basic/src/build.lua +++ b/lang/basic/src/build.lua @@ -24,6 +24,7 @@ cprogram { matching(filenamesof("+llgen"), "%.c$"), }, deps = { + "./*.h", "+llgen", "+tokentab_h", "h+emheaders",