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

This commit is contained in:
Christopher Faylor 2003-02-20 03:28:55 +00:00
parent 1b6bc7e06f
commit 6e5f520172
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-02-19 Mark Blackburn <marklist@fangorn.ca>
* rclex.l: Handle strings spanning more than one line.
2003-02-12 Bob Wilson <bob.wilson@acm.org> 2003-02-12 Bob Wilson <bob.wilson@acm.org>
* nm.c (usage): Add `java' and `gnat' demangle styles and make * nm.c (usage): Add `java' and `gnat' demangle styles and make

View File

@ -196,7 +196,7 @@ static char *get_string PARAMS ((int));
MAYBE_RETURN (NUMBER); MAYBE_RETURN (NUMBER);
} }
("\""[^\"\n]*"\""[ \t]*)+ { ("\""[^\"\n]*"\""[ \t\n]*)+ {
char *s; char *s;
unsigned long length; unsigned long length;
@ -425,7 +425,10 @@ handle_quotes (input, len)
++t; ++t;
assert (ISSPACE (*t)); assert (ISSPACE (*t));
while (ISSPACE (*t)) while (ISSPACE (*t))
{
if ((*t) == '\n') ++rc_lineno;
++t; ++t;
}
if (*t == '\0') if (*t == '\0')
break; break;
assert (*t == '"'); assert (*t == '"');