From: David Given Date: Thu, 24 Nov 2016 20:26:05 +0000 (+0100) Subject: Fix more invalid prototypes of stdlib functions; build dependency fix. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b8a2935f2bc6a3f9b06fbdfa21a56cc665b80d91;p=ack.git Fix more invalid prototypes of stdlib functions; build dependency fix. --- 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",