Sanitised the use of #include files to more properly conform to the standards.
This commit is contained in:
parent
dbe10d2c19
commit
12683dd8c6
|
@ -10,13 +10,14 @@
|
||||||
** anm [-gopruns] [name ...]
|
** anm [-gopruns] [name ...]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "out.h"
|
#include "out.h"
|
||||||
#include "arch.h"
|
#include "arch.h"
|
||||||
#include "ranlib.h"
|
#include "ranlib.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
|
|
||||||
int numsort_flg;
|
int numsort_flg;
|
||||||
int sectsort_flg;
|
int sectsort_flg;
|
||||||
int undef_flg;
|
int undef_flg;
|
||||||
|
@ -29,8 +30,6 @@ int read_error;
|
||||||
struct outhead hbuf;
|
struct outhead hbuf;
|
||||||
struct outsect sbuf;
|
struct outsect sbuf;
|
||||||
long off;
|
long off;
|
||||||
char *malloc();
|
|
||||||
char *realloc();
|
|
||||||
long s_base[S_MAX]; /* for specially encoded bases */
|
long s_base[S_MAX]; /* for specially encoded bases */
|
||||||
char *filename;
|
char *filename;
|
||||||
int narg;
|
int narg;
|
||||||
|
|
|
@ -3,6 +3,7 @@ static char rcsid[] = "$Id$";
|
||||||
* show - make the contents of an ACK object file human readable.
|
* show - make the contents of an ACK object file human readable.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -204,7 +205,6 @@ myalloc(u)
|
||||||
unsigned int u;
|
unsigned int u;
|
||||||
{
|
{
|
||||||
register char *rcp;
|
register char *rcp;
|
||||||
extern char *malloc();
|
|
||||||
|
|
||||||
rcp = malloc(u);
|
rcp = malloc(u);
|
||||||
if (rcp == (char *) 0) {
|
if (rcp == (char *) 0) {
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
*/
|
*/
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "out.h"
|
#include "out.h"
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,10 @@
|
||||||
*/
|
*/
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
#include "out.h"
|
#include <stdlib.h>
|
||||||
#include <signal.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <signal.h>
|
||||||
|
#include "out.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue