Replace some occurrences of multiple consecutive calls to printing
functions with a single equivalent printf, in cases where doing so
reduces the size of gcc output.
- if (batch_mode)
- fprintf(stderr, "%s: ", progname);
- fprintf(stderr, "%s", _("error: "));
+ fprintf(stderr, batch_mode ? "%s: %s" : "%.0s%s",
+ progname, _("error: "));
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
help_print_option(opt, help.arg, help.desc, 20);
}
help_print_option(opt, help.arg, help.desc, 20);
}
- puts(_("For more information, see the cdecl99(1) man page."));
- putchar('\n');
+ printf("\n%s\n\n",
+ _("For more information, see the cdecl99(1) man page."));
/*
* TRANSLATORS: Please add *another line* indicating where users should
/*
* TRANSLATORS: Please add *another line* indicating where users should
- fprintf(stderr, "%s: ", progname);
- fprintf(stderr, _("excess command-line arguments:"));
+ fprintf(stderr, "%s: %s", progname,
+ _("excess command-line arguments:"));
for (i = optind; i < argc; i++) {
fprintf(stderr, " %s", argv[i]);
}
for (i = optind; i < argc; i++) {
fprintf(stderr, " %s", argv[i]);
}