Module Name:    src
Committed By:   christos
Date:           Sat Jan 16 17:01:22 UTC 2016

Modified Files:
        src/usr.bin/m4: misc.c

Log Message:
record all input for fake freeze


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/m4/misc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/m4/misc.c
diff -u src/usr.bin/m4/misc.c:1.23 src/usr.bin/m4/misc.c:1.24
--- src/usr.bin/m4/misc.c:1.23	Tue Mar 20 16:34:58 2012
+++ src/usr.bin/m4/misc.c	Sat Jan 16 12:01:22 2016
@@ -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 @@ obtain_char(struct input_file *f)
 		return EOF;
 
 	f->c = fgetc(f->file);
+#ifndef REAL_FREEZE
+	if (freezef)
+		fputc(f->c, freezef);
+#endif
 	if (f->c == '\n')
 		f->lineno++;
 

Reply via email to