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
+2
View File
@@ -1,3 +1,5 @@
#!/bin/sh
sed -e '
s:^.*[ ]ALLOCDEF[ ].*"\(.*\)"[ ]*\([0-9][0-9]*\).*$:\
/* allocation definitions of struct \1 */\
+2
View File
@@ -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>
+1
View File
@@ -6,6 +6,7 @@
static char rcsid[]= "$Id$";
#endif
#include <stdlib.h>
#include <stdio.h>
int nerrors=0;
+2
View File
@@ -6,6 +6,8 @@
static char rcsid[]= "$Id$";
#endif
#include <stdlib.h>
#include <stdio.h>
#include "assert.h"
#include "param.h"
#include "set.h"
+2
View File
@@ -6,6 +6,8 @@
static char rcsid[]= "$Id$";
#endif
#include <stdlib.h>
#include <stdio.h>
#include "assert.h"
#include "param.h"
#include "set.h"
+1
View File
@@ -6,6 +6,7 @@
static char rcsid[]= "$Id$";
#endif
#include <stdlib.h>
#include <stdio.h>
char *filename;
+2 -1
View File
@@ -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)