From: Richard M. Stallman Date: Fri, 6 Jan 1995 22:30:26 +0000 (+0000) Subject: (C_entries): Ignore carriage return at end of line. X-Git-Tag: emacs-19.34~5502 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dc26fc9f0fb00d0af024e92b57f24130c2ab6a88;p=emacs.git (C_entries): Ignore carriage return at end of line. --- diff --git a/lib-src/etags.c b/lib-src/etags.c index 7ff17df45ac..9e059b88db3 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -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. */