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

This commit is contained in:
dtrg 2006-07-18 17:18:42 +00:00
parent f5bbc20093
commit cd09c29949
7 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,5 @@
#!/bin/sh
sed -e ' sed -e '
s:^.*[ ]ALLOCDEF[ ].*"\(.*\)"[ ]*\([0-9][0-9]*\).*$:\ s:^.*[ ]ALLOCDEF[ ].*"\(.*\)"[ ]*\([0-9][0-9]*\).*$:\
/* allocation definitions of struct \1 */\ /* allocation definitions of struct \1 */\

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -6,6 +6,8 @@
static char rcsid[]= "$Id$"; static char rcsid[]= "$Id$";
#endif #endif
#include <stdlib.h>
#include <string.h>
#include "param.h" #include "param.h"
#include "reg.h" #include "reg.h"
#include "lookup.h" #include "lookup.h"
@ -352,7 +354,6 @@ char *mystrcpy(s) char *s; {
char *myalloc(n) register n; { char *myalloc(n) register n; {
register char *p,*result; register char *p,*result;
char *malloc();
result=p=malloc(n); result=p=malloc(n);
if (p== (char *) 0) if (p== (char *) 0)