Browse Source

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

dtrg 18 years ago
parent
commit
30e34f493f
5 changed files with 10 additions and 1 deletions
  1. 4 1
      lang/occam/comp/em.c
  2. 1 0
      lang/occam/comp/occam.g
  3. 2 0
      lang/occam/comp/report.c
  4. 1 0
      modules/src/em_code/C_out.c
  5. 2 0
      util/ack/scan.c

+ 4 - 1
lang/occam/comp/em.c

@@ -3,10 +3,13 @@
  * (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 "sizes.h"
 #include "Lpars.h"
-#include <em.h>
 #include "em.h"
+#include "occam-em.h"
 
 /* This file is used to shield code.c as much as possible from em dependant
  * details.  It introduces some call overhead but not enough for a coffee

+ 1 - 0
lang/occam/comp/occam.g

@@ -5,6 +5,7 @@
  */
 /*	OCCAM		*/
 {
+#include <stdlib.h>
 #include "token.h"
 #include "symtab.h"
 #include "expr.h"

+ 2 - 0
lang/occam/comp/report.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 <system.h>
 
 extern int err, lineno;

+ 1 - 0
modules/src/em_code/C_out.c

@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include "em_arith.h"
 #include "em_label.h"
 #include "../read_em/em_comp.h"

+ 2 - 0
util/ack/scan.c

@@ -4,6 +4,8 @@
  *
  */
 
+#include <stdlib.h>
+#include <string.h>
 #include "ack.h"
 #include "list.h"
 #include "trans.h"