Modernised usage of system header files.
authordtrg <none@none>
Fri, 3 Feb 2006 22:23:37 +0000 (22:23 +0000)
committerdtrg <none@none>
Fri, 3 Feb 2006 22:23:37 +0000 (22:23 +0000)
util/LLgen/src/alloc.c
util/LLgen/src/check.c
util/LLgen/src/main.c

index 0580b4a..25ca26d 100644 (file)
@@ -16,6 +16,7 @@
  * Interface to malloc() and realloc()
  */
 
+#include <stdlib.h>
 # include "types.h"
 # include "extern.h"
 
@@ -31,7 +32,6 @@ alloc(size) unsigned size; {
           Allocate "size" bytes. Panic if it fails
         */
        p_mem   p;
-       p_mem   malloc();
 
        if ((p = malloc(size)) == 0) fatal(linecount,e_nomem);
        return p;
@@ -43,8 +43,6 @@ ralloc(p,size) p_mem p; unsigned size; {
           Re-allocate the chunk of memory indicated by "p", to
           occupy "size" bytes
         */
-       p_mem   realloc();
-
        if ((p = realloc(p,size)) == 0) fatal(linecount,e_nomem);
        return p;
 }
index 2c974ae..21d8a9f 100644 (file)
@@ -16,6 +16,8 @@
  * Several routines to perform checks and printouts
  */
 
+#include <stdlib.h>
+#include <string.h>
 # include "types.h"
 # include "extern.h"
 # include "io.h"
index 82b88d3..733c0d8 100644 (file)
@@ -16,6 +16,8 @@
  * Contains main program, and some error message routines
  */
 
+#include <stdlib.h>
+#include <string.h>
 # include "types.h"
 # include "io.h"
 # include "extern.h"