X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/327db05b226e6435185a9ac59ec0b5c162613e36..70b7c357476ed3525ddb5d2739e70690cfebb207:/src/getargs.h diff --git a/src/getargs.h b/src/getargs.h index 9fc9aab9..c246f280 100644 --- a/src/getargs.h +++ b/src/getargs.h @@ -1,6 +1,6 @@ /* Parse command line arguments for bison. - Copyright (C) 1984, 1986, 1989, 1992, 2000-2012 Free Software + Copyright (C) 1984, 1986, 1989, 1992, 2000-2013 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -21,7 +21,7 @@ #ifndef GETARGS_H_ # define GETARGS_H_ -#include "location.h" +# include "location.h" enum { command_line_prio, grammar_prio, default_prio }; @@ -109,23 +109,17 @@ enum trace 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. *