Sfoglia il codice sorgente

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

dtrg 18 anni fa
parent
commit
b29f55a533

+ 1 - 0
util/ego/bo/bo.c

@@ -9,6 +9,7 @@
  */
 
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <em_mnem.h>
 #include <em_pseu.h>

+ 2 - 0
util/ego/ca/ca.c

@@ -9,7 +9,9 @@
  */
 
 
+#include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <em_pseu.h>
 #include <em_mes.h>
 #include "../share/types.h"

+ 1 - 0
util/ego/cf/cf.c

@@ -8,6 +8,7 @@
  *  M A I N   R O U T I N E
  */
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <em_mnem.h>
 #include <em_pseu.h>

+ 1 - 0
util/ego/cj/cj.c

@@ -9,6 +9,7 @@
  *
  */
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <em_mnem.h>
 #include <em_spec.h>

+ 1 - 0
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 <stdlib.h>
 #include <stdio.h>
 #include "../share/types.h"
 #include "../share/lset.h"

+ 1 - 0
util/ego/ic/ic.c

@@ -8,6 +8,7 @@
  * I C . C
  */
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <em_spec.h>
 #include <em_pseu.h>

+ 2 - 0
util/ego/ic/ic_lookup.c

@@ -9,7 +9,9 @@
  */
 
 
+#include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <em_spec.h>
 #include "../share/types.h"
 #include "../share/debug.h"

+ 3 - 0
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 <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <em_path.h>
 #include <em_mnem.h>
 #include <em_pseu.h>

+ 2 - 0
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 <stdlib.h>
 #include <stdio.h>
 
 /*  MAKE ITEMS TABLE

+ 1 - 0
util/ego/ra/ra.c

@@ -8,6 +8,7 @@
  *
  */
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <em_reg.h>
 #include "../share/types.h"

+ 1 - 1
util/ego/share/alloc.c

@@ -10,6 +10,7 @@
 
 
 
+#include <stdlib.h>
 #include <stdio.h>
 #include "types.h"
 #include "debug.h"
@@ -17,7 +18,6 @@
 
 
 char * myalloc();
-char * calloc();
 
 #ifdef DEBUG
 

+ 1 - 0
util/ego/share/debug.c

@@ -9,6 +9,7 @@
  */
 
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <em_spec.h>
 #include "types.h"

+ 2 - 0
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 <stdlib.h>
 #include <stdio.h>
 
 /*  MAKECLASSDEF

+ 1 - 0
util/ego/sp/sp.c

@@ -9,6 +9,7 @@
  */
 
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <em_mnem.h>
 #include <em_spec.h>

+ 1 - 0
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 <stdlib.h>
 #include <stdio.h>
 #include "../share/types.h"
 #include "sr.h"

+ 1 - 0
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 <stdlib.h>
 #include <stdio.h>
 #include <em_spec.h>
 #include "../share/types.h"