PR17074 - ignore line terminator characters found inside strings.
authorNick Clifton <nickc@redhat.com>
Tue, 17 Nov 1998 21:44:22 +0000 (21:44 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 17 Nov 1998 21:44:22 +0000 (21:44 +0000)
gas/ChangeLog
gas/listing.c

index fe11ca713fd8a1a5130268ac4e2bac961b28ea29..b147d184f1131e18e0787609c064897086247370 100644 (file)
@@ -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>
 
index 5050ad7d3618c6e89508fa5aa312deffae685b9c..d6bac782cd16ac787c63ddf9e5948b7684cb17c6 100644 (file)
@@ -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;
 
This page took 0.026716 seconds and 4 git commands to generate.