Rationalised use of #includes to be more standards-compliant.
authordtrg <none@none>
Tue, 18 Jul 2006 17:18:42 +0000 (17:18 +0000)
committerdtrg <none@none>
Tue, 18 Jul 2006 17:18:42 +0000 (17:18 +0000)
util/grind/make.allocd
util/ncgg/emlookup.c
util/ncgg/error.c
util/ncgg/expr.c
util/ncgg/iocc.c
util/ncgg/main.c
util/ncgg/subr.c

index c4dd3e1..e307769 100755 (executable)
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 sed -e '
 s:^.*[         ]ALLOCDEF[      ].*"\(.*\)"[    ]*\([0-9][0-9]*\).*$:\
 /* allocation definitions of struct \1 */\
index 0daa873..6d0d9a3 100644 (file)
@@ -6,6 +6,8 @@
 static char rcsid[]= "$Id$";
 #endif
 
+#include <stdlib.h>
+#include <string.h>
 #include "param.h"
 #include "expr.h"
 #include <em_spec.h>
index 1a6971d..48cac2c 100644 (file)
@@ -6,6 +6,7 @@
 static char rcsid[]= "$Id$";
 #endif
 
+#include <stdlib.h>
 #include <stdio.h>
 
 int nerrors=0;
index cdd6b72..77afe57 100644 (file)
@@ -6,6 +6,8 @@
 static char rcsid[]= "$Id$";
 #endif
 
+#include <stdlib.h>
+#include <stdio.h>
 #include "assert.h"
 #include "param.h"
 #include "set.h"
index 9b2065f..a6f4506 100644 (file)
@@ -6,6 +6,8 @@
 static char rcsid[]= "$Id$";
 #endif
 
+#include <stdlib.h>
+#include <stdio.h>
 #include "assert.h"
 #include "param.h"
 #include "set.h"
index 1ff83a5..2c805e7 100644 (file)
@@ -6,6 +6,7 @@
 static char rcsid[]= "$Id$";
 #endif
 
+#include <stdlib.h>
 #include <stdio.h>
 
 char *filename;
index 883d7e1..60caad8 100644 (file)
@@ -6,6 +6,8 @@
 static char rcsid[]= "$Id$";
 #endif
 
+#include <stdlib.h>
+#include <string.h>
 #include "param.h"
 #include "reg.h"
 #include "lookup.h"
@@ -352,7 +354,6 @@ char *mystrcpy(s) char *s; {
 
 char *myalloc(n) register n; {
        register char *p,*result;
-       char *malloc();
 
        result=p=malloc(n);
        if (p== (char *) 0)