mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
* src/getargs.c (short_options): Split and sort for readability.
-g and -x take optional arguments, just like their long options. * build-aux/cross-options.pl: Use /x to make the regexp easier to understand. Fix the handling of $opt which resulted in all the argument to be considered as optional.
This commit is contained in:
@@ -403,8 +403,30 @@ language_argmatch (char const *arg, int prio, location const *loc)
|
||||
| Process the options. |
|
||||
`----------------------*/
|
||||
|
||||
/* Shorts options. */
|
||||
static char const short_options[] = "yvegxdhr:L:ltknVo:b:p:S:T::W";
|
||||
/* Shorts options.
|
||||
Should be computed from long_options. */
|
||||
static char const short_options[] =
|
||||
"L:"
|
||||
"S:"
|
||||
"T::"
|
||||
"V"
|
||||
"W"
|
||||
"b:"
|
||||
"d"
|
||||
"e"
|
||||
"g::"
|
||||
"h"
|
||||
"k"
|
||||
"l"
|
||||
"n"
|
||||
"o:"
|
||||
"p:"
|
||||
"r:"
|
||||
"t"
|
||||
"v"
|
||||
"x::"
|
||||
"y"
|
||||
;
|
||||
|
||||
/* Values for long options that do not have single-letter equivalents. */
|
||||
enum
|
||||
|
||||
Reference in New Issue
Block a user