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. gawk-4.1.0-1731-gb6fac5


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-1731-gb6fac52
Date: Thu, 07 Apr 2016 18:59:48 +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  b6fac528542ff95fa89e40a6a4c1da2a7346279b (commit)
       via  ea1c544208913c0871fb21d9a5d6277d83bf2ef2 (commit)
       via  658ede8ca657fe56c7ea6b0a3a1bd89fb858d26d (commit)
       via  82dec6932ed868d9466d23ac5956e09594707dd2 (commit)
      from  43a645fe05c57576d9d41a7f3b18bb55b1dbdc3e (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=b6fac528542ff95fa89e40a6a4c1da2a7346279b

commit b6fac528542ff95fa89e40a6a4c1da2a7346279b
Merge: 43a645f ea1c544
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Apr 7 21:59:34 2016 +0300

    Merge branch 'gawk-4.1-stable'

diff --cc ChangeLog
index a96375c,00dda86..ba4eb96
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,12 -1,25 +1,34 @@@
+ 2016-04-07         Arnold D. Robbins     <address@hidden>
+ 
+       * awk.h (two_way_close_type): Move here from io.c.
+       (close_rp): Add declaration.
+       * builtin.c (do_printf): Call close_rp before fatal message when
+       attempting to write the closed write end of a two way pipe.
+       (do_print): Ditto.
+       (do_print_rec): Ditto.
+       * io.c (do_getline_redir): Same, for reading closed read end.
+       (close_rp): Make not static.
+ 
+ 2016-04-07  Eli Zaretskii  <address@hidden>
+ 
+       * nonposix.h (WEXITSTATUS, WIFEXITED, WIFSIGNALED, WTERMSIG)
+       (WIFSTOPPED, WSTOPSIG) [__MINGW32__]: New macros to replace the
+       missing header sys/wait.h.
+       (w32_status_to_termsig): Add prototype.
+ 
+       * builtin.c (do_system) [__MINGW32__]: Compute the exit status of
+       'system' differently under --traditional, as the low 8 bits are
+       the most interesting.
+ 
 +2016-04-06         Arnold D. Robbins     <address@hidden>
 +
 +      * builtin.c (do_printf): Allow a write to the closed write-end of
 +      a two-way pipe to be nonfatal if NONFATAL is set for it.
 +      (do_print): Ditto.
 +      (do_print_rec): Ditto.
 +      * io.c (do_getline_redir): Same thing for reading from a closed
 +      read end of a two-way pipe. Fatal error.
 +
  2016-04-04         Arnold D. Robbins     <address@hidden>
  
        * builtin.c (do_fflush): Add warning for flush to two-way
diff --cc NEWS
index 91f1990,a8163bb..196dffd
--- a/NEWS
+++ b/NEWS
@@@ -5,80 -5,7 +5,80 @@@
     are permitted in any medium without royalty provided the copyright
     notice and this notice are preserved.
  
 +Changes from 4.1.x to 4.2.0
 +---------------------------
 +
 +1. If not in POSIX mode, changes to ENVIRON are reflected into
 +   gawk's environment, affecting any programs run by system()
 +   or for piped redirections. This can also affect built-in routines, such
 +   as mktime(), which is typically influenced by the TZ environment variable.
 +
 +2. The series of numbers returned by rand() should now be "more
 +   random" than previously.  Gawk's rand() remains repeatable; you will
 +   get the same series of numbers each time you call rand() repeatedly,
 +   but this will be a different series than previously.
 +
 +3. The --pretty-print option no longer runs the program too.
 +
 +4. The igawk script and igawk.1 man page are no longer installed by
 +   `make install'.  They have been obsolete since gawk 4.0.0.
 +
 +5. Gawk now has a `intdiv()' function to perform integer division; this is
 +   primarily useful for the -M option to avoid MPFR division when all
 +   values involved are integers.
 +
 +6. Gawk can now be built with CMake.  This is an alternative build
 +   system for those who may want it; gawk is not going to switch off
 +   use of the autotools anytime soon, if ever.
 +
 +7. Gawk now processes a maximum of two hexadecimal digits in \x
 +   escape sequences inside strings.
 +
 +8. Setting PROCINFO["redirection", "NONFATAL"] to true makes I/O
 +   errors for "redirection" not fatal, setting ERRNO. Setting
 +   PROCINFO["NONFATAL"] makes all I/O nonfatal.
 +
 +9. MirBSD is no longer supported.
 +
 +10. Pretty printing now preserves comments and places them into the
 +    pretty-printed file.
 +
 +11. `make install' now installs shell startup files
 +    $sysconfdir/profile.d/gawk.{csh,sh} containing shell functions to
 +    manipulate the AWKPATH and AWKLIBPATH environment variables.  On a Fedora
 +    system, these files belong in /etc/profile.d, but the appropriate location
 +    may be different on other platforms.
 +
 +12. Gawk now supports retryable I/O via PROCINFO[input-file, "RETRY"]; see
 +    the manual.
 +
 +13. The API minor version has been increased to 2; the get_file()
 +    API provides access to open redirections. Also see the manual.
 +
 +14. Revisions in the POSIX standard remove the special case for POSIX
 +    mode when FS = " " where newline was not a field separator. The code
 +    and doc have been updated.
 +
 +15. Gawk now supports strongly typed regexp constants. Such constants
 +    look like @/.../.  You can assign them to variables, pass them to
 +    functions, use them in ~, !~ and the case part of a switch statement.
 +    More details are provided in the manual.
 +
 +16. The new typeof() function can be used to indicate if a variable or
 +    array element is an array, regexp, string or number.  The isarray()
 +    function is deprecated in favor of typeof().
 +
 +17. As promised when 4.1 was released, the old extension mechanism,
 +    using the `extension' function, is now gone.
 +
 +18. Support for GNU/Linux on Alpha systems has been removed.
 +
 +19. Optimizations are now enabled by default. Use the new -s/--no-optimize
 +    option(s) to disable them.  Pretty printing and profiling automatically
 +    disable optimizations so that the output program is the same as the
 +    original input program.
 +
- Changes from 4.1.3 to 4.1.x
+ Changes from 4.1.3 to 4.1.4
  ---------------------------
  
  1. Updated to GNU autoconf 2.69, automake 1.15, gettext 0.19.7,
diff --cc builtin.c
index e07bdb5,108bcb8..4256ee5
--- a/builtin.c
+++ b/builtin.c
@@@ -1676,13 -1666,10 +1676,14 @@@ do_printf(int nargs, int redirtype
                redir_exp = PEEK(nargs);
                if (redir_exp->type != Node_val)
                        fatal(_("attempt to use array `%s' in a scalar 
context"), array_vname(redir_exp));
 -              rp = redirect(redir_exp, redirtype, & errflg);
 +              rp = redirect(redir_exp, redirtype, & errflg, true);
                if (rp != NULL) {
                        if ((rp->flag & RED_TWOWAY) != 0 && rp->output.fp == 
NULL) {
 +                              if (is_non_fatal_redirect(redir_exp->stptr)) {
 +                                      update_ERRNO_int(EBADF);
 +                                      return;
 +                              }
+                               (void) close_rp(rp, CLOSE_ALL);
                                fatal(_("printf: attempt to write to closed 
write end of two-way pipe"));
                        }
                        fp = rp->output.fp;
@@@ -2160,13 -2147,10 +2165,14 @@@ do_print(int nargs, int redirtype
                redir_exp = PEEK(nargs);
                if (redir_exp->type != Node_val)
                        fatal(_("attempt to use array `%s' in a scalar 
context"), array_vname(redir_exp));
 -              rp = redirect(redir_exp, redirtype, & errflg);
 +              rp = redirect(redir_exp, redirtype, & errflg, true);
                if (rp != NULL) {
                        if ((rp->flag & RED_TWOWAY) != 0 && rp->output.fp == 
NULL) {
 +                              if (is_non_fatal_redirect(redir_exp->stptr)) {
 +                                      update_ERRNO_int(EBADF);
 +                                      return;
 +                              }
+                               (void) close_rp(rp, CLOSE_ALL);
                                fatal(_("print: attempt to write to closed 
write end of two-way pipe"));
                        }
                        fp = rp->output.fp;
@@@ -2238,13 -2216,10 +2244,14 @@@ do_print_rec(int nargs, int redirtype
        assert(nargs == 0);
        if (redirtype != 0) {
                redir_exp = TOP();
 -              rp = redirect(redir_exp, redirtype, & errflg);
 +              rp = redirect(redir_exp, redirtype, & errflg, true);
                if (rp != NULL) {
                        if ((rp->flag & RED_TWOWAY) != 0 && rp->output.fp == 
NULL) {
 +                              if (is_non_fatal_redirect(redir_exp->stptr)) {
 +                                      update_ERRNO_int(EBADF);
 +                                      return;
 +                              }
+                               (void) close_rp(rp, CLOSE_ALL);
                                fatal(_("print: attempt to write to closed 
write end of two-way pipe"));
                        }
                        fp = rp->output.fp;
diff --cc io.c
index fafc100,3a5748b..e036b87
--- a/io.c
+++ b/io.c
@@@ -2604,10 -2473,7 +2602,11 @@@ do_getline_redir(int into_variable, enu
                }
                return make_number((AWKNUM) -1.0);
        } else if ((rp->flag & RED_TWOWAY) != 0 && rp->iop == NULL) {
 +              if (is_non_fatal_redirect(redir_exp->stptr)) {
 +                      update_ERRNO_int(EBADF);
 +                      return make_number((AWKNUM) -1.0);
 +              }
+               (void) close_rp(rp, CLOSE_ALL);
                fatal(_("getline: attempt to read from closed read end of 
two-way pipe"));
        }
        iop = rp->iop;
diff --cc test/ChangeLog
index bfb05de,bf40d8a..53cfd78
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@@ -1,8 -1,8 +1,13 @@@
+ 2016-04-07         Arnold D. Robbins     <address@hidden>
+ 
+       * clos1way2.ok, clos1way3.ok, clos1way4.ok: Updated after
+       code changes.
+ 
 +2016-04-06         Arnold D. Robbins     <address@hidden>
 +
 +      * Makefile.am (clos1way6): New test.
 +      * clos1way6.awk, clos1way6.ok: New files.
 +
  2016-04-04         Arnold D. Robbins     <address@hidden>
  
        * Makefile.am (clos1way2, clos1way3, clos1way4, clos1way5):

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

Summary of changes:
 ChangeLog         |   22 +
 NEWS              |    2 +-
 awk.h             |    2 +
 builtin.c         |    7 +
 io.c              |    5 +-
 nonposix.h        |   15 +
 pc/ChangeLog      |   10 +
 pc/config.h       |    4 -
 pc/config.sed     |    4 -
 pc/gawkmisc.pc    |   44 ++
 po/ca.gmo         |  Bin 82049 -> 84280 bytes
 po/ca.po          | 1192 +++++++++++++++++++++++++-----------------
 po/da.gmo         |  Bin 51491 -> 51491 bytes
 po/da.po          |  709 ++++++++++++++------------
 po/de.gmo         |  Bin 86359 -> 86359 bytes
 po/de.po          |  710 ++++++++++++++------------
 po/es.gmo         |  Bin 43722 -> 43722 bytes
 po/es.po          |  710 ++++++++++++++------------
 po/fi.gmo         |  Bin 85865 -> 85865 bytes
 po/fi.po          |  711 ++++++++++++++------------
 po/fr.gmo         |  Bin 86892 -> 86892 bytes
 po/fr.po          |  711 ++++++++++++++------------
 po/gawk.pot       |  710 ++++++++++++++------------
 po/id.gmo         |  Bin 0 -> 78019 bytes
 po/id.po          | 1480 ++++++++++++++++++++++++++++++-----------------------
 po/it.gmo         |  Bin 82296 -> 82296 bytes
 po/it.po          |  711 ++++++++++++++------------
 po/ja.gmo         |  Bin 51602 -> 51602 bytes
 po/ja.po          |  710 ++++++++++++++------------
 po/ms.gmo         |  Bin 1183 -> 1183 bytes
 po/ms.po          |  706 +++++++++++++------------
 po/nl.gmo         |  Bin 82198 -> 82198 bytes
 po/nl.po          |  711 ++++++++++++++------------
 po/pl.gmo         |  Bin 70252 -> 70252 bytes
 po/pl.po          |  709 ++++++++++++++------------
 po/sv.gmo         |  Bin 82224 -> 82224 bytes
 po/sv.po          |  710 ++++++++++++++------------
 po/vi.gmo         |  Bin 94364 -> 94364 bytes
 po/vi.po          |  711 ++++++++++++++------------
 po/zh_CN.gmo      |  Bin 0 -> 77435 bytes
 po/zh_CN.po       |  836 ++++++++++++++++--------------
 test/ChangeLog    |    5 +
 test/clos1way2.ok |    4 +-
 test/clos1way3.ok |    4 +-
 test/clos1way4.ok |    4 +-
 45 files changed, 6957 insertions(+), 5912 deletions(-)
 create mode 100644 po/id.gmo
 create mode 100644 po/zh_CN.gmo


hooks/post-receive
-- 
gawk



reply via email to

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