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

Diff of /bison/src/options.c

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

revision 1.4 by akim, Thu Oct 4 14:55:20 2001 UTC revision 1.5 by marc, Mon Oct 15 19:01:12 2001 UTC
# Line 142  create_long_option_table () Line 142  create_long_option_table ()
142          /* Copy the struct information in the longoptions.  */          /* Copy the struct information in the longoptions.  */
143          longopts[j].name = option_table[i].name;          longopts[j].name = option_table[i].name;
144          longopts[j].has_arg = option_table[i].has_arg;          longopts[j].has_arg = option_table[i].has_arg;
145          longopts[j].flag = option_table[i].set_flag;          /* When an options is declared having 'optional_argument' and
146               a flag is specified to be set, the option is skipped on
147               command line. So we never use a flag when a command line
148               option is declared 'optional_argument.  */
149            if (longopts[j].has_arg == optional_argument)
150              longopts[j].flag = NULL;
151            else
152              longopts[j].flag = option_table[i].set_flag;
153          longopts[j++].val = option_table[i].val;          longopts[j++].val = option_table[i].val;
154        }        }
155    longopts[number_options].name = NULL;    longopts[number_options].name = NULL;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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