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