summaryrefslogtreecommitdiff
path: root/lib-src/etags.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-01-06 22:30:26 +0000
committerRichard M. Stallman <rms@gnu.org>1995-01-06 22:30:26 +0000
commitde7b911fd778ba9c4865dd68281e0692820098b1 (patch)
treec01787337283113204a1b7b2a0b6e6d5d368acac /lib-src/etags.c
parentbfaa644bc232484a9e4babc68f4dd864c7812188 (diff)
downloademacs-de7b911fd778ba9c4865dd68281e0692820098b1.tar.gz
(C_entries): Ignore carriage return at end of line.
Diffstat (limited to 'lib-src/etags.c')
-rw-r--r--lib-src/etags.c3
1 files changed, 3 insertions, 0 deletions
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. */