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

This commit is contained in:
dtrg
2006-07-18 17:10:29 +00:00
parent 8ea67498ed
commit 4c0a0e6119
48 changed files with 80 additions and 66 deletions

View File

@@ -78,11 +78,15 @@ separate linker only possible if relocation info produced
/* ========== Machine independent type declarations ========== */
#ifdef _include
_include <stdlib.h>
_include <stdio.h>
_include <string.h>
_include <ctype.h>
_include <signal.h>
#else
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#endif

View File

@@ -116,14 +116,6 @@ extern valu_t load();
extern FILE *ffcreat();
extern FILE *fftemp();
/* some library functions used */
extern char *mktemp();
extern char *malloc();
extern char *realloc();
extern char *calloc();
extern char *getenv();
extern char *strncpy();
/* ========== Machine dependent C declarations ========== */
#include "mach1.c"

View File

@@ -20,7 +20,7 @@ extern YYSTYPE yylval;
/* ========== Machine independent C routines ========== */
stop() {
void stop() {
#if DEBUG < 2
unlink(temppath);
#ifdef LISTING

View File

@@ -2,6 +2,9 @@
static char rcsid[] = "$Id$";
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "assert.h"
#include "param.h"
#include "tables.h"

View File

@@ -2,6 +2,8 @@
static char rcsid[] = "$Id$";
#endif
#include <stdlib.h>
#include <string.h>
#include "param.h"
#include "tables.h"
#include "types.h"

View File

@@ -2,6 +2,7 @@
static char rcsid[] = "$Id$";
#endif
#include <stdlib.h>
#include "assert.h"
#include "param.h"
#include "tables.h"
@@ -29,7 +30,6 @@ static char rcsid[] = "$Id$";
char *stab[MAXSTAB];
int nstab=0;
string malloc();
string myalloc(size) {
register string p;

View File

@@ -2,6 +2,7 @@
static char rcsid[] = "$Id$";
#endif
#include <stdlib.h>
#include "assert.h"
#include <stdio.h>
#include "param.h"

View File

@@ -2,6 +2,9 @@
static char rcsid[] = "$Id$";
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "assert.h"
#include "param.h"
#include "tables.h"

View File

@@ -2,6 +2,8 @@
static char rcsid[] = "$Id$";
#endif
#include <stdlib.h>
#include <string.h>
#include "param.h"
#include "tables.h"
#include "types.h"
@@ -15,7 +17,6 @@ static char rcsid[] = "$Id$";
*/
extern string myalloc();
extern char *strcpy();
glosym_p glolist= (glosym_p) 0;

View File

@@ -2,6 +2,7 @@
static char rcsid[] = "$Id$";
#endif
#include <stdlib.h>
#include "assert.h"
#include "param.h"
#include "tables.h"
@@ -29,7 +30,6 @@ static char rcsid[] = "$Id$";
char *stab[MAXSTAB];
int nstab=0;
string malloc();
string myalloc(size) {
register string p;

View File

@@ -2,8 +2,9 @@
static char rcsid[] = "$Id$";
#endif
#include "assert.h"
#include <stdlib.h>
#include <stdio.h>
#include "assert.h"
#include "param.h"
#include "tables.h"
#include "types.h"