* docbook2mdoc: Last instance of conistent "struct pnode *nc, *nn"
@ 2019-04-10 14:38 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-04-10 14:38 UTC (permalink / raw)
To: source
Log Message:
-----------
Last instance of conistent "struct pnode *nc, *nn" variable naming.
While the previous commit caused no binary change, this one does,
but only because one variable serving two different purposes
is split into two. Still no functional change.
Modified Files:
--------------
docbook2mdoc:
docbook2mdoc.c
Revision Data
-------------
Index: docbook2mdoc.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/docbook2mdoc.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -Ldocbook2mdoc.c -Ldocbook2mdoc.c -u -p -r1.101 -r1.102
--- docbook2mdoc.c
+++ docbook2mdoc.c
@@ -752,7 +752,7 @@ pnode_printvariablelist(struct format *f
static void
pnode_print(struct format *f, struct pnode *n)
{
- struct pnode *pp;
+ struct pnode *nc, *nn;
enum linestate sv;
if (n == NULL)
@@ -957,8 +957,8 @@ pnode_print(struct format *f, struct pno
break;
}
- TAILQ_FOREACH(pp, &n->childq, child)
- pnode_print(f, pp);
+ TAILQ_FOREACH(nc, &n->childq, child)
+ pnode_print(f, nc);
switch (n->node) {
case NODE_INFORMALEQUATION:
@@ -969,16 +969,16 @@ pnode_print(struct format *f, struct pno
f->linestate = sv;
break;
case NODE_MEMBER:
- if ((pp = TAILQ_NEXT(n, child)) != NULL &&
- pp->node != NODE_MEMBER)
- pp = NULL;
+ if ((nn = TAILQ_NEXT(n, child)) != NULL &&
+ nn->node != NODE_MEMBER)
+ nn = NULL;
switch (f->linestate) {
case LINE_TEXT:
- if (pp != NULL)
+ if (nn != NULL)
print_text(f, ",", 0);
break;
case LINE_MACRO:
- if (pp != NULL)
+ if (nn != NULL)
macro_addarg(f, ",", ARG_SPACE);
macro_close(f);
break;
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-10 14:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-10 14:38 docbook2mdoc: Last instance of conistent "struct pnode *nc, *nn" schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).