Rationalised use of #includes to be more standards-compliant.
authordtrg <none@none>
Wed, 26 Jul 2006 18:22:02 +0000 (18:22 +0000)
committerdtrg <none@none>
Wed, 26 Jul 2006 18:22:02 +0000 (18:22 +0000)
lang/occam/comp/em.c
lang/occam/comp/occam.g
lang/occam/comp/report.c
modules/src/em_code/C_out.c
util/ack/scan.c

index 9e39ae0..ecd7798 100644 (file)
@@ -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
index cfa7216..3385cca 100644 (file)
@@ -5,6 +5,7 @@
  */
 /*     OCCAM           */
 {
+#include <stdlib.h>
 #include "token.h"
 #include "symtab.h"
 #include "expr.h"
index c2e6390..62f2b5f 100644 (file)
@@ -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;
index 1986ea4..1359340 100644 (file)
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include "em_arith.h"
 #include "em_label.h"
 #include "../read_em/em_comp.h"
index abf8313..c4388b1 100644 (file)
@@ -4,6 +4,8 @@
  *
  */
 
+#include <stdlib.h>
+#include <string.h>
 #include "ack.h"
 #include "list.h"
 #include "trans.h"