diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/listing.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index fe11ca7..b147d18 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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> diff --git a/gas/listing.c b/gas/listing.c index 5050ad7..d6bac78 100644 --- a/gas/listing.c +++ b/gas/listing.c @@ -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; |