From f371b251d286ebdfd5cfd6be397d445cf7d5fc71 Mon Sep 17 00:00:00 2001 From: dtrg Date: Sat, 22 Jul 2006 00:46:16 +0000 Subject: [PATCH] Rationalised use of #includes to be more standards-compliant. --- util/ego/bo/bo.c | 1 + util/ego/ca/ca.c | 2 ++ util/ego/cf/cf.c | 1 + util/ego/cj/cj.c | 1 + util/ego/cs/cs.c | 1 + util/ego/ic/ic.c | 1 + util/ego/ic/ic_lookup.c | 2 ++ util/ego/il/il.c | 3 +++ util/ego/ra/makeitems.c | 2 ++ util/ego/ra/ra.c | 1 + util/ego/share/alloc.c | 2 +- util/ego/share/debug.c | 1 + util/ego/share/makecldef.c | 2 ++ util/ego/sp/sp.c | 1 + util/ego/sr/sr.c | 1 + util/ego/ud/ud.c | 1 + 16 files changed, 22 insertions(+), 1 deletion(-) diff --git a/util/ego/bo/bo.c b/util/ego/bo/bo.c index 275239078..c093fe8ab 100644 --- a/util/ego/bo/bo.c +++ b/util/ego/bo/bo.c @@ -9,6 +9,7 @@ */ +#include #include #include #include diff --git a/util/ego/ca/ca.c b/util/ego/ca/ca.c index f8952577e..9b22599e3 100644 --- a/util/ego/ca/ca.c +++ b/util/ego/ca/ca.c @@ -9,7 +9,9 @@ */ +#include #include +#include #include #include #include "../share/types.h" diff --git a/util/ego/cf/cf.c b/util/ego/cf/cf.c index c90747722..fe513ea8d 100644 --- a/util/ego/cf/cf.c +++ b/util/ego/cf/cf.c @@ -8,6 +8,7 @@ * M A I N R O U T I N E */ +#include #include #include #include diff --git a/util/ego/cj/cj.c b/util/ego/cj/cj.c index a5aa999a8..2ae26f3da 100644 --- a/util/ego/cj/cj.c +++ b/util/ego/cj/cj.c @@ -9,6 +9,7 @@ * */ +#include #include #include #include diff --git a/util/ego/cs/cs.c b/util/ego/cs/cs.c index 7cd76caff..21e6b488f 100644 --- a/util/ego/cs/cs.c +++ b/util/ego/cs/cs.c @@ -7,6 +7,7 @@ /* C O M M O N S U B E X P R E S S I O N E L I M I N A T I O N */ +#include #include #include "../share/types.h" #include "../share/lset.h" diff --git a/util/ego/ic/ic.c b/util/ego/ic/ic.c index 229274a7d..00eb717fd 100644 --- a/util/ego/ic/ic.c +++ b/util/ego/ic/ic.c @@ -8,6 +8,7 @@ * I C . C */ +#include #include #include #include diff --git a/util/ego/ic/ic_lookup.c b/util/ego/ic/ic_lookup.c index b691f4cb5..8a7afa233 100644 --- a/util/ego/ic/ic_lookup.c +++ b/util/ego/ic/ic_lookup.c @@ -9,7 +9,9 @@ */ +#include #include +#include #include #include "../share/types.h" #include "../share/debug.h" diff --git a/util/ego/il/il.c b/util/ego/il/il.c index 15fc6aea1..6ec2a8af2 100644 --- a/util/ego/il/il.c +++ b/util/ego/il/il.c @@ -4,7 +4,10 @@ * See the copyright notice in the ACK home directory, in the file "Copyright". */ /* I N L I N E S U B S T I T U T I O N */ + +#include #include +#include #include #include #include diff --git a/util/ego/ra/makeitems.c b/util/ego/ra/makeitems.c index a66e7b41f..1f84aa95d 100644 --- a/util/ego/ra/makeitems.c +++ b/util/ego/ra/makeitems.c @@ -3,6 +3,8 @@ * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ + +#include #include /* MAKE ITEMS TABLE diff --git a/util/ego/ra/ra.c b/util/ego/ra/ra.c index 2399ed47e..fdb345f0b 100644 --- a/util/ego/ra/ra.c +++ b/util/ego/ra/ra.c @@ -8,6 +8,7 @@ * */ +#include #include #include #include "../share/types.h" diff --git a/util/ego/share/alloc.c b/util/ego/share/alloc.c index f78f945ad..6e638f09a 100644 --- a/util/ego/share/alloc.c +++ b/util/ego/share/alloc.c @@ -10,6 +10,7 @@ +#include #include #include "types.h" #include "debug.h" @@ -17,7 +18,6 @@ char * myalloc(); -char * calloc(); #ifdef DEBUG diff --git a/util/ego/share/debug.c b/util/ego/share/debug.c index 46eb2b839..b16d488a2 100644 --- a/util/ego/share/debug.c +++ b/util/ego/share/debug.c @@ -9,6 +9,7 @@ */ +#include #include #include #include "types.h" diff --git a/util/ego/share/makecldef.c b/util/ego/share/makecldef.c index 4ccfeccea..ff22f68f1 100644 --- a/util/ego/share/makecldef.c +++ b/util/ego/share/makecldef.c @@ -3,6 +3,8 @@ * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ + +#include #include /* MAKECLASSDEF diff --git a/util/ego/sp/sp.c b/util/ego/sp/sp.c index 17c758e81..dcc0a99f9 100644 --- a/util/ego/sp/sp.c +++ b/util/ego/sp/sp.c @@ -9,6 +9,7 @@ */ +#include #include #include #include diff --git a/util/ego/sr/sr.c b/util/ego/sr/sr.c index 86300d7a6..fcc9b413e 100644 --- a/util/ego/sr/sr.c +++ b/util/ego/sr/sr.c @@ -6,6 +6,7 @@ /* S T R E N G T H R E D U C T I O N */ +#include #include #include "../share/types.h" #include "sr.h" diff --git a/util/ego/ud/ud.c b/util/ego/ud/ud.c index b0a91d669..610fd7a5e 100644 --- a/util/ego/ud/ud.c +++ b/util/ego/ud/ud.c @@ -5,6 +5,7 @@ */ /* U S E - D E F I N I T I O N A N A L Y S I S */ +#include #include #include #include "../share/types.h"