#ifndef GETARGS_H_
# define GETARGS_H_
-#include "location.h"
+# include "location.h"
enum { command_line_prio, grammar_prio, default_prio };
extern int trace_flag;
/*-------------.
-| --warnings. |
+| --features. |
`-------------*/
-enum warnings
+enum feature
{
- Wnone = 0, /**< Issue no warnings. */
- Werror = 1 << 0, /**< Warnings are treated as errors. */
- Wmidrule_values = 1 << 1, /**< Unset or unused midrule values. */
- Wyacc = 1 << 2, /**< POSIXME. */
- Wconflicts_sr = 1 << 3, /**< S/R conflicts. */
- Wconflicts_rr = 1 << 4, /**< R/R conflicts. */
- Wother = 1 << 5, /**< All other warnings. */
- Wall = ~Werror /**< All above warnings. */
+ feature_none = 0, /**< No additional feature. */
+ feature_caret = 1 << 0, /**< Enhance the output of errors with carets. */
+ feature_all = ~0 /**< All above features. */
};
-/** What warnings are issued. */
-extern int warnings_flag;
-
+/** What additional features to use. */
+extern int feature_flag;
/** Process the command line arguments.
*