Module Name: src
Committed By: kre
Date: Wed Jan 9 11:04:54 UTC 2019
Modified Files:
src/bin/sh: input.c
Log Message:
Update some dead (#if 0'd) code that is never called to
cope with the changes made in the previous revision, in an
attempt to avoid bit rot.
Untested (uncompiled) - though it should work.
NFC: this change doesn't get compiled, let alone used.
To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/bin/sh/input.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/input.c
diff -u src/bin/sh/input.c:1.64 src/bin/sh/input.c:1.65
--- src/bin/sh/input.c:1.64 Mon Dec 3 06:40:26 2018
+++ src/bin/sh/input.c Wed Jan 9 11:04:54 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: input.c,v 1.64 2018/12/03 06:40:26 kre Exp $ */
+/* $NetBSD: input.c,v 1.65 2019/01/09 11:04:54 kre Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)input.c 8.3 (Berkeley) 6/9/95";
#else
-__RCSID("$NetBSD: input.c,v 1.64 2018/12/03 06:40:26 kre Exp $");
+__RCSID("$NetBSD: input.c,v 1.65 2019/01/09 11:04:54 kre Exp $");
#endif
#endif /* not lint */
@@ -150,6 +150,10 @@ pfgets(char *line, int len)
return NULL;
break;
}
+ if (c == PFAKE) {
+ ++nleft;
+ continue;
+ }
*p++ = c;
if (c == '\n')
break;