This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: windres and strings spanning more that one line


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;
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]