From: Bruno Haible Date: Sun, 28 Dec 2025 11:32:56 +0000 (+0100) Subject: Whitespace tweaks. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9670fdddf23d9b62c5bbb46ae5c73e46334786bf;p=thirdparty%2Fgettext.git Whitespace tweaks. * gettext-tools/src/msgfilter.c: Fix indentation. * gettext-tools/src/*.c: GNU coding style. * gettext-tools/tests/*.c: Likewise. --- diff --git a/gettext-tools/src/cldr-plurals.c b/gettext-tools/src/cldr-plurals.c index 5a5b81fe7..e8afb35c9 100644 --- a/gettext-tools/src/cldr-plurals.c +++ b/gettext-tools/src/cldr-plurals.c @@ -196,7 +196,7 @@ Similarly for optional arguments.\n\ email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/hostname.c b/gettext-tools/src/hostname.c index 7eacc796b..c85783338 100644 --- a/gettext-tools/src/hostname.c +++ b/gettext-tools/src/hostname.c @@ -247,7 +247,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msgattrib.c b/gettext-tools/src/msgattrib.c index ab574af2a..0509b66cf 100644 --- a/gettext-tools/src/msgattrib.c +++ b/gettext-tools/src/msgattrib.c @@ -537,7 +537,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msgcat.c b/gettext-tools/src/msgcat.c index 491c53241..5c94e78fe 100644 --- a/gettext-tools/src/msgcat.c +++ b/gettext-tools/src/msgcat.c @@ -471,7 +471,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msgcmp.c b/gettext-tools/src/msgcmp.c index 55b01e752..a71bd1789 100644 --- a/gettext-tools/src/msgcmp.c +++ b/gettext-tools/src/msgcmp.c @@ -266,7 +266,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msgcomm.c b/gettext-tools/src/msgcomm.c index 4b4a3b731..96b4712d8 100644 --- a/gettext-tools/src/msgcomm.c +++ b/gettext-tools/src/msgcomm.c @@ -462,7 +462,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msgconv.c b/gettext-tools/src/msgconv.c index f853d0e95..fd8f98daa 100644 --- a/gettext-tools/src/msgconv.c +++ b/gettext-tools/src/msgconv.c @@ -390,7 +390,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msgen.c b/gettext-tools/src/msgen.c index 18fdf7a8e..0ca440213 100644 --- a/gettext-tools/src/msgen.c +++ b/gettext-tools/src/msgen.c @@ -394,7 +394,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msgexec.c b/gettext-tools/src/msgexec.c index 57e61749b..ebd33eab9 100644 --- a/gettext-tools/src/msgexec.c +++ b/gettext-tools/src/msgexec.c @@ -311,7 +311,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msgfilter.c b/gettext-tools/src/msgfilter.c index 426fb5225..71193a524 100644 --- a/gettext-tools/src/msgfilter.c +++ b/gettext-tools/src/msgfilter.c @@ -128,31 +128,31 @@ main (int argc, char **argv) BEGIN_ALLOW_OMITTING_FIELD_INITIALIZERS static const struct program_option options[] = { - { "add-location", CHAR_MAX + 'n', optional_argument }, - { NULL, 'n', no_argument }, - { "color", CHAR_MAX + 6, optional_argument }, - { "directory", 'D', required_argument }, - { "escape", 'E', no_argument }, - { "force-po", 0, no_argument, &force_po, 1 }, - { "help", 'h', no_argument }, - { "indent", CHAR_MAX + 1, no_argument }, - { "input", 'i', required_argument }, - { "keep-header", 0, no_argument, &keep_header, 1 }, - { "newline", CHAR_MAX + 9, no_argument }, - { "no-escape", CHAR_MAX + 2, no_argument }, - { "no-location", CHAR_MAX + 8, no_argument }, - { "no-wrap", CHAR_MAX + 3, no_argument }, - { "output-file", 'o', required_argument }, - { "properties-input", 'P', no_argument }, - { "properties-output", 'p', no_argument }, - { "sort-by-file", 'F', no_argument }, - { "sort-output", 's', no_argument }, - { "strict", CHAR_MAX + 10, no_argument }, - { "stringtable-input", CHAR_MAX + 4, no_argument }, - { "stringtable-output", CHAR_MAX + 5, no_argument }, - { "style", CHAR_MAX + 7, required_argument }, - { "version", 'V', no_argument }, - { "width", 'w', required_argument }, + { "add-location", CHAR_MAX + 'n', optional_argument }, + { NULL, 'n', no_argument }, + { "color", CHAR_MAX + 6, optional_argument }, + { "directory", 'D', required_argument }, + { "escape", 'E', no_argument }, + { "force-po", 0, no_argument, &force_po, 1 }, + { "help", 'h', no_argument }, + { "indent", CHAR_MAX + 1, no_argument }, + { "input", 'i', required_argument }, + { "keep-header", 0, no_argument, &keep_header, 1 }, + { "newline", CHAR_MAX + 9, no_argument }, + { "no-escape", CHAR_MAX + 2, no_argument }, + { "no-location", CHAR_MAX + 8, no_argument }, + { "no-wrap", CHAR_MAX + 3, no_argument }, + { "output-file", 'o', required_argument }, + { "properties-input", 'P', no_argument }, + { "properties-output", 'p', no_argument }, + { "sort-by-file", 'F', no_argument }, + { "sort-output", 's', no_argument }, + { "strict", CHAR_MAX + 10, no_argument }, + { "stringtable-input", CHAR_MAX + 4, no_argument }, + { "stringtable-output", CHAR_MAX + 5, no_argument }, + { "style", CHAR_MAX + 7, required_argument }, + { "version", 'V', no_argument }, + { "width", 'w', required_argument }, }; END_ALLOW_OMITTING_FIELD_INITIALIZERS /* The flag NON_OPTION_TERMINATES_OPTIONS causes option parsing to terminate @@ -517,7 +517,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", @@ -594,7 +594,6 @@ static void generic_filter (const char *str, size_t len, char **resultp, size_t *lengthp) { struct locals l; - l.str = str; l.len = len; l.allocated = len + (len >> 2) + 1; diff --git a/gettext-tools/src/msgfmt.c b/gettext-tools/src/msgfmt.c index ddbd3042f..5a8b2175e 100644 --- a/gettext-tools/src/msgfmt.c +++ b/gettext-tools/src/msgfmt.c @@ -1117,7 +1117,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msggrep.c b/gettext-tools/src/msggrep.c index b435b321b..1ba495fd4 100644 --- a/gettext-tools/src/msggrep.c +++ b/gettext-tools/src/msggrep.c @@ -647,7 +647,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msginit.c b/gettext-tools/src/msginit.c index 0222663f5..3cdab512f 100644 --- a/gettext-tools/src/msginit.c +++ b/gettext-tools/src/msginit.c @@ -449,7 +449,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msgmerge.c b/gettext-tools/src/msgmerge.c index efff142e3..bb9c71b10 100644 --- a/gettext-tools/src/msgmerge.c +++ b/gettext-tools/src/msgmerge.c @@ -615,7 +615,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msgunfmt.c b/gettext-tools/src/msgunfmt.c index fcf1590e3..05065b7cb 100644 --- a/gettext-tools/src/msgunfmt.c +++ b/gettext-tools/src/msgunfmt.c @@ -537,7 +537,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/msguniq.c b/gettext-tools/src/msguniq.c index efc9f0fc2..071ab7eda 100644 --- a/gettext-tools/src/msguniq.c +++ b/gettext-tools/src/msguniq.c @@ -422,7 +422,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/recode-sr-latin.c b/gettext-tools/src/recode-sr-latin.c index 852080144..e859e8b5e 100644 --- a/gettext-tools/src/recode-sr-latin.c +++ b/gettext-tools/src/recode-sr-latin.c @@ -168,7 +168,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/urlget.c b/gettext-tools/src/urlget.c index f198eaae2..6c3741f01 100644 --- a/gettext-tools/src/urlget.c +++ b/gettext-tools/src/urlget.c @@ -191,7 +191,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/src/xgettext.c b/gettext-tools/src/xgettext.c index 0b1f89f8b..b57519f61 100644 --- a/gettext-tools/src/xgettext.c +++ b/gettext-tools/src/xgettext.c @@ -1354,7 +1354,7 @@ Informative output:\n")); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/tests/tstgettext.c b/gettext-tools/tests/tstgettext.c index 66828a7d9..bd9b617b7 100644 --- a/gettext-tools/tests/tstgettext.c +++ b/gettext-tools/tests/tstgettext.c @@ -341,7 +341,7 @@ Standard search directory: %s\n"), email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext", diff --git a/gettext-tools/tests/tstngettext.c b/gettext-tools/tests/tstngettext.c index d88abaa7d..c682ef8f5 100644 --- a/gettext-tools/tests/tstngettext.c +++ b/gettext-tools/tests/tstngettext.c @@ -263,7 +263,7 @@ Standard search directory: %s\n"), LOCALEDIR); email address for this package. Please add _another line_ saying "Report translation bugs to <...>\n" with the address for translation bugs (typically your translation team's web or email address). */ - printf(_("\ + printf (_("\ Report bugs in the bug tracker at <%s>\n\ or by email to <%s>.\n"), "https://savannah.gnu.org/projects/gettext",