]> git.eshelyaron.com Git - emacs.git/commitdiff
(C_entries): Ignore carriage return at end of line.
authorRichard M. Stallman <rms@gnu.org>
Fri, 6 Jan 1995 22:30:26 +0000 (22:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 6 Jan 1995 22:30:26 +0000 (22:30 +0000)
lib-src/etags.c

index 7ff17df45accb4d0655a5463f3c9c9ded128c029..9e059b88db38ec7b3dba734571b9f29b09fc6d79 100644 (file)
@@ -1973,6 +1973,9 @@ C_entries (c_ext, inf)
       c = *lp++;
       if (c == '\\')
        {
+         /* deal with \r (13) at end of msdos lines */
+         if ((*lp =='\r')&&(*(lp+1)=='\0'))
+             *lp = '\0';
          /* If we're at the end of the line, the next character is a
             '\0'; don't skip it, because it's the thing that tells us
             to read the next line.  */