From 62ca21c8c1a5aa3488589dcb191a4ef04ae9ed4f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 25 Jan 2012 23:46:16 -0800 Subject: maint: quote 'like this' or "like this", not `like this' This is in response to a recent change in the GNU coding standards, which now suggest quoting 'like this' or "like this", instead of `like this' or ``like this''. * HACKING, NEWS, README, README-hacking, TODO, doc/diagmeet.note: * doc/diffutils.texi, ms/config.bat, ms/config.site: * src/analyze.c, src/cmp.c, src/context.c, src/diff.c: * src/diff.h, src/diff3.c, src/dir.c, src/ifdef.c, src/io.c: * src/sdiff.c, src/side.c, src/system.h, src/util.c: * tests/help-version: Quote 'like this' or "like this" in commentary. * cfg.mk (old_NEWS_hash): Adjust to reflect new NEWS quoting. * man/help2man: Update to 1.40.4 version, with quoting fixed as above. * po/en.po: Remove translation involving `, as it's no longer needed. * src/cmp.c (try_help, specify_ignore_initial, usage, main): * src/diff.c (main, try_help, option_help_msgid, specify_value) (compare_files): * src/diff3.c (main, try_help, option_help_msgid, usage) (read_diff): * src/dir.c (compare_names): * src/sdiff.c (try_help, usage, check_child_status, main): * src/util.c (finish_output): * tests/help-version: Quote 'like this' in output. --- src/util.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index 16638a3..2b0bbbf 100644 --- a/src/util.c +++ b/src/util.c @@ -27,7 +27,7 @@ char const pr_program[] = PR_PROGRAM; /* Queue up one-line messages to be printed at the end, - when -l is specified. Each message is recorded with a `struct msg'. */ + when -l is specified. Each message is recorded with a 'struct msg'. */ struct msg { @@ -121,7 +121,7 @@ message5 (char const *format_msgid, char const *arg1, char const *arg2, } } -/* Output all the messages that were saved up by calls to `message'. */ +/* Output all the messages that were saved up by calls to 'message'. */ void print_message_queue (void) @@ -146,8 +146,8 @@ print_message_queue (void) to set up OUTFILE, the stdio stream for the output to go to. Usually, OUTFILE is just stdout. But when -l was specified - we fork off a `pr' and make OUTFILE a pipe to it. - `pr' then outputs to our stdout. */ + we fork off a 'pr' and make OUTFILE a pipe to it. + 'pr' then outputs to our stdout. */ static char const *current_name0; static char const *current_name1; @@ -190,7 +190,7 @@ begin_output (void) if (fflush (stdout) != 0) pfatal_with_name (_("write failed")); - /* Make OUTFILE a pipe to a subsidiary `pr'. */ + /* Make OUTFILE a pipe to a subsidiary 'pr'. */ { #if HAVE_WORKING_FORK int pipes[2]; @@ -241,7 +241,7 @@ begin_output (void) else { - /* If -l was not specified, output the diff straight to `stdout'. */ + /* If -l was not specified, output the diff straight to 'stdout'. */ outfile = stdout; @@ -270,7 +270,7 @@ begin_output (void) } /* Call after the end of output of diffs for one file. - Close OUTFILE and get rid of the `pr' subfork. */ + Close OUTFILE and get rid of the 'pr' subfork. */ void finish_output (void) @@ -298,12 +298,12 @@ finish_output (void) if (status) error (EXIT_TROUBLE, werrno, _(status == 126 - ? "subsidiary program `%s' could not be invoked" + ? "subsidiary program '%s' could not be invoked" : status == 127 - ? "subsidiary program `%s' not found" + ? "subsidiary program '%s' not found" : status == INT_MAX - ? "subsidiary program `%s' failed" - : "subsidiary program `%s' failed (exit status %d)"), + ? "subsidiary program '%s' failed" + : "subsidiary program '%s' failed (exit status %d)"), pr_program, status); } @@ -677,7 +677,7 @@ print_number_range (char sepchar, struct file_data *file, lin a, lin b) /* Look at a hunk of edit script and report the range of lines in each file that it applies to. HUNK is the start of the hunk, which is a chain - of `struct change'. The first and last line numbers of file 0 are stored in + of 'struct change'. The first and last line numbers of file 0 are stored in *FIRST0 and *LAST0, and likewise for file 1 in *FIRST1 and *LAST1. Note that these are internal line numbers that count from 0. -- cgit v1.2.1