summaryrefslogtreecommitdiff
path: root/binutils/rcparse.y
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>1999-05-12 22:03:10 +0000
committerDJ Delorie <dj@delorie.com>1999-05-12 22:03:10 +0000
commitf741370f1559ad04753d1fb08e59c65b910400b9 (patch)
tree32f512efe90704e13877e2f14ef546ec5cd2c1ac /binutils/rcparse.y
parent20110b94075e0f98f130f2d75da131dd4d6cb53b (diff)
downloadbinutils-redhat-f741370f1559ad04753d1fb08e59c65b910400b9.tar.gz
* 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 67079a5fd8..03cbbdc5b6 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: