Bläddra i källkod

Rationalised use of #includes to be more standards-compliant.

dtrg 18 år sedan
förälder
incheckning
01314faaac

+ 8 - 5
mach/6500/dl/dl.c

@@ -5,9 +5,10 @@
  *
  */
 
-#include	<stdio.h>
-#include	<assert.h>
-#include	<out.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <assert.h>
+#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);

+ 3 - 0
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 <stdlib.h>
+#include <string.h>
 #include <em.h>
 #include <em_mes.h>
 

+ 3 - 0
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 <stdlib.h>
+#include <string.h>
 #include <em.h>
 #include <em_mes.h>
 

+ 3 - 0
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 <stdlib.h>
+#include <string.h>
 #include <em.h>
 #include <em_mes.h>
 

+ 3 - 0
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 <stdlib.h>
+#include <string.h>
 #include <em.h>
 #include <em_mes.h>
 

+ 1 - 1
modules/src/flt_arith/flt_misc.h

@@ -4,7 +4,7 @@
  */
 /* $Id$ */
 
-#include <flt_arith.h>
+#include "flt_arith.h"
 
 /* some short-hands ... */
 #define m1 flt_mantissa.flt_h_32

+ 9 - 8
util/misc/convert.c

@@ -16,14 +16,15 @@ static char rcsid[] = "$Id$";
 	linked.
 */
 
-#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>
+#include <stdlib.h>
+#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 */