gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, extgawk, updated. fbff497e69139d7cd84341


From: Andrew J. Schorr
Subject: [gawk-diffs] [SCM] gawk branch, extgawk, updated. fbff497e69139d7cd8434112d6f0a36a46350da1
Date: Fri, 27 Jul 2012 16:16:39 +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, extgawk has been updated
       via  fbff497e69139d7cd8434112d6f0a36a46350da1 (commit)
      from  207fc1458c7f168822e454a89f23428c64163427 (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=fbff497e69139d7cd8434112d6f0a36a46350da1

commit fbff497e69139d7cd8434112d6f0a36a46350da1
Author: Andrew J. Schorr <address@hidden>
Date:   Fri Jul 27 12:16:18 2012 -0400

    Issue a warning if the parser take_control_of function fails.

diff --git a/ChangeLog b/ChangeLog
index d91717e..8398593 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-27         Andrew J. Schorr     <address@hidden>
+
+       * io.c (find_input_parser): Issue a warning if take_control_of fails.
+
 2012-07-27         Arnold D. Robbins     <address@hidden>
 
        * awk.h (set_RT): Change to take a NODE * parameter.
diff --git a/io.c b/io.c
index 2f3c5f8..5255f84 100644
--- a/io.c
+++ b/io.c
@@ -2622,8 +2622,11 @@ find_input_parser(IOBUF *iop)
                }
        }
 
-       if (ip != NULL)
-               ip->take_control_of(& iop->public);
+       if (ip != NULL) {
+               if (! ip->take_control_of(& iop->public))
+                       warning(_("input parser `%s' failed to open `%s'."),
+                                       ip->name, iop->public.name);
+       }
 }
 
 /* iop_alloc --- allocate an IOBUF structure for an open fd */

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

Summary of changes:
 ChangeLog |    4 ++++
 io.c      |    7 +++++--
 2 files changed, 9 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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