From 61f40e03c573f995f4cc156e0284096ad30eb692 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 27 Feb 2012 01:52:15 -0800 Subject: Fix the issue properly, once and for all, of how to determine that output has taken place and suppress the printing of bindings. * debug.c (debug): std_output replaced with std_debug. * eval.c (eval_init): Registered new *stddebug* variable. * stream.c (std_debug): New variable. (stdio_put_string): Check that stream is other than std_debug, to determine that output has taken place. * stream.h (std_debug): Declared. * txr.1: Added *stddebug* to documentation stub heading. --- stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream.h') diff --git a/stream.h b/stream.h index ba6ef58e..cae9bf98 100644 --- a/stream.h +++ b/stream.h @@ -24,7 +24,7 @@ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -extern val std_input, std_output, std_error; +extern val std_input, std_output, std_debug, std_error; extern val output_produced; val make_stdio_stream(FILE *, val descr, val input, val output); -- cgit v1.2.3