gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-512


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-512-gf49b0b0
Date: Fri, 21 Nov 2014 08:48:26 +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, gawk-4.1-stable has been updated
       via  f49b0b03937c6edfdfba5cfc229557dcfe56b2c7 (commit)
      from  e9f1827fcd3a45cbf5a6df93d9e177e3151e1f56 (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=f49b0b03937c6edfdfba5cfc229557dcfe56b2c7

commit f49b0b03937c6edfdfba5cfc229557dcfe56b2c7
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Nov 21 10:47:53 2014 +0200

    Revert changes to xmalloc.

diff --git a/ChangeLog b/ChangeLog
index a053ca6..2162c9c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,11 @@
        * main.c: Remove a debugging // comment.
        * NOTES: Removed.
 
+       Unrelated:
+
+       Revert changes of 2014-11-20 from Paul Eggert. Causes failures
+       on z/OS.
+
 2014-11-20  Paul Eggert  <address@hidden>
 
        Port to systems where malloc (0) and/or realloc(P, 0) returns NULL.
diff --git a/gawkmisc.c b/gawkmisc.c
index fff5cc5..a729d88 100644
--- a/gawkmisc.c
+++ b/gawkmisc.c
@@ -51,8 +51,7 @@ extern pointer xmalloc(size_t bytes); /* get rid of gcc 
warning */
 pointer
 xmalloc(size_t bytes)
 {
-       pointer p = malloc(bytes);
-       if (!p && bytes)
-               xalloc_die ();    
+       pointer p;
+       emalloc(p, pointer, bytes, "xmalloc");
        return p;
 }
diff --git a/xalloc.h b/xalloc.h
index 5ee4516..0d169cf 100644
--- a/xalloc.h
+++ b/xalloc.h
@@ -156,7 +156,7 @@ void *
 xrealloc(void *p, size_t size)
 {
    void *new_p = realloc(p, size);
-   if (!new_p && size)
+   if (new_p ==  0)
      xalloc_die ();
 
    return new_p;

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

Summary of changes:
 ChangeLog  |    5 +++++
 gawkmisc.c |    5 ++---
 xalloc.h   |    2 +-
 3 files changed, 8 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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