gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, feature/cpp-compile, updated. gawk-4.1.0-6225-g0e8552


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/cpp-compile, updated. gawk-4.1.0-6225-g0e855296
Date: Sun, 15 Dec 2024 07:57:29 -0500 (EST)

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, feature/cpp-compile has been updated
       via  0e855296deb0a2288fd8c0e909a366485619f954 (commit)
       via  3886d976985bfd963491853cdb3a6764694e7711 (commit)
       via  81eb42976124a83fd3ee88bdf5dabe8fa75bd852 (commit)
      from  7747bcb5a1b70c9ddc15b05e4798b176982e787f (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=0e855296deb0a2288fd8c0e909a366485619f954

commit 0e855296deb0a2288fd8c0e909a366485619f954
Merge: 7747bcb5 3886d976
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Sun Dec 15 14:57:13 2024 +0200

    Merge branch 'master' into feature/cpp-compile

diff --cc awkgram.c
index c0055466,88a037f4..6ee2ded6
--- a/awkgram.c
+++ b/awkgram.c
@@@ -5767,9 -5767,9 +5767,9 @@@ get_src_buf(
                         * of the available space.
                         */
  
 -                      if (savelen > sourcefile->bufsize / 2) { /* long line 
or token  */
 +                      if (savelen > sourcefile->bufsize / 2u) { /* long line 
or token  */
                                sourcefile->bufsize *= 2;
-                               erealloc(sourcefile->buf, char *, 
sourcefile->bufsize, "get_src_buf");
+                               erealloc(sourcefile->buf, char *, 
sourcefile->bufsize);
                                scan = sourcefile->buf + (scan - lexptr_begin);
                                lexptr_begin = sourcefile->buf;
                        }
diff --cc awkgram.y
index ba7b36e0,a15c4e70..2e77d1f0
--- a/awkgram.y
+++ b/awkgram.y
@@@ -3257,9 -3257,9 +3257,9 @@@ get_src_buf(
                         * of the available space.
                         */
  
 -                      if (savelen > sourcefile->bufsize / 2) { /* long line 
or token  */
 +                      if (savelen > sourcefile->bufsize / 2u) { /* long line 
or token  */
                                sourcefile->bufsize *= 2;
-                               erealloc(sourcefile->buf, char *, 
sourcefile->bufsize, "get_src_buf");
+                               erealloc(sourcefile->buf, char *, 
sourcefile->bufsize);
                                scan = sourcefile->buf + (scan - lexptr_begin);
                                lexptr_begin = sourcefile->buf;
                        }
diff --cc cint_array.c
index 2037e360,5f0f0b6e..0df89f19
--- a/cint_array.c
+++ b/cint_array.c
@@@ -405,7 -404,7 +405,7 @@@ cint_copy(NODE *symbol, NODE *newsymb
        assert(symbol->nodes != NULL);
  
        /* allocate new table */
-       ezalloc(newtab, NODE **, INT32_BIT * sizeof(NODE *), "cint_copy");
 -      ezalloc(new, NODE **, INT32_BIT * sizeof(NODE *));
++      ezalloc(newtab, NODE **, INT32_BIT * sizeof(NODE *));
  
        old = symbol->nodes;
        for (i = NHAT; i < INT32_BIT; i++) {
@@@ -945,8 -943,8 +945,8 @@@ tree_copy(NODE *newsymb, NODE *tree, NO
        if ((tree->flags & HALFHAT) != 0)
                hsize /= 2;
  
-       ezalloc(newtab, NODE **, hsize * sizeof(NODE *), "tree_copy");
 -      ezalloc(new, NODE **, hsize * sizeof(NODE *));
 -      newtree->nodes = new;
++      ezalloc(newtab, NODE **, hsize * sizeof(NODE *));
 +      newtree->nodes = newtab;
        newtree->array_base = tree->array_base;
        newtree->array_size = tree->array_size;
        newtree->table_size = tree->table_size;
@@@ -1142,8 -1140,8 +1142,8 @@@ leaf_copy(NODE *newsymb, NODE *array, N
        long size, i;
  
        size = array->array_size;
-       ezalloc(newtab, NODE **, size * sizeof(NODE *), "leaf_copy");
 -      ezalloc(new, NODE **, size * sizeof(NODE *));
 -      newarray->nodes = new;
++      ezalloc(newtab, NODE **, size * sizeof(NODE *));
 +      newarray->nodes = newtab;
        newarray->array_size = size;
        newarray->array_base = array->array_base;
        newarray->flags = array->flags;
diff --cc eval.c
index dc70eeb7,6e18344f..ece67cf6
--- a/eval.c
+++ b/eval.c
@@@ -828,9 -826,9 +828,9 @@@ set_OFS(
        new_ofs_len = OFS_node->var_value->stlen;
  
        if (OFS == NULL)
-               emalloc(OFS, char *, new_ofs_len + 1, "set_OFS");
+               emalloc(OFS, char *, new_ofs_len + 1);
 -      else if (OFSlen < new_ofs_len)
 +      else if ((size_t) OFSlen < new_ofs_len)
-               erealloc(OFS, char *, new_ofs_len + 1, "set_OFS");
+               erealloc(OFS, char *, new_ofs_len + 1);
  
        memcpy(OFS, OFS_node->var_value->stptr, OFS_node->var_value->stlen);
        OFSlen = new_ofs_len;
diff --cc field.c
index 209a307b,ced32066..735fe008
--- a/field.c
+++ b/field.c
@@@ -319,8 -319,8 +319,8 @@@ set_record(const char *buf, size_t cnt
                        if (databuf_size > MAX_SIZE/2)
                                fatal(_("input record too large"));
                        databuf_size *= 2;
 -              } while (cnt >= databuf_size);
 +              } while ((unsigned long) cnt >= databuf_size);
-               erealloc(databuf, char *, databuf_size, "set_record");
+               erealloc(databuf, char *, databuf_size);
                memset(databuf, '\0', databuf_size);
        }
        /* copy the data */
diff --cc int_array.c
index 9a982fb8,0ae91b55..73cd84b8
--- a/int_array.c
+++ b/int_array.c
@@@ -458,7 -458,7 +458,7 @@@ int_copy(NODE *symbol, NODE *newsymb
        cursize = symbol->array_size;
  
        /* allocate new table */
-       ezalloc(newtab, BUCKET **, cursize * sizeof(BUCKET *), "int_copy");
 -      ezalloc(new, BUCKET **, cursize * sizeof(BUCKET *));
++      ezalloc(newtab, BUCKET **, cursize * sizeof(BUCKET *));
  
        old = symbol->buckets;
  
@@@ -843,10 -841,10 +843,10 @@@ grow_int_table(NODE *symbol
        }
  
        /* allocate new table */
-       ezalloc(newtab, BUCKET **, newsize * sizeof(BUCKET *), 
"grow_int_table");
 -      ezalloc(new, BUCKET **, newsize * sizeof(BUCKET *));
++      ezalloc(newtab, BUCKET **, newsize * sizeof(BUCKET *));
  
        old = symbol->buckets;
 -      symbol->buckets = new;
 +      symbol->buckets = newtab;
        symbol->array_size = newsize;
  
        /* brand new hash table */
diff --cc io.c
index 774beb34,1235c711..7cc937cc
--- a/io.c
+++ b/io.c
@@@ -3387,11 -3383,11 +3386,11 @@@ iop_alloc(int fd, const char *name, in
  {
        IOBUF *iop;
  
-       ezalloc(iop, IOBUF *, sizeof(IOBUF), "iop_alloc");
+       ezalloc(iop, IOBUF *, sizeof(IOBUF));
  
 -      iop->public.fd = fd;
 -      iop->public.name = name;
 -      iop->public.read_func = ( ssize_t(*)(int, void *, size_t) ) read;
 +      iop->public_.fd = fd;
 +      iop->public_.name = name;
 +      iop->public_.read_func = ( ssize_t(*)(int, void *, size_t) ) read;
        iop->valid = false;
        iop->errcode = errno_val;
  
@@@ -3451,18 -3447,18 +3450,18 @@@ iop_finish(IOBUF *iop
                }
        }
  
 -      if (! iop->valid || iop->public.fd == INVALID_HANDLE)
 +      if (! iop->valid || iop->public_.fd == INVALID_HANDLE)
                return iop;
  
 -      if (os_isatty(iop->public.fd))
 +      if (os_isatty(iop->public_.fd))
                iop->flag |= IOP_IS_TTY;
  
 -      iop->readsize = iop->size = optimal_bufsize(iop->public.fd, & 
iop->public.sbuf);
 -      if (do_lint && S_ISREG(iop->public.sbuf.st_mode) && 
iop->public.sbuf.st_size == 0)
 -              lintwarn(_("data file `%s' is empty"), iop->public.name);
 +      iop->readsize = iop->size = optimal_bufsize(iop->public_.fd, & 
iop->public_.sbuf);
 +      if (do_lint && S_ISREG(iop->public_.sbuf.st_mode) && 
iop->public_.sbuf.st_size == 0)
 +              lintwarn(_("data file `%s' is empty"), iop->public_.name);
        iop->errcode = errno = 0;
        iop->count = iop->scanoff = 0;
-       emalloc(iop->buf, char *, iop->size += 1, "iop_finish");
+       emalloc(iop->buf, char *, iop->size += 1);
        iop->off = iop->buf;
        iop->dataend = NULL;
        iop->end = iop->buf + iop->size;
diff --cc str_array.c
index fb45f0a9,7caa1158..c3b03ca7
--- a/str_array.c
+++ b/str_array.c
@@@ -339,7 -339,7 +339,7 @@@ str_copy(NODE *symbol, NODE *newsymb
        cursize = symbol->array_size;
  
        /* allocate new table */
-       ezalloc(newtab, BUCKET **, cursize * sizeof(BUCKET *), "str_copy");
 -      ezalloc(new, BUCKET **, cursize * sizeof(BUCKET *));
++      ezalloc(newtab, BUCKET **, cursize * sizeof(BUCKET *));
  
        old = symbol->buckets;
  
@@@ -679,10 -679,10 +679,10 @@@ grow_table(NODE *symbol
        }
  
        /* allocate new table */
-       ezalloc(newtab, BUCKET **, newsize * sizeof(BUCKET *), "grow_table");
 -      ezalloc(new, BUCKET **, newsize * sizeof(BUCKET *));
++      ezalloc(newtab, BUCKET **, newsize * sizeof(BUCKET *));
  
        old = symbol->buckets;
 -      symbol->buckets = new;
 +      symbol->buckets = newtab;
        symbol->array_size = newsize;
  
        /* brand new hash table, set things up and return */

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

Summary of changes:
 ChangeLog       |  7 +++++++
 array.c         | 16 ++++++++--------
 awk.h           | 12 ++++++------
 awkgram.c       | 38 +++++++++++++++++++-------------------
 awkgram.y       | 38 +++++++++++++++++++-------------------
 builtin.c       | 20 ++++++++++----------
 cint_array.c    | 16 ++++++++--------
 command.c       | 14 +++++++-------
 command.y       | 14 +++++++-------
 debug.c         | 50 +++++++++++++++++++++++++-------------------------
 eval.c          | 20 ++++++++++----------
 ext.c           |  2 +-
 field.c         | 24 ++++++++++++------------
 gawkapi.c       | 17 ++++++++---------
 int_array.c     |  8 ++++----
 interpret.h     |  7 +++----
 io.c            | 30 ++++++++++++++----------------
 main.c          | 14 ++++++--------
 mpfr.c          |  4 ++--
 node.c          | 22 +++++++++++-----------
 printf.c        | 44 ++++++++++++++++++++++----------------------
 profile.c       | 34 +++++++++++++++++-----------------
 re.c            |  8 ++++----
 str_array.c     |  6 +++---
 symbol.c        | 12 ++++++------
 vms/ChangeLog   |  4 ++++
 vms/vms_misc.c  |  2 +-
 vms/vms_popen.c |  6 +++---
 28 files changed, 247 insertions(+), 242 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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