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 .DS
#include "\fIfile1\fp" #include "\fIfile1\fp"
.DE .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 .DS
\fIarg\fR: \fIfile1\fR \fIfile2\fR ... \fIarg\fR: \fIfile1\fR
\fIarg\fR: \fIfile2\fR
...
.DE .DE
where \fIfile1\fR, \fIfile2\fR, etc. are filenames included by \fIarg\fR, or where \fIfile1\fR, \fIfile2\fR, etc. are filenames included by \fIarg\fR, or
by a file included by \fIarg\fR, etc. by a file included by \fIarg\fR, etc.

View file

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