From: ceriel Date: Mon, 9 Feb 1987 15:06:09 +0000 (+0000) Subject: changed so that it prints a separate line for each dependancy X-Git-Tag: release-5-5~4710 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=fa59fc325e40e21cfdebe55e1f680a2275cd378f;p=ack.git changed so that it prints a separate line for each dependancy --- diff --git a/util/cmisc/mkdep.1 b/util/cmisc/mkdep.1 index 7c42ecd54..97f389fd9 100644 --- a/util/cmisc/mkdep.1 +++ b/util/cmisc/mkdep.1 @@ -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. diff --git a/util/cmisc/mkdep.c b/util/cmisc/mkdep.c index d17b0b98a..b4a0dfbc6 100644 --- a/util/cmisc/mkdep.c +++ b/util/cmisc/mkdep.c @@ -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"); } }