From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id rBP0o564017559 for ; Tue, 24 Dec 2013 19:50:05 -0500 (EST) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id rBP0o5gf021172; Tue, 24 Dec 2013 19:50:05 -0500 (EST) Date: Tue, 24 Dec 2013 19:50:05 -0500 (EST) Message-Id: <201312250050.rBP0o5gf021172@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: s/[Nn]ull/NUL/ in comments where appropriate; suggested by X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- s/[Nn]ull/NUL/ in comments where appropriate; suggested by Thomas Klausner . 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 * Copyright (c) 2012, 2013 Ingo Schwarze + * Copyright (c) 2013 Franco Fichtner * * 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