diff options
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 161 |
1 files changed, 161 insertions, 0 deletions
@@ -30,6 +30,24 @@ (do_dcngettext): Require strings for arguments 5, 4, 2, and 1, and number for argument 3. +2022-03-03 Arnold D. Robbins <arnold@skeeve.com> + + * NEWS: Updated. + +2022-02-27 Arnold D. Robbins <arnold@skeeve.com> + + * main.c (usage): Update the message for the gawkbug program. + +2022-02-27 Arnold D. Robbins <arnold@skeeve.com> + + Add `gawkbug' reporting program. + + * gawkbug.in: New file. + * Makefile.am (bin_SCRIPTS): New, for gawkbug. + * configure.ac: Add gawkbug to AC_CONFIG_FILES list. + * NEWS: Updated. + * .gitignore: Updated. + 2022-02-27 Arnold D. Robbins <arnold@skeeve.com> * awk.h (cant_happen): Change to allow a format string and arguments, @@ -38,6 +56,26 @@ * awkgram.y, debug.c, eval.c, interpret.h, io.c, main.c, mpfr.c, profile.c, re.c, symbol.c: Fix all uses of cant_happen(). +2022-02-25 Arnold D. Robbins <arnold@skeeve.com> + + Memory issues with MPFR, fix part 2. (Part 1 is in the + extension directory.) + + * gawkapi.c (awk_value_to_node): Clear the GMP/MPFR values + returned from the C extension after setting the internal + variable. + +2022-02-22 Arnold D. Robbins <arnold@skeeve.com> + + Enable interval expressions even for --traditional, as BWK + awk has supported them since 2019. + + * NEWS: Updated. + * main.c (main): Add lint warning for --re-interval. + (parse_args): Add explanatory comment. + * re.c (resetup): Update the comment w.r.t. interval expressions. + Change the test for enabled them to if do_traditional. + 2022-02-22 Arnold D. Robbins <arnold@skeeve.com> Fix resource links found by Coverity. Thanks to @@ -119,6 +157,14 @@ * re.c (reflags2str): Ditto. * str_array.c (env_array_func): Ditto. +2021-12-08 Andrew J. Schorr <aschorr@telemetry-investments.com> + + * gawkapi.c (api_sym_update): Allow undefined Node_var_new variables + to be converted to arrays, otherwise API functions have no way + of creating an array that is referenced in an undefined fashion in + the program. This is somewhat comparable to how the set_argument + API allows an undefined argument variable to be converted to an array. + 2021-12-02 Andrew J. Schorr <aschorr@telemetry-investments.com> * builtin.c (efwrite): Don't use return in call of function @@ -268,6 +314,11 @@ * main.c (UPDATE_YEAR): Update to 2021. +2021-09-03 Arnold D. Robbins <arnold@skeeve.com> + + * mpfr.c (mpg_cmp_as_numbers): Avoid compiler warning about possibly + used before set. Thanks to Michal Jaegermann for the report. + 2021-08-18 Arnold D. Robbins <arnold@skeeve.com> * main.c (main): Change have_srcfile from int to bool. @@ -339,6 +390,11 @@ 2021-05-05 Arnold D. Robbins <arnold@skeeve.com> + * CMakeLists.txt: Removed. + * cmake: Removed directory and its contents. + +2021-05-05 Arnold D. Robbins <arnold@skeeve.com> + Move to Automake 1.16.3. * configure.ac (AM_INIT_AUTOMAKE): Add subdir-objects option. @@ -348,6 +404,43 @@ * 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 + list. + * NEWS: Update with info on mkbool. + +2021-05-02 Arnold D. Robbins <arnold@skeeve.com> + + * awk.h (do_bool): Renamed do_mkbool. + * awkgram.y (tokentab): Rename bool to mkbool. + * builtin.c (do_bool): Renamed do_mkbool. + +2021-04-30 Arnold D. Robbins <arnold@skeeve.com> + + * awk.h (boolval): Remove check for BOOL flag. It was incorrect. + Thanks to Andrew Schorr for the catch. + For Node_val, update the comment to describe the BOOL flag, and + move BOOL up to be alongside the flags for Node_val. + +2021-04-28 Arnold D. Robbins <arnold@skeeve.com> + + Make bools plain numbers that have bool flag instead of + being weird string values. + + * array.c (do_sort_up_value_type): Remove special ordering + for booleans. + * awk.h (warn_bool): Remove declaration. + * builtin.c (warn_bool): Remove function and all calls. + * gawkapi.c (node_to_awk_value): Update switches to look for + NUMBER|BOOL. + * node.c (make_bool_node): Revise string values and flag bits. + 2021-04-16 Arnold D. Robbins <arnold@skeeve.com> * main.c (arg_assign): For -v '@/...' make sure that there are @@ -369,6 +462,61 @@ * interpret.h (r_interpret): Remove LINT_no_effect from Op_lint case. +2021-04-14 Arnold D. Robbins <arnold@skeeve.com> + + * array.c (do_sort_up_value_type): Fix order with bools. + +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. + (node_to_awk_value): Finish updating for bool types and values. + +2021-03-22 Arnold D. Robbins <arnold@skeeve.com> + + * gawkapi.h (make_bool): New inline function. + Update table of request/return types. + * gawkapi.c (awk_value_to_node): Add support for AWK_BOOL. + (node_to_awk_value): Start on same. Not yet complete. + +2021-03-21 Arnold D. Robbins <arnold@skeeve.com> + + * str_array.c (fnv1a_hash_string): New function. + (str_array_init): Use fnv1a_hash_string if AWK_HASH env var + set to "fnv1a". + +2021-03-20 Arnold D. Robbins <arnold@skeeve.com> + + * array.c (do_sort_up_value_type): Add logic for handling bools. + +2021-03-08 Arnold D. Robbins <arnold@skeeve.com> + + * awk.h (warn_bool, do_bool): Add function declarations. + * awkgram.y (tokentab): Add entry for "bool" builtin. + * builtin.c (warn_bool): New function. + (do_index, do_substr, do_toupper, do_tolower, do_match, + do_length): Call it. + (do_sub): If first arg to sub/gsub is bool, fatal error. + (do_bool): New function. + * field.c (do_split, do_patsplit): Call warn_bool. + * main.c (load_procinfo_bools): Removed function and call. + +2021-03-05 Arnold D. Robbins <arnold@skeeve.com> + + Start on a bool type for gawk. + + * awk.h (BOOL): New flag value. + (make_bool_node): Add declaration of new function. + (bool_val): Check for BOOL along with NUMBER. + * builtin.c (do_typeof): Add support for BOOL. + * eval.c (flags2str): Ditto. + * gawkapi.h (awk_val_type): Add AWK_BOOL. + (awk_value_t): Add awk_bool_t element to the union and macro for it. + (struct gawk_api): Update the table of request/return values. + * main.c (load_procinfo_bools): New function. + (load_procinfo): Call it. + * node.c (make_bool_node): New function. + 2021-02-13 Arnold D. Robbins <arnold@skeeve.com> * io.c (nextfile): Use the value of ARGC directly in the for @@ -491,6 +639,19 @@ 2020-11-02 Arnold D. Robbins <arnold@skeeve.com> + Make gawk numeric comparisons act like C doubles. + MPFR differs from doubles w.r.t. NaN, not sure why yet. + + * awk.h (scalar_cmp_t): New enum. + * builtin.c (format_nan_inf): Use mpfr_signbit, not mpfr_sgn. + * eval.c (cmp_doubles): New routine. + (cmp_scalars): Change type to bool, rework logic. + * interpret.h (r_interpret): Rework scalar comparisons. + * mpfr.c (mpg_cmp_as_numbers): New routine. + * node.c: Use <math.h>, not "math.h", minor comment edits. + +2020-11-02 Arnold D. Robbins <arnold@skeeve.com> + * re.c (make_regexp): Cast len parameter to int to avoid compiler warnings. |