Project

General

Profile

Bug #1237 » expr.y.diff

joerg, 01/20/2009 01:07 PM

View differences:

expr.y 20 Jan 2009 12:56:52 -0000
va_end(arg);
}
static void
usage(void)
{
(void)fprintf(stderr, "usage: %s expression\n", getprogname());
exit(2);
}
int
main(int argc, const char * const *argv)
{
setprogname(argv[0]);
(void)setlocale(LC_ALL, "");
if (argc == 1) {
(void)fprintf(stderr, "usage: %s expression\n",
getprogname());
exit(2);
}
av = argv + 1;
if (argc > 1 && strcmp(argv[1], "--"))
av = argv + 1;
else if (argc > 2)
av = argv + 2;
else
usage();
exit(yyparse());
/* NOTREACHED */
(2-2/3)