diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-05-05 21:44:26 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-05-05 21:44:26 +0300 |
commit | 4acad864db8a3b54acbe6a6416b7138464f693ce (patch) | |
tree | 4e570e4f1273e69ba71b6331141b4611cd40a2cf | |
parent | 47f5b43b056dd48a68ca73cce9cfefa287bac005 (diff) | |
download | egawk-4acad864db8a3b54acbe6a6416b7138464f693ce.tar.gz egawk-4acad864db8a3b54acbe6a6416b7138464f693ce.tar.bz2 egawk-4acad864db8a3b54acbe6a6416b7138464f693ce.zip |
Small fixes.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | builtin.c | 4 | ||||
-rw-r--r-- | doc/ChangeLog | 4 | ||||
-rw-r--r-- | doc/gawk.info | 2 | ||||
-rw-r--r-- | doc/gawk.texi | 2 | ||||
-rw-r--r-- | doc/gawktexi.in | 2 |
6 files changed, 13 insertions, 8 deletions
@@ -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> @@ -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. |