Fix more invalid prototypes of stdlib functions; build dependency fix.
authorDavid Given <dg@cowlark.com>
Thu, 24 Nov 2016 20:26:05 +0000 (21:26 +0100)
committerDavid Given <dg@cowlark.com>
Thu, 24 Nov 2016 20:26:05 +0000 (21:26 +0100)
lang/basic/src/bem.h
lang/basic/src/build.lua

index deb6eb4..eb14358 100644 (file)
@@ -3,6 +3,7 @@
  * See the copyright notice in the ACK home directory, in the file "Copyright".
  */
 
+#include <stdlib.h>
 #include <ctype.h>
 #include <string.h>
 #include <signal.h>
@@ -73,11 +74,3 @@ extern Linerecord *currline;
 
 extern char *itoa();
 extern char *salloc();
-
-extern char *strcpy();
-extern char *strcat();
-#if __STDC__
-#include <stdlib.h>
-#else
-extern char *malloc();
-#endif
index f4d6b94..eff53d6 100644 (file)
@@ -24,6 +24,7 @@ cprogram {
                matching(filenamesof("+llgen"), "%.c$"),
        },
        deps = {
+               "./*.h",
                "+llgen",
                "+tokentab_h",
                "h+emheaders",