From 71a92846dd2c162e589f69236822d1cc629cd15a Mon Sep 17 00:00:00 2001 From: dtrg Date: Fri, 3 Feb 2006 22:23:37 +0000 Subject: [PATCH] Modernised usage of system header files. --- util/LLgen/src/alloc.c | 4 +--- util/LLgen/src/check.c | 2 ++ util/LLgen/src/main.c | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/util/LLgen/src/alloc.c b/util/LLgen/src/alloc.c index 0580b4a9c..25ca26d6e 100644 --- a/util/LLgen/src/alloc.c +++ b/util/LLgen/src/alloc.c @@ -16,6 +16,7 @@ * Interface to malloc() and realloc() */ +#include # 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; } diff --git a/util/LLgen/src/check.c b/util/LLgen/src/check.c index 2c974aecd..21d8a9f93 100644 --- a/util/LLgen/src/check.c +++ b/util/LLgen/src/check.c @@ -16,6 +16,8 @@ * Several routines to perform checks and printouts */ +#include +#include # include "types.h" # include "extern.h" # include "io.h" diff --git a/util/LLgen/src/main.c b/util/LLgen/src/main.c index 82b88d3aa..733c0d81a 100644 --- a/util/LLgen/src/main.c +++ b/util/LLgen/src/main.c @@ -16,6 +16,8 @@ * Contains main program, and some error message routines */ +#include +#include # include "types.h" # include "io.h" # include "extern.h" -- 2.34.1