diff options
author | Joel E. Denny <jdenny@ces.clemson.edu> | 2008-11-07 16:48:31 -0500 |
---|---|---|
committer | Joel E. Denny <jdenny@ces.clemson.edu> | 2008-11-07 16:48:31 -0500 |
commit | 4b1ebc495bd39572b60640bc469b0852e9f71447 (patch) | |
tree | 088bedc0fcde7bd229f1a4e2751e9e105c1332a0 /src/getargs.h | |
parent | 738cde3e937b920babf55dea2db4cbfe17eebb9c (diff) | |
download | bison-4b1ebc495bd39572b60640bc469b0852e9f71447.tar.gz |
Clean up %skeleton and %language priority implementation.
* src/getargs.c (skeleton_prio): Use default_prio rather than 2, and
remove static qualifier because others will soon need to see it.
(language_prio): Likewise.
(getargs): Use command_line_prio rather than 0.
* src/getargs.h (command_line_prio, grammar_prio, default_prio): New
enum fields.
(skeleton_prio): Extern it.
(language_prio): Extern it.
* src/parse-gram.y: Use grammar_prio rather than 1.
Diffstat (limited to 'src/getargs.h')
-rw-r--r-- | src/getargs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/getargs.h b/src/getargs.h index 8449626b..eb7f448e 100644 --- a/src/getargs.h +++ b/src/getargs.h @@ -1,7 +1,7 @@ /* Parse command line arguments for bison. Copyright (C) 1984, 1986, 1989, 1992, 2000, 2001, 2002, 2003, 2004, - 2005, 2006, 2007 Free Software Foundation, Inc. + 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -24,11 +24,13 @@ #include "location.h" extern char *program_name; +enum { command_line_prio, grammar_prio, default_prio }; /* flags set by % directives */ /* for -S */ extern char const *skeleton; +extern int skeleton_prio; /* for -I */ extern char const *include; @@ -68,6 +70,7 @@ struct bison_language bool add_tab; }; +extern int language_prio; extern struct bison_language const *language; /*-----------. |