This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH]: windres and strings spanning more that one line
- From: Mark Blackburn <marklist at fangorn dot ca>
- To: binutils at sources dot redhat dot com
- Date: Fri, 14 Feb 2003 17:25:10 -0500
- Subject: Re: [PATCH]: windres and strings spanning more that one line
- References: <3E46B410.6010604@fangorn.ca>
- Reply-to: binutils at sources dot redhat dot com
My previous patch was miscounting the current line in the .rc file. This
should fix that.
I'm also considering submitting a patch to make keywords (ICON, FONT)
case insensitive.
I have no idea it the .rc file specification is published anywhere but
Borland and Microsoft seem to
support mixed case on the keywords.
Could one of the binutils maintainers get back to me on this?
Mark Blackburn wrote:
This is an attempt to fix windres choking on multi-line strings like
this:
ID RCDATA
BEGIN
"string1"
"string2"
END
--- binutils-cvs/src/binutils/rclex.l 2002-05-05 19:19:32.000000000 -0400
+++ binutils-me/src/binutils/rclex.l 2003-02-09 14:55:07.000000000 -0500
@@ -196,7 +196,7 @@
MAYBE_RETURN (NUMBER);
}
-("\""[^\"\n]*"\""[ \t]*)+ {
+("\""[^\"\n]*"\""[ \t\n]*)+ {
char *s;
unsigned long length;