source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: docbook2mdoc: Last instance of conistent "struct pnode *nc, *nn"
Date: Wed, 10 Apr 2019 09:38:02 -0500 (EST)	[thread overview]
Message-ID: <e3fd96c3baf07181@fantadrom.bsd.lv> (raw)

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

                 reply	other threads:[~2019-04-10 14:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e3fd96c3baf07181@fantadrom.bsd.lv \
    --to=schwarze@mandoc.bsd.lv \
    --cc=source@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).