source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: s/[Nn]ull/NUL/ in comments where appropriate; suggested by
@ 2013-12-25  0:50 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-12-25  0:50 UTC (permalink / raw)
  To: source

Log Message:
-----------
s/[Nn]ull/NUL/ in comments where appropriate;
suggested by Thomas Klausner <wiz @ NetBSD dot org>.

Modified Files:
--------------
    mdocml:
        mandoc.c
        man_macro.c
        mdoc_argv.c
        roff.c

Revision Data
-------------
Index: mandoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -Lmandoc.c -Lmandoc.c -u -p -r1.70 -r1.71
--- mandoc.c
+++ mandoc.c
@@ -419,10 +419,10 @@ mandoc_strdup(const char *ptr)
  * Parse a quoted or unquoted roff-style request or macro argument.
  * Return a pointer to the parsed argument, which is either the original
  * pointer or advanced by one byte in case the argument is quoted.
- * Null-terminate the argument in place.
+ * NUL-terminate the argument in place.
  * Collapse pairs of quotes inside quoted arguments.
  * Advance the argument pointer to the next argument,
- * or to the null byte terminating the argument line.
+ * or to the NUL byte terminating the argument line.
  */
 char *
 mandoc_getarg(struct mparse *parse, char **cpp, int ln, int *pos)
@@ -493,7 +493,7 @@ mandoc_getarg(struct mparse *parse, char
 	if (1 == quoted)
 		mandoc_msg(MANDOCERR_BADQUOTE, parse, ln, *pos, NULL);
 
-	/* Null-terminate this argument and move to the next one. */
+	/* NUL-terminate this argument and move to the next one. */
 	if (pairs)
 		cp[-pairs] = '\0';
 	if ('\0' != *cp) {
Index: roff.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.c,v
retrieving revision 1.187
retrieving revision 1.188
diff -Lroff.c -Lroff.c -u -p -r1.187 -r1.188
--- roff.c
+++ roff.c
@@ -1733,7 +1733,7 @@ roff_userdef(ROFF_ARGS)
 
 	/*
 	 * Collect pointers to macro argument strings
-	 * and null-terminate them.
+	 * and NUL-terminate them.
 	 */
 	cp = *bufp + pos;
 	for (i = 0; i < 9; i++)
Index: mdoc_argv.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_argv.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -Lmdoc_argv.c -Lmdoc_argv.c -u -p -r1.88 -r1.89
--- mdoc_argv.c
+++ mdoc_argv.c
@@ -536,12 +536,12 @@ args(struct mdoc *mdoc, int line, int *p
 			/* Skip ahead. */ ;
 
 		return(rc);
-	} 
+	}
 
-	/* 
+	/*
 	 * Process a quoted literal.  A quote begins with a double-quote
 	 * and ends with a double-quote NOT preceded by a double-quote.
-	 * Null-terminate the literal in place.
+	 * NUL-terminate the literal in place.
 	 * Collapse pairs of quotes inside quoted literals.
 	 * Whitespace is NOT involved in literal termination.
 	 */
Index: man_macro.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_macro.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -Lman_macro.c -Lman_macro.c -u -p -r1.78 -r1.79
--- man_macro.c
+++ man_macro.c
@@ -2,6 +2,7 @@
 /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2013 Franco Fichtner <franco@lastsummer.de>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-25  0:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-25  0:50 mdocml: s/[Nn]ull/NUL/ in comments where appropriate; suggested by 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).