diff netdiff/renpart/mainproc.c @ 139:bf188727e606

donl-rename-parts reader: no tEDAx-style escapes
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 07 Sep 2020 04:25:11 +0000
parents 77acb816727b
children
line wrap: on
line diff
--- a/netdiff/renpart/mainproc.c	Mon Sep 07 04:02:14 2020 +0000
+++ b/netdiff/renpart/mainproc.c	Mon Sep 07 04:25:11 2020 +0000
@@ -47,27 +47,10 @@
 			exit(1);
 		}
 		fields[nfields++] = cp;
-		while (*cp) {
-			if (isspace(*cp)) {
-				*cp++ = '\0';
-				break;
-			}
-			if (*cp++ != '\\')
-				continue;
-			switch (*cp++) {
-			case '\\':
-			case 'n':
-			case 'r':
-			case 't':
-			case ' ':
-			case '\t':
-				continue;
-			default:
-				fprintf(stderr, "%s line %d: invalid escape\n",
-					infname, lineno);
-				exit(1);
-			}
-		}
+		while (*cp && !isspace(*cp))
+			cp++;
+		if (*cp)
+			*cp++ = '\0';
 	}
 }