summaryrefslogtreecommitdiffstats
path: root/binutils/rcparse.y
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-01-17 16:24:12 +0000
committerNick Clifton <nickc@redhat.com>2005-01-17 16:24:12 +0000
commitb09a777222bf0a743061b84e490c28171cced25b (patch)
treea65474b2789f5954dcec95c485746c08658c8112 /binutils/rcparse.y
parent637537d07b5b84dc9cb76af1a4f8a847eb2cd5f7 (diff)
downloadppe42-binutils-b09a777222bf0a743061b84e490c28171cced25b.tar.gz
ppe42-binutils-b09a777222bf0a743061b84e490c28171cced25b.zip
PR binutils/647
* rcparse.y (RCDATA): Allow a filename to be supplied as the parameter. Parse it with define_rcdata_file(). * resrc.c (define_rcdata_file): New function. * windres.h: Provide a prototype for the new function. * resrc.c (define_user_file): Fix typo by replacing "font file" with "file".
Diffstat (limited to 'binutils/rcparse.y')
-rw-r--r--binutils/rcparse.y10
1 files changed, 9 insertions, 1 deletions
diff --git a/binutils/rcparse.y b/binutils/rcparse.y
index 7aacaaa067..98ad3c8b58 100644
--- a/binutils/rcparse.y
+++ b/binutils/rcparse.y
@@ -1,5 +1,6 @@
%{ /* rcparse.y -- parser for Windows rc files
- Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+ Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005
+ Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support.
This file is part of GNU Binutils.
@@ -1152,6 +1153,13 @@ rcdata:
YYERROR;
rcparse_discard_strings ();
}
+ | id RCDATA suboptions file_name
+ {
+ define_rcdata_file ($1, &$3, $4);
+ if (yychar != YYEMPTY)
+ YYERROR;
+ rcparse_discard_strings ();
+ }
;
/* We use a different lexing algorithm, because rcdata strings may
OpenPOWER on IntegriCloud