From: dtrg Date: Wed, 19 Jul 2006 14:09:05 +0000 (+0000) Subject: Rationalised use of #includes to be more standards-compliant. X-Git-Tag: release-6-0-pre-1~125 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=6073ee934ec82bf63d2e0d42c675c12f7bdcdfbf;p=ack.git Rationalised use of #includes to be more standards-compliant. --- diff --git a/mach/6500/dl/dl.c b/mach/6500/dl/dl.c index f8581d0a5..43eb8247c 100644 --- a/mach/6500/dl/dl.c +++ b/mach/6500/dl/dl.c @@ -5,9 +5,10 @@ * */ -#include -#include -#include +#include +#include +#include +#include "out.h" #define DATTYPE 0 #define EOFTYPE 1 @@ -57,7 +58,6 @@ main(argc,argv) char **argv; { pc = sect[i].os_base; while (sect[i].os_size) { unsigned int sz = 8096, fl; - extern char *calloc(); register char *buf; char *pbuf; @@ -165,7 +165,10 @@ reply() { write(1,&c,1); } -fatal(s,a) { +fatal(s,a) + const char* s; + const char* a; +{ fprintf(stderr,"%s: ",progname); fprintf(stderr,s,a); diff --git a/modules/src/em_mes/C_ms_com.c b/modules/src/em_mes/C_ms_com.c index 4ffed9e50..b6d22106d 100644 --- a/modules/src/em_mes/C_ms_com.c +++ b/modules/src/em_mes/C_ms_com.c @@ -3,6 +3,9 @@ * (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 #include #include diff --git a/modules/src/em_mes/C_ms_src.c b/modules/src/em_mes/C_ms_src.c index 5e98a6215..583168140 100644 --- a/modules/src/em_mes/C_ms_src.c +++ b/modules/src/em_mes/C_ms_src.c @@ -3,6 +3,9 @@ * (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 #include #include diff --git a/modules/src/em_mes/C_ms_stb.c b/modules/src/em_mes/C_ms_stb.c index 114ea6e89..430dea397 100644 --- a/modules/src/em_mes/C_ms_stb.c +++ b/modules/src/em_mes/C_ms_stb.c @@ -3,6 +3,9 @@ * (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ + +#include +#include #include #include diff --git a/modules/src/em_mes/C_ms_std.c b/modules/src/em_mes/C_ms_std.c index 8c101a2f9..0399fa8ed 100644 --- a/modules/src/em_mes/C_ms_std.c +++ b/modules/src/em_mes/C_ms_std.c @@ -3,6 +3,9 @@ * (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ + +#include +#include #include #include diff --git a/modules/src/flt_arith/flt_misc.h b/modules/src/flt_arith/flt_misc.h index 077bf30f1..ec850697f 100644 --- a/modules/src/flt_arith/flt_misc.h +++ b/modules/src/flt_arith/flt_misc.h @@ -4,7 +4,7 @@ */ /* $Id$ */ -#include +#include "flt_arith.h" /* some short-hands ... */ #define m1 flt_mantissa.flt_h_32 diff --git a/util/misc/convert.c b/util/misc/convert.c index e9bc8a63a..ec38761fa 100644 --- a/util/misc/convert.c +++ b/util/misc/convert.c @@ -16,14 +16,15 @@ static char rcsid[] = "$Id$"; linked. */ -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include "system.h" +#include "em_pseu.h" +#include "em_mnem.h" +#include "em_spec.h" +#include "em_flag.h" +#include "em_ptyp.h" +#include "em.h" +#include "em_comp.h" char *filename; /* Name of input file */ int errors; /* Number of errors */