From 23c2b99e9d23e726ede9442728272616e66d416f Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 4 Mar 2012 00:24:20 +0000 Subject: Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines. Fixes Savannah bug #34530. --- getopt.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'getopt.c') diff --git a/getopt.c b/getopt.c index 0345039..1eb49b8 100644 --- a/getopt.c +++ b/getopt.c @@ -83,7 +83,7 @@ this program. If not, see . */ #define _(msgid) gettext (msgid) -/* This version of `getopt' appears to the caller like standard Unix `getopt' +/* This version of `getopt' appears to the caller like standard Unix 'getopt' but it behaves differently for the user, since it allows the user to intersperse the options with the other arguments. @@ -658,7 +658,7 @@ _getopt_internal (int argc, char *const *argv, const char *optstring, if (ambig && !exact) { if (opterr) - fprintf (stderr, _("%s: option `%s' is ambiguous\n"), + fprintf (stderr, _("%s: option '%s' is ambiguous\n"), argv[0], argv[optind]); nextchar += strlen (nextchar); optind++; @@ -682,12 +682,12 @@ _getopt_internal (int argc, char *const *argv, const char *optstring, if (argv[optind - 1][1] == '-') /* --option */ fprintf (stderr, - _("%s: option `--%s' doesn't allow an argument\n"), + _("%s: option '--%s' doesn't allow an argument\n"), argv[0], pfound->name); else /* +option or -option */ fprintf (stderr, - _("%s: option `%c%s' doesn't allow an argument\n"), + _("%s: option '%c%s' doesn't allow an argument\n"), argv[0], argv[optind - 1][0], pfound->name); nextchar += strlen (nextchar); @@ -704,7 +704,7 @@ _getopt_internal (int argc, char *const *argv, const char *optstring, { if (opterr) fprintf (stderr, - _("%s: option `%s' requires an argument\n"), + _("%s: option '%s' requires an argument\n"), argv[0], argv[optind - 1]); nextchar += strlen (nextchar); optopt = pfound->val; @@ -733,11 +733,11 @@ _getopt_internal (int argc, char *const *argv, const char *optstring, { if (argv[optind][1] == '-') /* --option */ - fprintf (stderr, _("%s: unrecognized option `--%s'\n"), + fprintf (stderr, _("%s: unrecognized option '--%s'\n"), argv[0], nextchar); else /* +option or -option */ - fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), + fprintf (stderr, _("%s: unrecognized option '%c%s'\n"), argv[0], argv[optind][0], nextchar); } nextchar = (char *) ""; @@ -843,7 +843,7 @@ _getopt_internal (int argc, char *const *argv, const char *optstring, if (ambig && !exact) { if (opterr) - fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), + fprintf (stderr, _("%s: option '-W %s' is ambiguous\n"), argv[0], argv[optind]); nextchar += strlen (nextchar); optind++; @@ -862,7 +862,7 @@ _getopt_internal (int argc, char *const *argv, const char *optstring, { if (opterr) fprintf (stderr, _("\ -%s: option `-W %s' doesn't allow an argument\n"), +%s: option '-W %s' doesn't allow an argument\n"), argv[0], pfound->name); nextchar += strlen (nextchar); @@ -877,7 +877,7 @@ _getopt_internal (int argc, char *const *argv, const char *optstring, { if (opterr) fprintf (stderr, - _("%s: option `%s' requires an argument\n"), + _("%s: option '%s' requires an argument\n"), argv[0], argv[optind - 1]); nextchar += strlen (nextchar); return optstring[0] == ':' ? ':' : '?'; @@ -1003,7 +1003,7 @@ main (int argc, char **argv) break; case 'c': - printf ("option c with value `%s'\n", optarg); + printf ("option c with value '%s'\n", optarg); break; case '?': -- cgit v1.2.3