Skip to content

Commit cd09c29

Browse files
author
dtrg
committed
Rationalised use of #includes to be more standards-compliant.
1 parent f5bbc20 commit cd09c29

File tree

7 files changed

+12
-1
lines changed

7 files changed

+12
-1
lines changed

util/grind/make.allocd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/bin/sh
2+
13
sed -e '
24
s:^.*[ ]ALLOCDEF[ ].*"\(.*\)"[ ]*\([0-9][0-9]*\).*$:\
35
/* allocation definitions of struct \1 */\

util/ncgg/emlookup.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
static char rcsid[]= "$Id$";
77
#endif
88

9+
#include <stdlib.h>
10+
#include <string.h>
911
#include "param.h"
1012
#include "expr.h"
1113
#include <em_spec.h>

util/ncgg/error.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
static char rcsid[]= "$Id$";
77
#endif
88

9+
#include <stdlib.h>
910
#include <stdio.h>
1011

1112
int nerrors=0;

util/ncgg/expr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
static char rcsid[]= "$Id$";
77
#endif
88

9+
#include <stdlib.h>
10+
#include <stdio.h>
911
#include "assert.h"
1012
#include "param.h"
1113
#include "set.h"

util/ncgg/iocc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
static char rcsid[]= "$Id$";
77
#endif
88

9+
#include <stdlib.h>
10+
#include <stdio.h>
911
#include "assert.h"
1012
#include "param.h"
1113
#include "set.h"

util/ncgg/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
static char rcsid[]= "$Id$";
77
#endif
88

9+
#include <stdlib.h>
910
#include <stdio.h>
1011

1112
char *filename;

util/ncgg/subr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
static char rcsid[]= "$Id$";
77
#endif
88

9+
#include <stdlib.h>
10+
#include <string.h>
911
#include "param.h"
1012
#include "reg.h"
1113
#include "lookup.h"
@@ -352,7 +354,6 @@ char *mystrcpy(s) char *s; {
352354

353355
char *myalloc(n) register n; {
354356
register char *p,*result;
355-
char *malloc();
356357

357358
result=p=malloc(n);
358359
if (p== (char *) 0)

0 commit comments

Comments
 (0)