changed so that it prints a separate line for each dependancy

This commit is contained in:
ceriel 1987-02-09 15:06:09 +00:00
parent 375e023d8b
commit fa59fc325e
2 changed files with 5 additions and 5 deletions

View file

@ -10,9 +10,11 @@ scans the files in the argument list for C-preprocessor lines of the form
.DS
#include "\fIfile1\fp"
.DE
and produces for each file \fIarg\fR in the argument list a line of the form
and produces for each file \fIarg\fR in the argument list lines of the form
.DS
\fIarg\fR: \fIfile1\fR \fIfile2\fR ...
\fIarg\fR: \fIfile1\fR
\fIarg\fR: \fIfile2\fR
...
.DE
where \fIfile1\fR, \fIfile2\fR, etc. are filenames included by \fIarg\fR, or
by a file included by \fIarg\fR, etc.

View file

@ -84,12 +84,10 @@ print_namelist(nm, nlp)
struct namelist *nlp;
{
if (nlp) {
printf("%s:", nm);
while (nlp) {
printf(" %s", nlp->name);
printf("%s: %s\n", nm, nlp->name);
nlp = nlp->next;
}
printf("\n");
}
}