aboutsummaryrefslogtreecommitdiff
path: root/binutils/rcparse.y
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>1999-05-12 22:03:10 +0000
committerDJ Delorie <dj@redhat.com>1999-05-12 22:03:10 +0000
commit1a6247887990bfceaa81a38bc267a3cd2609f12c (patch)
treeda9284a2b8707a80f1037882ff4820c29cede4f8 /binutils/rcparse.y
parentc6c37250e98f113755e0d787f7070e2ac80ce77e (diff)
downloadgdb-1a6247887990bfceaa81a38bc267a3cd2609f12c.zip
gdb-1a6247887990bfceaa81a38bc267a3cd2609f12c.tar.gz
gdb-1a6247887990bfceaa81a38bc267a3cd2609f12c.tar.bz2
* rclex.l: add code to suppress certain output from cpp, replace
all returns with MAYBE_RETURN (MAYBE_RETURN): new, implement the suppression by returning IGNORED_TOKEN as needed. (cpp_line): remember which file we're in, mark data from included *.h files for suppression. * rcparse.y (input): allow IGNORED_TOKEN outside of known constructs
Diffstat (limited to 'binutils/rcparse.y')
-rw-r--r--binutils/rcparse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/rcparse.y b/binutils/rcparse.y
index 67079a5..03cbbdc 100644
--- a/binutils/rcparse.y
+++ b/binutils/rcparse.y
@@ -122,6 +122,7 @@ static unsigned long class;
%token <s> QUOTEDSTRING STRING
%token <i> NUMBER
%token <ss> SIZEDSTRING
+%token IGNORED_TOKEN
%type <pacc> acc_entries
%type <acc> acc_entry acc_event
@@ -167,6 +168,7 @@ input:
| input newcmd stringtable
| input newcmd user
| input newcmd versioninfo
+ | input newcmd IGNORED_TOKEN
;
newcmd: