mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
getargs: add support for --flags/-f
Introduce -fdiagnostics-show-caret * src/getargs.c (flag_flag): New global. * src/getargs.h (flag): New enum.
This commit is contained in:
@@ -130,6 +130,18 @@ enum warnings
|
||||
/** What warnings are issued. */
|
||||
extern int warnings_flag;
|
||||
|
||||
/*-------------.
|
||||
| --features. |
|
||||
`-------------*/
|
||||
|
||||
enum feature
|
||||
{
|
||||
feature_none = 0, /**< No additional feature. */
|
||||
feature_caret = 1 << 0, /**< Enhance the output of errors with carets. */
|
||||
feature_all = ~0 /**< All above features. */
|
||||
};
|
||||
/** What additional features to use. */
|
||||
extern int feature_flag;
|
||||
|
||||
/** Process the command line arguments.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user