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

This commit is contained in:
dtrg 2006-07-30 23:40:35 +00:00
parent d3b557e0db
commit 45b4fef7d6
10 changed files with 54 additions and 28 deletions

View file

@ -5,9 +5,11 @@
/* $Id$ */ /* $Id$ */
/* PREPROCESSOR: INITIALIZATION ROUTINES */ /* PREPROCESSOR: INITIALIZATION ROUTINES */
#include <system.h> #include <stdlib.h>
#include <alloc.h> #include <string.h>
#include <time.h> #include "system.h"
#include "alloc.h"
#include "time.h"
#include "class.h" #include "class.h"
#include "macro.h" #include "macro.h"
#include "idf.h" #include "idf.h"

View file

@ -5,7 +5,9 @@
/* $Id$ */ /* $Id$ */
/* USER-OPTION HANDLING */ /* USER-OPTION HANDLING */
#include <alloc.h> #include <stdlib.h>
#include <string.h>
#include "alloc.h"
#include "idfsize.h" #include "idfsize.h"
#include "class.h" #include "class.h"
#include "macro.h" #include "macro.h"

View file

@ -5,12 +5,16 @@
/* $Id$ */ /* $Id$ */
/* M A C R O R E P L A C E M E N T */ /* M A C R O R E P L A C E M E N T */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "pathlength.h" #include "pathlength.h"
#include "strsize.h" #include "strsize.h"
#include "nparams.h" #include "nparams.h"
#include "idfsize.h" #include "idfsize.h"
#include "numsize.h" #include "numsize.h"
#include <alloc.h> #include "alloc.h"
#include "idf.h" #include "idf.h"
#include "input.h" #include "input.h"
#include "macro.h" #include "macro.h"
@ -18,7 +22,7 @@
#include "LLlex.h" #include "LLlex.h"
#include "class.h" #include "class.h"
#include "debug.h" #include "debug.h"
#include <assert.h> #include "assert.h"
#include "macbuf.h" #include "macbuf.h"
#include "replace.h" #include "replace.h"

View file

@ -9,15 +9,19 @@
/* $Id$ */ /* $Id$ */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "debug.h" #include "debug.h"
#include "idfsize.h" #include "idfsize.h"
#include "numsize.h" #include "numsize.h"
#include "strsize.h" #include "strsize.h"
#include <alloc.h> #include "alloc.h"
#include <em_arith.h> #include "em_arith.h"
#include <em_label.h> #include "em_label.h"
#include <assert.h> #include "assert.h"
#include "LLlex.h" #include "LLlex.h"
#include "input.h" #include "input.h"

View file

@ -9,13 +9,17 @@
/* $Id$ */ /* $Id$ */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "debug.h" #include "debug.h"
#include <alloc.h> #include "alloc.h"
#include <em_arith.h> #include "em_arith.h"
#include <em_label.h> #include "em_label.h"
#include <em_code.h> #include "em_code.h"
#include <assert.h> #include "assert.h"
#include "dbsymtab.h" #include "dbsymtab.h"
#include "idf.h" #include "idf.h"

View file

@ -9,9 +9,13 @@
/* $Id$ */ /* $Id$ */
#include <alloc.h> #include <stdlib.h>
#include <em_arith.h> #include <stdio.h>
#include <em_label.h> #include <string.h>
#include "alloc.h"
#include "em_arith.h"
#include "em_label.h"
#include "f_info.h" #include "f_info.h"
#include "misc.h" #include "misc.h"

View file

@ -11,8 +11,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <alloc.h> #include <string.h>
#include <em_arith.h> #include "alloc.h"
#include "em_arith.h"
#include "insert.h" #include "insert.h"
#include "em_private.h" #include "em_private.h"

View file

@ -6,7 +6,9 @@
static char rcsid[] = "$Id$"; static char rcsid[] = "$Id$";
#endif #endif
#include <out.h> #include <stdlib.h>
#include <stdio.h>
#include "out.h"
#include "const.h" #include "const.h"
#include "debug.h" #include "debug.h"
#include "defs.h" #include "defs.h"

View file

@ -10,8 +10,11 @@ static char rcsid[] = "$Id$";
* If everything is kept in core, we must save some things for the second pass. * If everything is kept in core, we must save some things for the second pass.
*/ */
#include <arch.h> #include <stdlib.h>
#include <out.h> #include <stdio.h>
#include <string.h>
#include "arch.h"
#include "out.h"
#include "const.h" #include "const.h"
#include "assert.h" #include "assert.h"
#include "memory.h" #include "memory.h"
@ -61,10 +64,8 @@ savechar(piece, off)
{ {
register long len; register long len;
register ind_t newoff; register ind_t newoff;
extern int strlen();
extern ind_t alloc(); extern ind_t alloc();
extern ind_t hard_alloc(); extern ind_t hard_alloc();
extern char *strcpy();
if (off == (ind_t)0) if (off == (ind_t)0)
return 0; return 0;

View file

@ -6,13 +6,15 @@
static char rcsid[] = "$Id$"; static char rcsid[] = "$Id$";
#endif #endif
#include <stdlib.h>
#include <stdio.h>
#ifdef SYMDBUG #ifdef SYMDBUG
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#endif /* SYMDBUG */ #endif /* SYMDBUG */
#include <arch.h> #include "arch.h"
#include <out.h> #include "out.h"
#include <ranlib.h> #include "ranlib.h"
#include "const.h" #include "const.h"
#include "assert.h" #include "assert.h"
#include "memory.h" #include "memory.h"