aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--builtin.c4
-rw-r--r--doc/ChangeLog4
-rw-r--r--doc/gawk.info2
-rw-r--r--doc/gawk.texi2
-rw-r--r--doc/gawktexi.in2
6 files changed, 13 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index fe4b1a1c..f5ab1b9d 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 afdb747b..ff4a53af 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 151b03f0..3fd69461 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 824d78e7..115a43e8 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 89921663..267d59f6 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 75607b2b..234ba780 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.