diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-01-25 23:46:16 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-01-25 23:54:38 -0800 |
commit | 62ca21c8c1a5aa3488589dcb191a4ef04ae9ed4f (patch) | |
tree | d8a75ee3104337c61290fbf4449a838e0bc0bd22 /src/util.c | |
parent | 70eafb8038cb866ca62ef96ff4dda217d408ce7e (diff) | |
download | diffutils-62ca21c8c1a5aa3488589dcb191a4ef04ae9ed4f.tar.gz |
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.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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. |