gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, master, updated. e3d03ee3dec31fd28d668ae


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. e3d03ee3dec31fd28d668ae14bed936af199d9b0
Date: Thu, 27 Dec 2012 18:34:38 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, master has been updated
       via  e3d03ee3dec31fd28d668ae14bed936af199d9b0 (commit)
      from  566df675d8a6bb0c632231abe2e7573ce9f9541d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=e3d03ee3dec31fd28d668ae14bed936af199d9b0

commit e3d03ee3dec31fd28d668ae14bed936af199d9b0
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Dec 27 20:32:55 2012 +0200

    Use output_fp for print/printf only if debugging.

diff --git a/ChangeLog b/ChangeLog
index b3a8936..e8b40d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-12-27         Arnold D. Robbins     <address@hidden>
+
+       * builtin.c (do_print, do_printf): Use output_fp as default
+       output for print/printf only if running under the debugger.
+       Otherwise use stdout as Brian, Peter, and Al intended.
+
 2012-12-25         Arnold D. Robbins     <address@hidden>
 
        Remove sym-constant from API after discussions with John
diff --git a/builtin.c b/builtin.c
index 09a3287..2db769d 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1650,8 +1650,10 @@ do_printf(int nargs, int redirtype)
                rp = redirect(redir_exp, redirtype, & errflg);
                if (rp != NULL)
                        fp = rp->output.fp;
-       } else
+       } else if (do_debug)    /* only the debugger can change the default 
output */
                fp = output_fp;
+       else
+               fp = stdout;
 
        tmp = printf_common(nargs);
        if (redir_exp != NULL) {
@@ -2076,8 +2078,10 @@ do_print(int nargs, int redirtype)
                rp = redirect(redir_exp, redirtype, & errflg);
                if (rp != NULL)
                        fp = rp->output.fp;
-       } else
+       } else if (do_debug)    /* only the debugger can change the default 
output */
                fp = output_fp;
+       else
+               fp = stdout;
 
        for (i = 1; i <= nargs; i++) {
                tmp = args_array[i] = POP();

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    6 ++++++
 builtin.c |    8 ++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]