Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/m4 record all input for fake freeze



details:   https://anonhg.NetBSD.org/src/rev/cbddac00b39a
branches:  trunk
changeset: 342965:cbddac00b39a
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 16 17:01:22 2016 +0000

description:
record all input for fake freeze

diffstat:

 usr.bin/m4/misc.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 9b4b5af94341 -r cbddac00b39a usr.bin/m4/misc.c
--- a/usr.bin/m4/misc.c Sat Jan 16 17:01:01 2016 +0000
+++ b/usr.bin/m4/misc.c Sat Jan 16 17:01:22 2016 +0000
@@ -1,5 +1,5 @@
 /*     $OpenBSD: misc.c,v 1.41 2009/10/14 17:19:47 sthen Exp $ */
-/*     $NetBSD: misc.c,v 1.23 2012/03/20 20:34:58 matt Exp $   */
+/*     $NetBSD: misc.c,v 1.24 2016/01/16 17:01:22 christos Exp $       */
 
 /*
  * Copyright (c) 1989, 1993
@@ -36,7 +36,7 @@
 #include "nbtool_config.h"
 #endif
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: misc.c,v 1.23 2012/03/20 20:34:58 matt Exp $");
+__RCSID("$NetBSD: misc.c,v 1.24 2016/01/16 17:01:22 christos Exp $");
 #include <sys/types.h>
 #include <errno.h>
 #include <unistd.h>
@@ -339,6 +339,10 @@
                return EOF;
 
        f->c = fgetc(f->file);
+#ifndef REAL_FREEZE
+       if (freezef)
+               fputc(f->c, freezef);
+#endif
        if (f->c == '\n')
                f->lineno++;
 



Home | Main Index | Thread Index | Old Index