/[bison]/bison/src/getargs.c
ViewVC logotype

Diff of /bison/src/getargs.c

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

revision 1.31 by marc, Wed Nov 28 21:31:13 2001 UTC revision 1.32 by akim, Sat Dec 29 14:21:06 2001 UTC
# Line 135  getargs (int argc, char *argv[]) Line 135  getargs (int argc, char *argv[])
135  {  {
136    int c;    int c;
137    
138    create_long_option_table ();    struct option *longopts = long_option_table_new ();
139    while ((c = getopt_long (argc, argv, shortopts, longopts, NULL)) != EOF)    while ((c = getopt_long (argc, argv, shortopts, longopts, NULL)) != EOF)
140      switch (c)      switch (c)
141        {        {
# Line 217  getargs (int argc, char *argv[]) Line 217  getargs (int argc, char *argv[])
217          exit (1);          exit (1);
218        }        }
219    
220    XFREE (longopts);    free (longopts);
221    
222    if (optind == argc)    if (optind == argc)
223      {      {
224        fprintf (stderr, _("%s: no grammar file given\n"), program_name);        fprintf (stderr, _("%s: no grammar file given\n"), program_name);

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26