Output .lf directives.

This commit is contained in:
Greg Lehey 2002-10-30 03:24:16 +00:00
parent 7b290dd008
commit 961a3727e7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106183

View File

@ -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)