source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: docbook2mdoc: for the null character '\0', use the standard shorthand
Date: Fri, 8 Mar 2019 10:19:21 -0500 (EST)	[thread overview]
Message-ID: <e3f18983ec3adb87@fantadrom.bsd.lv> (raw)

Log Message:
-----------
for the null character '\0', use the standard shorthand NUL, not "nil"

Modified Files:
--------------
    docbook2mdoc:
        docbook2mdoc.c

Revision Data
-------------
Index: docbook2mdoc.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/docbook2mdoc.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -Ldocbook2mdoc.c -Ldocbook2mdoc.c -u -p -r1.46 -r1.47
--- docbook2mdoc.c
+++ docbook2mdoc.c
@@ -41,7 +41,7 @@ struct	parse {
 	unsigned int	 flags; /* document-wide flags */
 	struct pnode	*root; /* root of parse tree */
 	struct pnode	*cur; /* current node in tree */
-	char		*b; /* nil-terminated buffer for pre-print */
+	char		*b; /* NUL-terminated buffer for pre-print */
 	size_t		 bsz; /* current length of b */
 	size_t		 mbsz; /* max bsz allocation */
 	int		 newln; /* output: are we on a fresh line */
@@ -505,7 +505,7 @@ bufclear(struct parse *p)
 /*
  * Append NODE_TEXT contents to the current buffer, reallocating its
  * size if necessary.
- * The buffer is ALWAYS nil-terminated.
+ * The buffer is ALWAYS NUL-terminated.
  */
 static void
 bufappend(struct parse *p, struct pnode *pn)
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

                 reply	other threads:[~2019-03-08 15:19 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=e3f18983ec3adb87@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).