From f741370f1559ad04753d1fb08e59c65b910400b9 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 12 May 1999 22:03:10 +0000 Subject: * 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 --- binutils/rcparse.y | 2 ++ 1 file changed, 2 insertions(+) (limited to 'binutils/rcparse.y') 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 QUOTEDSTRING STRING %token NUMBER %token SIZEDSTRING +%token IGNORED_TOKEN %type acc_entries %type acc_entry acc_event @@ -167,6 +168,7 @@ input: | input newcmd stringtable | input newcmd user | input newcmd versioninfo + | input newcmd IGNORED_TOKEN ; newcmd: -- cgit v1.2.1