* src/options.h, src/options.c (create_long_option_table): Rename

as...
(long_option_table_new): this, with a clearer prototype.
(percent_table): Remove, unused,
* src/getargs.c (getargs): Adjust.
This commit is contained in:
Akim Demaille
2001-12-29 14:21:06 +00:00
parent 29e8831621
commit f51cb8ff8c
5 changed files with 31 additions and 23 deletions

View File

@@ -135,7 +135,7 @@ getargs (int argc, char *argv[])
{
int c;
create_long_option_table ();
struct option *longopts = long_option_table_new ();
while ((c = getopt_long (argc, argv, shortopts, longopts, NULL)) != EOF)
switch (c)
{
@@ -217,7 +217,8 @@ getargs (int argc, char *argv[])
exit (1);
}
XFREE (longopts);
free (longopts);
if (optind == argc)
{
fprintf (stderr, _("%s: no grammar file given\n"), program_name);