gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, feature/bool, updated. gawk-4.1.0-4329-g4acad86


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/bool, updated. gawk-4.1.0-4329-g4acad86
Date: Wed, 5 May 2021 14:44:44 -0400 (EDT)

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/bool has been updated
       via  4acad864db8a3b54acbe6a6416b7138464f693ce (commit)
      from  47f5b43b056dd48a68ca73cce9cfefa287bac005 (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=4acad864db8a3b54acbe6a6416b7138464f693ce

commit 4acad864db8a3b54acbe6a6416b7138464f693ce
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Wed May 5 21:44:26 2021 +0300

    Small fixes.

diff --git a/ChangeLog b/ChangeLog
index fe4b1a1..f5ab1b9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,11 @@
 
        * Makefile.am (EXTRA_DIST): Remove files that are now in build-aux.
 
+       Unrelated:
+
+       * builtin.c (do_sub): Remove check for BOOL as target. It's not
+       correct anymore.
+
 2021-05-03         Arnold D. Robbins     <arnold@skeeve.com>
 
        * eval.c (flags2str): Move BOOL entry into the right place in the
@@ -69,7 +74,7 @@
 2021-03-30         Arnold D. Robbins     <arnold@skeeve.com>
 
        * gawk_api.h (gawk_api_minor_version): Increase to 2.
-       * gawk_api.c (+assign_bool): New function.
+       * gawk_api.c (assign_bool): New function.
        (node_to_awk_value): Finish updating for bool types and values.
 
 2021-03-22         Arnold D. Robbins     <arnold@skeeve.com>
diff --git a/builtin.c b/builtin.c
index afdb747..ff4a53a 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2924,10 +2924,6 @@ do_sub(int nargs, unsigned int flags)
                }
        }
 
-       if ((target->flags & BOOL) != 0)
-               fatal(_("%s: target cannot be of type bool"),
-                       (flags & GSUB) != 0 ? "gsub" : "sub");
-
        global = (how_many == -1);
 
        rep_node = POP_STRING();        /* replacement text */
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 151b03f..3fd6946 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-05         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * gawktexi.in: Typo fix.
+
 2021-05-02         Arnold D. Robbins     <arnold@skeeve.com>
 
        * gawktexi.in, gawk.1, awkcard.in: Renamed bool to mkbool.
diff --git a/doc/gawk.info b/doc/gawk.info
index 824d78e..115a43e 100644
--- a/doc/gawk.info
+++ b/doc/gawk.info
@@ -12850,7 +12850,7 @@ File: gawk.info,  Node: Boolean Functions,  Next: 
Numeric Functions,  Prev: Call
 This function is specific to 'gawk'.  It is not available in
 compatibility mode (*note Options::):
 
-'bmkool(EXPRESSION)'
+'mkbool(EXPRESSION)'
      Return a Boolean-typed value based on the regular Boolean value of
      EXPRESSION.  Boolean "true" values have numeric value one.  Boolean
      "false" values have numeric zero.  This is discussed in more detail
diff --git a/doc/gawk.texi b/doc/gawk.texi
index 8992166..267d59f 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -18390,7 +18390,7 @@ available in compatibility mode (@pxref{Options}):
 
 @c @asis for docbook
 @table @asis
-@item @code{bmkool(@var{expression})}
+@item @code{mkbool(@var{expression})}
 @cindexgawkfunc{mkbool}
 Return a Boolean-typed value based on the regular Boolean value
 of @var{expression}.  Boolean ``true'' values have numeric value one.
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index 75607b2..234ba78 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -17531,7 +17531,7 @@ available in compatibility mode (@pxref{Options}):
 
 @c @asis for docbook
 @table @asis
-@item @code{bmkool(@var{expression})}
+@item @code{mkbool(@var{expression})}
 @cindexgawkfunc{mkbool}
 Return a Boolean-typed value based on the regular Boolean value
 of @var{expression}.  Boolean ``true'' values have numeric value one.

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

Summary of changes:
 ChangeLog       | 7 ++++++-
 builtin.c       | 4 ----
 doc/ChangeLog   | 4 ++++
 doc/gawk.info   | 2 +-
 doc/gawk.texi   | 2 +-
 doc/gawktexi.in | 2 +-
 6 files changed, 13 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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