aboutsummaryrefslogtreecommitdiffstats
path: root/extension/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'extension/ChangeLog')
-rw-r--r--extension/ChangeLog100
1 files changed, 100 insertions, 0 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog
index 927d6b15..d160c031 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -4,6 +4,17 @@
* rwarray.c (read_number): Fix typo in case MPFR isn't available.
+2022-03-11 Arnold D. Robbins <arnold@skeeve.com>
+
+ * rwarray.3m: Typo fixes, update copyright and modification dates.
+
+2022-02-25 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ Memory issues with MPFR, fix part 1.
+
+ * intdiv.c (do_intdiv): Don't clear quotient and remainder.
+ * testext.c (test_scalar): Add GMP/MPFR support.
+
2022-02-22 Arnold D. Robbins <arnold@skeeve.com>
Fix resource links found by Coverity. Thanks to
@@ -11,10 +22,86 @@
* readfile.c (do_readfile): Close fd if text == NULL.
+2021-12-10 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * rwarray.c (write_number): Update comment to reflect that we are
+ now using mpfr_get_default_rounding_mode() instead of MPFR_RNDN.
+
2021-12-10 Arnold D. Robbins <arnold@skeeve.com>
* rwarray.c (write_number, read_number): Reformat comments a bit.
+2021-12-09 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * rwarray.c (write_number, read_number): Use
+ mpfr_get_default_rounding_mode() instead of arbitrarily choosing
+ MPFR_RNDN, taking advantage of the fact that core gawk maintains
+ this using the ROUNDMODE global variable.
+
+2021-12-08 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * rwarray.c: Fix valgrind complaints related to creating mpz and mpfr
+ values on the stack in read_number by passing down storage from
+ the calling function that loads the data into gawk.
+ (value_storage): New union type to contain mpz_t or mpfr_t data.
+ (read_global): Allocate value_storage on the stack and pass a pointer
+ to read_elem.
+ (read_array): Ditto.
+ (read_elem): Receive new arg pointing to value_storage, and pass it
+ down to read_value.
+ (read_value): Receive new arg pointing to value_storage, and pass it
+ down to read_number.
+ (read_number): Receive new arg pointing to value_storage, and create
+ mpz and mpfr variables using that storage instead of in the local
+ scope.
+
+2021-12-08 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * rwarray.c: Add new functions writeall and readall to implement
+ persistent state.
+ (write_backend): New helper function containing most of the logic
+ from do_writea. Note that we do not need to check nargs < 2 because
+ gawk will issue a fatal error if a function is called with fewer
+ than min_required_args. Clean up some minor issues with error
+ handling.
+ (do_writea): Grab the array argument and use write_backend to
+ do the rest of the work.
+ (do_writeall): Lookup SYMTAB and invoke write_backend.
+ (free_value): New function to free memory for data we end up ignoring
+ because the variables exist already.
+ (do_poke): Attempt to create variables that don't exist already or
+ are undefined.
+ (regular_array_handle): Wrapper around create_array.
+ (global_array_handle): Call create_array unless the variable exists
+ already and is an array with zero elements.
+ (read_global): New function used by readall to load global variables
+ from a file.
+ (read_one): New function to read a single array from a file.
+ (read_backend): New helper function containing most of the logic
+ from do_reada. Remove the superfluous nargs check. Read the file
+ prologue and then call read_global or read_one as appropriate to load
+ the data.
+ (do_reada): Grab the array argument and call read_backend with
+ read_one to load the data.
+ (do_readall): Call read_backend with read_global to load the data.
+ (read_array): Call read_elem with additional arg regular_array_handle.
+ (read_elem): Add a function argument controlling array creation to
+ pass down to read_value.
+ (read_value): Add a function argument to call for array creation
+ instead of calling create_array directly, since we may need to use
+ an existing array when populating global arrays in readall.
+ (func_table): Add writeall and readall.
+ * rwarray.3am: Document new functions writeall and readall.
+
+2021-12-08 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * testext.c (test_array_create): New function to create an array
+ by name that enables testing whether an undefined variable can
+ be converted by the API into an array.
+ (populate_array): New helper function.
+ (fill_in_array): Use populate_array to fill in the elements.
+ (func_table): Add test_array_create.
+
2021-12-08 Andrew J. Schorr <aschorr@telemetry-investments.com>
* rwarray.c (write_number): Since mpfr_fpif_export is experimental
@@ -72,15 +159,28 @@
2021-05-05 Arnold D. Robbins <arnold@skeeve.com>
+ * CMakeLists.txt: Removed.
+
+2021-05-05 Arnold D. Robbins <arnold@skeeve.com>
+
Get `make distcheck' working again:
* Makefile.am (EXTRA_DIST): Remove files that are now in build-aux.
* aclocal.m4: Regenerated.
+2021-03-30 Arnold D. Robbins <arnold@skeeve.com>
+
+ * rwarray.c (write_value): Add support for writing boolean values.
+ (read_value): Ditto.
+
2021-03-29 Arnold D. Robbins <arnold@skeeve.com>
* testext.c (var_test): Fix a comment. Update copyright year.
+2021-03-22 Arnold D. Robbins <arnold@skeeve.com>
+
+ * testext.c (valrep2str): Add support for AWK_BOOL.
+
2020-07-26 Arnold D. Robbins <arnold@skeeve.com>
* intdiv.c (do_intdiv): Change quotient and remainder to