/[public]/getopt/trunk/getopt.c
ViewVC logotype

Diff of /getopt/trunk/getopt.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 324 Revision 325
220 * we already sent a message, we just exit with a helpful hint. 220 * we already sent a message, we just exit with a helpful hint.
221 */ 221 */
222static void __attribute__ ((__noreturn__)) parse_error(const char *message) 222static void __attribute__ ((__noreturn__)) parse_error(const char *message)
223{ 223{
224 if (message) 224 if (message)
225 fprintf(stderr, "%s: %s\n", ,program_short_invocation_name, message); 225 fprintf(stderr, "%s: %s\n", program_invocation_short_name, message);
226 fprintf(stderr, _("Try `%s --help' for more information.\n"), 226 fprintf(stderr, _("Try `%s --help' for more information.\n"),
227 program_invocation_short_name); 227 program_invocation_short_name);
228 exit(PARAMETER_EXIT_CODE); 228 exit(PARAMETER_EXIT_CODE);
229} 229}
230 230
360 {"alternative", no_argument, NULL, 'a'}, 360 {"alternative", no_argument, NULL, 'a'},
361 {"name", required_argument, NULL, 'n'}, 361 {"name", required_argument, NULL, 'n'},
362 {"version", no_argument, NULL, 'V'}, 362 {"version", no_argument, NULL, 'V'},
363 {NULL, 0, NULL, 0} 363 {NULL, 0, NULL, 0}
364 }; 364 };
365#if WITHOUT_GETTEXT
366#else
367 setlocale(LC_ALL, ""); 365 setlocale(LC_ALL, "");
368 bindtextdomain(PACKAGE, LOCALEDIR); 366 bindtextdomain(PACKAGE, LOCALEDIR);
369 textdomain(PACKAGE); 367 textdomain(PACKAGE);
370#endif
371 368
372 init_longopt(); 369 init_longopt();
373 getopt_long_fp = getopt_long; 370 getopt_long_fp = getopt_long;
374 371
375 if (getenv("GETOPT_COMPATIBLE")) 372 if (getenv("GETOPT_COMPATIBLE"))

Legend:
Removed from v.324  
changed lines
  Added in v.325

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26