X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=binutils%2Frclex.l;h=3a4f3e1df8e03b95f7b2109593cf561fe59d3536;hb=eb2c22dc71e524e1230c61c55a35b98a27edce85;hp=6e29e622d0897ac304ca7a0539a34f5e197461e6;hpb=4d0b1625bf03f05543445bd7d1aa581174f91a2c;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/rclex.l b/binutils/rclex.l index 6e29e622d0..3a4f3e1df8 100644 --- a/binutils/rclex.l +++ b/binutils/rclex.l @@ -196,7 +196,7 @@ static char *get_string PARAMS ((int)); MAYBE_RETURN (NUMBER); } -("\""[^\"\n]*"\""[ \t]*)+ { +("\""[^\"\n]*"\""[ \t\n]*)+ { char *s; unsigned long length; @@ -425,7 +425,11 @@ handle_quotes (input, len) ++t; assert (ISSPACE (*t)); while (ISSPACE (*t)) - ++t; + { + if ((*t) == '\n') + ++rc_lineno; + ++t; + } if (*t == '\0') break; assert (*t == '"'); @@ -452,7 +456,7 @@ get_string (len) as->s = xmalloc (len); as->next = strings; - strings = as->next; + strings = as; return as->s; }