Output .lf directives.
This commit is contained in:
parent
7b290dd008
commit
961a3727e7
@ -95,6 +95,7 @@ process(const char *file)
|
||||
char fname[BUFSIZ];
|
||||
FILE *soee;
|
||||
int isfile;
|
||||
int line = 1;
|
||||
|
||||
if (!strcmp(file, STDIN_NAME)) {
|
||||
soee = stdin;
|
||||
@ -105,7 +106,9 @@ process(const char *file)
|
||||
return(-1);
|
||||
}
|
||||
}
|
||||
printf (".lf %d %s\n", line, file);
|
||||
for (;;) {
|
||||
line++;
|
||||
c = getc(soee);
|
||||
if (c == EOF)
|
||||
break;
|
||||
@ -151,6 +154,7 @@ process(const char *file)
|
||||
if (process(fname) < 0)
|
||||
if (isfile)
|
||||
printf(".so %s\n", fname);
|
||||
printf (".lf %d %s\n", line, file);
|
||||
continue;
|
||||
simple:
|
||||
if (c == EOF)
|
||||
|
Loading…
Reference in New Issue
Block a user