projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maint: update gnu-web-doc-update.
[bison.git]
/
src
/
getargs.h
diff --git
a/src/getargs.h
b/src/getargs.h
index d9d952022d29cb5217ed2dfda1b944ee795d43e4..22538cf3ee17bfe5b129c66d260cb0ae753a4ec3 100644
(file)
--- a/
src/getargs.h
+++ b/
src/getargs.h
@@
-1,7
+1,7
@@
/* Parse command line arguments for bison.
/* Parse command line arguments for bison.
- Copyright (C) 1984, 1986, 1989, 1992, 2000
, 2001, 2002, 2003, 2004,
-
2005, 2006, 2007, 2008, 2009 Free Software
Foundation, Inc.
+ Copyright (C) 1984, 1986, 1989, 1992, 2000
-2012 Free Software
+ Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
This file is part of Bison, the GNU Compiler Compiler.
@@
-23,7
+23,6
@@
#include "location.h"
#include "location.h"
-extern char *program_name;
enum { command_line_prio, grammar_prio, default_prio };
/* flags set by % directives */
enum { command_line_prio, grammar_prio, default_prio };
/* flags set by % directives */
@@
-123,6
+122,9
@@
enum warnings
warnings_error = 1 << 0, /**< Warnings are treated as errors. */
warnings_midrule_values = 1 << 1, /**< Unset or unused midrule values. */
warnings_yacc = 1 << 2, /**< POSIXME. */
warnings_error = 1 << 0, /**< Warnings are treated as errors. */
warnings_midrule_values = 1 << 1, /**< Unset or unused midrule values. */
warnings_yacc = 1 << 2, /**< POSIXME. */
+ warnings_conflicts_sr = 1 << 3, /**< S/R conflicts. */
+ warnings_conflicts_rr = 1 << 4, /**< R/R conflicts. */
+ warnings_other = 1 << 5, /**< All other warnings. */
warnings_all = ~warnings_error /**< All above warnings. */
};
/** What warnings are issued. */
warnings_all = ~warnings_error /**< All above warnings. */
};
/** What warnings are issued. */
@@
-140,4
+142,7
@@
void getargs (int argc, char *argv[]);
void language_argmatch (char const *arg, int prio, location loc);
void skeleton_arg (const char *arg, int prio, location loc);
void language_argmatch (char const *arg, int prio, location loc);
void skeleton_arg (const char *arg, int prio, location loc);
+/** In the string \c s, replace all characters \c from by \c to. */
+void tr (char *s, char from, char to);
+
#endif /* !GETARGS_H_ */
#endif /* !GETARGS_H_ */