aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-01-06 22:30:26 +0000
committerRichard M. Stallman1995-01-06 22:30:26 +0000
commitdc26fc9f0fb00d0af024e92b57f24130c2ab6a88 (patch)
tree83580b67fe997ed0546ed56f0b9832663fe8f3e5 /lib-src
parent2fe99fe682fc945ab4511eca090ba0c837e3aee0 (diff)
downloademacs-dc26fc9f0fb00d0af024e92b57f24130c2ab6a88.tar.gz
emacs-dc26fc9f0fb00d0af024e92b57f24130c2ab6a88.zip
(C_entries): Ignore carriage return at end of line.
Diffstat (limited to 'lib-src')
-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)
1973 c = *lp++; 1973 c = *lp++;
1974 if (c == '\\') 1974 if (c == '\\')
1975 { 1975 {
1976 /* deal with \r (13) at end of msdos lines */
1977 if ((*lp =='\r')&&(*(lp+1)=='\0'))
1978 *lp = '\0';
1976 /* If we're at the end of the line, the next character is a 1979 /* If we're at the end of the line, the next character is a
1977 '\0'; don't skip it, because it's the thing that tells us 1980 '\0'; don't skip it, because it's the thing that tells us
1978 to read the next line. */ 1981 to read the next line. */