mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
PR17074 - ignore line terminator characters found inside strings.
This commit is contained in:
parent
73e42a0da8
commit
3b0ae69636
@ -1,3 +1,8 @@
|
||||
Tue Nov 17 13:42:42 1998 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
* listing.c: Ignore line terminator characters found inside
|
||||
strings.
|
||||
|
||||
start-sanitize-fr30
|
||||
Thu Nov 12 19:21:24 1998 Dave Brolley <brolley@cygnus.com>
|
||||
|
||||
|
@ -355,11 +355,13 @@ listing_newline (ps)
|
||||
{
|
||||
char * copy;
|
||||
int len;
|
||||
int seen_quote = 0;
|
||||
|
||||
for (copy = input_line_pointer - 1;
|
||||
* copy && ! is_end_of_line [* copy];
|
||||
* copy && (seen_quote || (! is_end_of_line [* copy]));
|
||||
copy ++)
|
||||
continue;
|
||||
if (* copy == '"' && copy[-1] != '\')
|
||||
seen_quote = ! seen_quote;
|
||||
|
||||
len = (copy - input_line_pointer) + 2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user