diff lib-src/etags.c @ 10355:e27c01c37cb9

(C_entries): Ignore carriage return at end of line.
author Richard M. Stallman <rms@gnu.org>
date Fri, 06 Jan 1995 22:30:26 +0000
parents 9b284d98b102
children b1c4515958b6
line wrap: on
line diff
--- a/lib-src/etags.c	Fri Jan 06 22:08:23 1995 +0000
+++ b/lib-src/etags.c	Fri Jan 06 22:30:26 1995 +0000
@@ -1973,6 +1973,9 @@
       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.  */