Rationalised use of #includes to be more standards-compliant.
This commit is contained in:
parent
4b79248af9
commit
6073ee934e
|
@ -5,9 +5,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <stdio.h>
|
||||||
#include <out.h>
|
#include <assert.h>
|
||||||
|
#include "out.h"
|
||||||
|
|
||||||
#define DATTYPE 0
|
#define DATTYPE 0
|
||||||
#define EOFTYPE 1
|
#define EOFTYPE 1
|
||||||
|
@ -57,7 +58,6 @@ main(argc,argv) char **argv; {
|
||||||
pc = sect[i].os_base;
|
pc = sect[i].os_base;
|
||||||
while (sect[i].os_size) {
|
while (sect[i].os_size) {
|
||||||
unsigned int sz = 8096, fl;
|
unsigned int sz = 8096, fl;
|
||||||
extern char *calloc();
|
|
||||||
register char *buf;
|
register char *buf;
|
||||||
char *pbuf;
|
char *pbuf;
|
||||||
|
|
||||||
|
@ -165,7 +165,10 @@ reply() {
|
||||||
write(1,&c,1);
|
write(1,&c,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
fatal(s,a) {
|
fatal(s,a)
|
||||||
|
const char* s;
|
||||||
|
const char* a;
|
||||||
|
{
|
||||||
|
|
||||||
fprintf(stderr,"%s: ",progname);
|
fprintf(stderr,"%s: ",progname);
|
||||||
fprintf(stderr,s,a);
|
fprintf(stderr,s,a);
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <em.h>
|
#include <em.h>
|
||||||
#include <em_mes.h>
|
#include <em_mes.h>
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <em.h>
|
#include <em.h>
|
||||||
#include <em_mes.h>
|
#include <em_mes.h>
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
* (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
* (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <em.h>
|
#include <em.h>
|
||||||
#include <em_mes.h>
|
#include <em_mes.h>
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
* (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
* (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <em.h>
|
#include <em.h>
|
||||||
#include <em_mes.h>
|
#include <em_mes.h>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
#include <flt_arith.h>
|
#include "flt_arith.h"
|
||||||
|
|
||||||
/* some short-hands ... */
|
/* some short-hands ... */
|
||||||
#define m1 flt_mantissa.flt_h_32
|
#define m1 flt_mantissa.flt_h_32
|
||||||
|
|
|
@ -16,14 +16,15 @@ static char rcsid[] = "$Id$";
|
||||||
linked.
|
linked.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <system.h>
|
#include <stdlib.h>
|
||||||
#include <em_pseu.h>
|
#include "system.h"
|
||||||
#include <em_mnem.h>
|
#include "em_pseu.h"
|
||||||
#include <em_spec.h>
|
#include "em_mnem.h"
|
||||||
#include <em_flag.h>
|
#include "em_spec.h"
|
||||||
#include <em_ptyp.h>
|
#include "em_flag.h"
|
||||||
#include <em.h>
|
#include "em_ptyp.h"
|
||||||
#include <em_comp.h>
|
#include "em.h"
|
||||||
|
#include "em_comp.h"
|
||||||
|
|
||||||
char *filename; /* Name of input file */
|
char *filename; /* Name of input file */
|
||||||
int errors; /* Number of errors */
|
int errors; /* Number of errors */
|
||||||
|
|
Loading…
Reference in a new issue