Modernised usage of system header files.
This commit is contained in:
parent
4fdd9b83fc
commit
4c0b3bb40f
|
@ -4,6 +4,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "ack.h"
|
||||
#include "list.h"
|
||||
#include "trans.h"
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#ifndef NORCSID
|
||||
|
@ -18,7 +20,7 @@ char *tail ;
|
|||
FILE *intab ;
|
||||
FILE *dmach ;
|
||||
|
||||
int index ;
|
||||
int offset ;
|
||||
|
||||
main(argc,argv) char **argv ; {
|
||||
register i ;
|
||||
|
@ -38,7 +40,7 @@ start(dir) char *dir ; {
|
|||
*tail++ = *dir ++ ;
|
||||
}
|
||||
if ( tail!=dname ) *tail++= '/' ;
|
||||
index=0 ;
|
||||
offset=0 ;
|
||||
intab= fopen("intable.c","w");
|
||||
dmach= fopen("dmach.c","w");
|
||||
if ( intab==NULL || dmach==NULL ) {
|
||||
|
@ -79,11 +81,11 @@ readm() {
|
|||
return ;
|
||||
}
|
||||
i=0 ;
|
||||
fprintf(dmach,"\t{\"%s\",\t%d\t},\n",fname,index) ;
|
||||
fprintf(dmach,"\t{\"%s\",\t%d\t},\n",fname,offset) ;
|
||||
fprintf(intab,"\n/* %s */\n\t",fname) ;
|
||||
for (;;) {
|
||||
token=getc(in) ;
|
||||
index++ ;
|
||||
offset++ ;
|
||||
if ( ++i == 10 ) {
|
||||
fprintf(intab,"\n\t") ;
|
||||
i=0 ;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "ack.h"
|
||||
#include "list.h"
|
||||
#include "trans.h"
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "ack.h"
|
||||
#include "list.h"
|
||||
#include "trans.h"
|
||||
|
|
|
@ -11,9 +11,11 @@
|
|||
/* */
|
||||
/**********************************************************************/
|
||||
|
||||
#include "ack.h"
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include "ack.h"
|
||||
|
||||
#ifndef NORCSID
|
||||
static char rcs_id[] = "$Id$" ;
|
||||
|
@ -23,9 +25,6 @@ extern char *progname ;
|
|||
extern int w_flag ;
|
||||
extern int n_error;
|
||||
|
||||
extern char *calloc();
|
||||
extern char *realloc();
|
||||
|
||||
#ifdef DEBUG
|
||||
# define STDOUT stdout
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue