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

Christopher Faylor cgf@redhat.com
Thu Feb 20 04:02:00 GMT 2003


I've checked this patch in with the following ChangeLog.

2003-02-19  Mark Blackburn  <marklist@fangorn.ca>

        * rclex.l: Handle strings spanning more than one line.

I also (belatedly) fixed the minor formatting problems in the patch.

Thanks for your contribution.

cgf

On Fri, Feb 14, 2003 at 05:30:06PM -0500, Mark Blackburn wrote:
>Here's the patch I meant to send
>
>Mark Blackburn wrote:
>
>>My previous patch was miscounting the current line in the .rc file. 
>>This should fix that.
>
>

>--- binutils-cvs/src/binutils/rclex.l	2003-02-14 17:05:56.000000000 -0500
>+++ binutils-me/src/binutils/rclex.l	2003-02-14 17:02:42.000000000 -0500
>@@ -196,7 +196,7 @@
> 			  MAYBE_RETURN (NUMBER);
> 			}
> 
>-("\""[^\"\n]*"\""[ \t]*)+ {
>+("\""[^\"\n]*"\""[ \t\n]*)+ {
> 			  char *s;
> 			  unsigned long length;
> 
>@@ -425,7 +425,10 @@
> 	  ++t;
> 	  assert (ISSPACE (*t));
> 	  while (ISSPACE (*t))
>+	  {
>+	    if ((*t) == '\n') ++rc_lineno;
> 	    ++t;
>+	  }
> 	  if (*t == '\0')
> 	    break;
> 	  assert (*t == '"');



More information about the Binutils mailing list