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-919


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-919-ge48a5f8
Date: Thu, 16 Jun 2016 19:21:19 +0000 (UTC)

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  e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0 (commit)
      from  f9586a3dc83144d6383f2db275532f981601426b (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=e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0

commit e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Jun 16 22:20:56 2016 +0300

    Add some comments, minor buglet fix.

diff --git a/ChangeLog b/ChangeLog
index 7d6a89a..d794cae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-06-16         Arnold D. Robbins     <address@hidden>
+
+       * awk.h: Add comment headers for several functions.
+       * builtin.c (nondec2awknum): Actually set a '\0' before
+       calling to strtod() so that the save and restore do something.
+
 2016-06-15         Arnold D. Robbins     <address@hidden>
 
        * config.sub: Update from GNULIB.
diff --git a/awk.h b/awk.h
index 219d80e..7288e20 100644
--- a/awk.h
+++ b/awk.h
@@ -1763,6 +1763,8 @@ dupnode(NODE *n)
 }
 #endif
 
+/* force_string --- force a node to have a string value */
+
 static inline NODE *
 force_string(NODE *s)
 {
@@ -1778,6 +1780,8 @@ force_string(NODE *s)
 #define        force_number    str2number
 #else /* not GAWKDEBUG */
 
+/* unref --- decrease the reference count and/or free a node */
+
 static inline void
 unref(NODE *r)
 {
@@ -1785,6 +1789,8 @@ unref(NODE *r)
                r_unref(r);
 }
 
+/* force_number --- force a  node to have a numeric value */
+
 static inline NODE *
 force_number(NODE *n)
 {
@@ -1793,6 +1799,8 @@ force_number(NODE *n)
 
 #endif /* GAWKDEBUG */
 
+/* emalloc_real --- malloc with error checking */
+
 static inline void *
 emalloc_real(size_t count, const char *where, const char *var, const char 
*file, int line)
 {
@@ -1809,6 +1817,8 @@ emalloc_real(size_t count, const char *where, const char 
*var, const char *file,
        return ret;
 }
 
+/* erealloc_real --- realloc with error checking */
+
 static inline void *
 erealloc_real(void *ptr, size_t count, const char *where, const char *var, 
const char *file, int line)
 {
diff --git a/builtin.c b/builtin.c
index 21f295f..6742466 100644
--- a/builtin.c
+++ b/builtin.c
@@ -3520,6 +3520,7 @@ nondec2awknum(char *str, size_t len)
        } else {
 decimal:
                save = str[len];
+               str[len] = '\0';
                retval = strtod(str, NULL);
                str[len] = save;
        }

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

Summary of changes:
 ChangeLog |    6 ++++++
 awk.h     |   10 ++++++++++
 builtin.c |    1 +
 3 files changed, 17 insertions(+)


hooks/post-receive
-- 
gawk



reply via email to

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