Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/vgrind back out revision 1.8 per discussion with Hubert



details:   https://anonhg.NetBSD.org/src/rev/99c62b4fc42c
branches:  trunk
changeset: 550711:99c62b4fc42c
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Aug 18 15:28:17 2003 +0000

description:
back out revision 1.8 per discussion with Hubert

vgrind already worked properly in filter mode for source correctly
enclosed inside .vS and .vE.  The change more or less broke troff
processing, since e.g. \fI became \\fI when it went through vgrind.

diffstat:

 usr.bin/vgrind/vfontedpr.c |  16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diffs (37 lines):

diff -r 4c0c36782a3c -r 99c62b4fc42c usr.bin/vgrind/vfontedpr.c
--- a/usr.bin/vgrind/vfontedpr.c        Mon Aug 18 15:02:16 2003 +0000
+++ b/usr.bin/vgrind/vfontedpr.c        Mon Aug 18 15:28:17 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfontedpr.c,v 1.10 2003/08/07 11:17:01 agc Exp $       */
+/*     $NetBSD: vfontedpr.c,v 1.11 2003/08/18 15:28:17 pooka Exp $     */
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)vfontedpr.c        8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: vfontedpr.c,v 1.10 2003/08/07 11:17:01 agc Exp $");
+__RCSID("$NetBSD: vfontedpr.c,v 1.11 2003/08/18 15:28:17 pooka Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -330,16 +330,8 @@
            prccont = FALSE;
            if (!filter || pass)
                putScp(buf);
-           else {
-               char *s=buf;
-               while (*s) {
-                       if ( *s == '\\' )       
-                               /* escape backslashes */
-                               putchar('\\');  
-                       putchar(*s);
-                       s++;
-               }
-            }
+           else
+               printf("%s", buf);
            if (prccont && (psptr >= 0)) {
                ps("'FC ");
                ps(pstack[psptr]);



Home | Main Index | Thread Index | Old Index