Rationalised use of #includes to be more standards-compliant.
This commit is contained in:
parent
f5bbc20093
commit
cd09c29949
|
@ -1,3 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
sed -e '
|
||||
s:^.*[ ]ALLOCDEF[ ].*"\(.*\)"[ ]*\([0-9][0-9]*\).*$:\
|
||||
/* allocation definitions of struct \1 */\
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
static char rcsid[]= "$Id$";
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "param.h"
|
||||
#include "expr.h"
|
||||
#include <em_spec.h>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
static char rcsid[]= "$Id$";
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int nerrors=0;
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
static char rcsid[]= "$Id$";
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "assert.h"
|
||||
#include "param.h"
|
||||
#include "set.h"
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
static char rcsid[]= "$Id$";
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "assert.h"
|
||||
#include "param.h"
|
||||
#include "set.h"
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
static char rcsid[]= "$Id$";
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
char *filename;
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
static char rcsid[]= "$Id$";
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "param.h"
|
||||
#include "reg.h"
|
||||
#include "lookup.h"
|
||||
|
@ -352,7 +354,6 @@ char *mystrcpy(s) char *s; {
|
|||
|
||||
char *myalloc(n) register n; {
|
||||
register char *p,*result;
|
||||
char *malloc();
|
||||
|
||||
result=p=malloc(n);
|
||||
if (p== (char *) 0)
|
||||
|
|
Loading…
Reference in a new issue