* gettext-runtime/src/envsubst.c (main): Use common 'switch' indentation.
* gettext-tools/src/hostname.c (main): Likewise.
* gettext-tools/src/recode-sr-latin.c (main): Likewise.
* gettext-tools/src/urlget.c (main): Likewise.
* gettext-tools/tests/tstgettext.c (main): Likewise.
* gettext-tools/tests/tstngettext.c (main): Likewise.
/* Parse command line options. */
while ((opt = getopt_long (argc, argv, "hvV", long_options, NULL)) != EOF)
switch (opt)
- {
- case '\0': /* Long option. */
- break;
- case 'h':
- do_help = true;
- break;
- case 'v':
- show_variables = true;
- break;
- case 'V':
- do_version = true;
- break;
- default:
- usage (EXIT_FAILURE);
- }
+ {
+ case '\0': /* Long option. */
+ break;
+ case 'h':
+ do_help = true;
+ break;
+ case 'v':
+ show_variables = true;
+ break;
+ case 'V':
+ do_version = true;
+ break;
+ default:
+ usage (EXIT_FAILURE);
+ }
/* Version information is requested. */
if (do_version)
while ((optchar = getopt_long (argc, argv, "fhisV", long_options, NULL))
!= EOF)
switch (optchar)
- {
- case '\0': /* Long option. */
- break;
- case 'f':
- format = long_format;
- break;
- case 's':
- format = short_format;
- break;
- case 'i':
- format = ip_format;
- break;
- case 'h':
- do_help = true;
- break;
- case 'V':
- do_version = true;
- break;
- default:
- usage (EXIT_FAILURE);
- /* NOTREACHED */
- }
+ {
+ case '\0': /* Long option. */
+ break;
+ case 'f':
+ format = long_format;
+ break;
+ case 's':
+ format = short_format;
+ break;
+ case 'i':
+ format = ip_format;
+ break;
+ case 'h':
+ do_help = true;
+ break;
+ case 'V':
+ do_version = true;
+ break;
+ default:
+ usage (EXIT_FAILURE);
+ /* NOTREACHED */
+ }
/* Version information requested. */
if (do_version)
/* Parse command line options. */
while ((opt = getopt_long (argc, argv, "hV", long_options, NULL)) != EOF)
switch (opt)
- {
- case '\0': /* Long option. */
- break;
- case 'h':
- do_help = true;
- break;
- case 'V':
- do_version = true;
- break;
- default:
- usage (EXIT_FAILURE);
- }
+ {
+ case '\0': /* Long option. */
+ break;
+ case 'h':
+ do_help = true;
+ break;
+ case 'V':
+ do_version = true;
+ break;
+ default:
+ usage (EXIT_FAILURE);
+ }
/* Version information is requested. */
if (do_version)
/* Parse command line options. */
while ((optchar = getopt_long (argc, argv, "hqV", long_options, NULL)) != EOF)
switch (optchar)
- {
- case '\0': /* Long option. */
- break;
- case 'h': /* --help */
- do_help = true;
- break;
- case 'q': /* --quiet / --silent */
- verbose = false;
- break;
- case 'V': /* --version */
- do_version = true;
- break;
- default:
- usage (EXIT_FAILURE);
- /* NOTREACHED */
- }
+ {
+ case '\0': /* Long option. */
+ break;
+ case 'h': /* --help */
+ do_help = true;
+ break;
+ case 'q': /* --quiet / --silent */
+ verbose = false;
+ break;
+ case 'V': /* --version */
+ do_version = true;
+ break;
+ default:
+ usage (EXIT_FAILURE);
+ /* NOTREACHED */
+ }
/* Version information requested. */
if (do_version)
while ((optchar = getopt_long (argc, argv, "+d:eEhnstV", long_options, NULL))
!= EOF)
switch (optchar)
- {
- case '\0': /* Long option. */
- break;
- case 'd':
- context.domain = optarg;
- break;
- case 'e':
- context.do_expand = true;
- break;
- case 'E':
- /* Ignore. Just for compatibility. */
- break;
- case 'h':
- do_help = true;
- break;
- case 'n':
- context.inhibit_added_newline = true;
- break;
- case 's':
- context.do_shell = true;
- break;
- case 't':
- do_thread = true;
- break;
- case 'V':
- do_version = true;
- break;
- case '=':
{
- /* Undocumented option --env sets an environment variable. */
- char *separator = strchr (optarg, '=');
- if (separator != NULL)
- {
- *separator = '\0';
- xsetenv (optarg, separator + 1, 1);
- environ_changed = true;
- break;
- }
+ case '\0': /* Long option. */
+ break;
+ case 'd':
+ context.domain = optarg;
+ break;
+ case 'e':
+ context.do_expand = true;
+ break;
+ case 'E':
+ /* Ignore. Just for compatibility. */
+ break;
+ case 'h':
+ do_help = true;
+ break;
+ case 'n':
+ context.inhibit_added_newline = true;
+ break;
+ case 's':
+ context.do_shell = true;
+ break;
+ case 't':
+ do_thread = true;
+ break;
+ case 'V':
+ do_version = true;
+ break;
+ case '=':
+ {
+ /* Undocumented option --env sets an environment variable. */
+ char *separator = strchr (optarg, '=');
+ if (separator != NULL)
+ {
+ *separator = '\0';
+ xsetenv (optarg, separator + 1, 1);
+ environ_changed = true;
+ break;
+ }
+ }
+ FALLTHROUGH;
+ default:
+ usage (EXIT_FAILURE);
}
- FALLTHROUGH;
- default:
- usage (EXIT_FAILURE);
- }
if (environ_changed)
/* Set locale again via LC_ALL. */
while ((optchar = getopt_long (argc, argv, "+d:htV", long_options, NULL))
!= EOF)
switch (optchar)
- {
- case '\0': /* Long option. */
- break;
- case 'd':
- context.domain = optarg;
- break;
- case 'h':
- do_help = true;
- break;
- case 't':
- do_thread = true;
- break;
- case 'V':
- do_version = true;
- break;
- case '=':
{
- /* Undocumented option --env sets an environment variable. */
- char *separator = strchr (optarg, '=');
- if (separator != NULL)
- {
- *separator = '\0';
- xsetenv (optarg, separator + 1, 1);
- environ_changed = true;
- break;
- }
+ case '\0': /* Long option. */
+ break;
+ case 'd':
+ context.domain = optarg;
+ break;
+ case 'h':
+ do_help = true;
+ break;
+ case 't':
+ do_thread = true;
+ break;
+ case 'V':
+ do_version = true;
+ break;
+ case '=':
+ {
+ /* Undocumented option --env sets an environment variable. */
+ char *separator = strchr (optarg, '=');
+ if (separator != NULL)
+ {
+ *separator = '\0';
+ xsetenv (optarg, separator + 1, 1);
+ environ_changed = true;
+ break;
+ }
+ }
+ FALLTHROUGH;
+ default:
+ usage (EXIT_FAILURE);
}
- FALLTHROUGH;
- default:
- usage (EXIT_FAILURE);
- }
if (environ_changed)
/* Set locale again via LC_ALL. */