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

This commit is contained in:
dtrg 2006-07-26 18:22:02 +00:00
parent 4fd0f0dba4
commit 30e34f493f
5 changed files with 10 additions and 1 deletions

View file

@ -3,10 +3,13 @@
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright". * See the copyright notice in the ACK home directory, in the file "Copyright".
*/ */
#include <stdlib.h>
#include <string.h>
#include "sizes.h" #include "sizes.h"
#include "Lpars.h" #include "Lpars.h"
#include <em.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 /* 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 * details. It introduces some call overhead but not enough for a coffee

View file

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

View file

@ -3,6 +3,8 @@
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright". * See the copyright notice in the ACK home directory, in the file "Copyright".
*/ */
#include <stdlib.h>
#include <system.h> #include <system.h>
extern int err, lineno; extern int err, lineno;

View file

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

View file

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