* docbook2mdoc: for the null character '\0', use the standard shorthand
@ 2019-03-08 15:19 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-03-08 15:19 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-03-08 15:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 15:19 docbook2mdoc: for the null character '\0', use the standard shorthand 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).