aboutsummaryrefslogtreecommitdiffstats
path: root/extension/ChangeLog
blob: c752da78f30a2fe071592f7833aeec5a2eb87579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
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
	Jakub Martisko <jamartis@redhat.com> for the report.

	* 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
	and not available in older versions of mpfr, add an ifdef to
	use mpfr_out_str instead.
	(read_number): Similarly, use mpfr_inp_str instead of
	mpfr_fpif_import.

2021-11-18         Arnold D. Robbins     <arnold@skeeve.com>

	* rwarray.c: Add support for writing/reading GMP and MPFR values.
	Rework usage of constants while we're at it and bump version
	numbers.

2021-11-07         Arnold D. Robbins     <arnold@skeeve.com>

	* rwarray0.c: Removed, it wasn't used.
	* Makefile.am: Updated.

2021-10-27         Arnold D. Robbins     <arnold@skeeve.com>

	* 5.1.1: Release tar ball made.

2021-10-13         Arnold D. Robbins     <arnold@skeeve.com>

	* ordchr.c: Update copyright year.

2021-09-27         Andrew J. Schorr      <aschorr@telemetry-investments.com>

	* ordchr.c (do_ord): Add white space around cast.

2021-09-27         Andrew J. Schorr      <aschorr@telemetry-investments.com>

	* ordchr.c (do_ord): Need to cast to unsigned char to avoid returning
	negative values.

2021-09-22         Arnold D. Robbins     <arnold@skeeve.com>

	* configure.ac: Update version to 5.1.1 in preparation for release.

2021-09-10         Arnold D. Robbins     <arnold@skeeve.com>

	* configure.ac: Updated for Autoconf 2.71. Removes various warnings.
	* configh.in, configure: Regenerated.

	Unrelated:

	* aclocal.m4: Regenerated: Automake 1.16.4.

2021-09-09         Arnold D. Robbins     <arnold@skeeve.com>

	Move to Autoconf 2.71 (finally!)

	* aclocal.m4, configh.in, configure: Regenerated.

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
	local variables. No need to allocate/free them via the API.

2020-07-22         Arnold D. Robbins     <arnold@skeeve.com>

	* configure.ac: Use parent directory's m4 and build-aux.
	* Makefile.am (ACLOCAL_AMFLAGS): Updated.
	* m4, build-aux: Subdirectories removed.
	* Makefile.in: Regenerated.

2020-07-21         Arnold D. Robbins     <arnold@skeeve.com>

	* configure.ac (AM_INIT_AUTOMAKE): Update to 1.16.

2020-07-20  gettextize  <bug-gnu-gettext@gnu.org>

	* configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.20.2.

2020-07-13         Arnold D. Robbins     <arnold@skeeve.com>

	* intdiv.c (do_intdiv): Release the quotient and remainder
	values when done with them. Fixes a memory leak. Thanks to
	Andrew Schorr and valgrind for the report.

2020-06-10         Arnold D. Robbins     <arnold@skeeve.com>

	Miscellanious fixes from Michael Builov <mbuilov@gmail.com>.

	* gawkfts.c (fts_open): Fix memory leak: fts_sort() allocates
	sp->fts_array, but it's not freed if next fts_alloc() fails.
	(fts_build): Need to free "head" list before returning NULL
	on failure.
	* readdir.c (get_inode): On Windows handle leak: opened handle
	was not closed.
	* filefuncs.c (get_inode): On Windows handle leak: opened handle
	was not closed.
	(fill_stat_array): Correct the block size calculation.
	(init_filefuncs, do_fts): According to the documentation,
	setting the FTS_NOCHDIR flag should only disable the optimization of
	changing the current directory when scanning directories.
	However, setting this flag in the gawk script also included setting
	FTS_SKIP, which prevented recursive directory traversal. Fix this.
	* rwarray0.c (read_value): Result of read_array() is awk_bool_t,
	not error code. Fix the check.

2020-04-14         Arnold D. Robbins     <arnold@skeeve.com>

	* 5.1.0: Release tar ball made.

2020-03-11         Arnold D. Robbins     <arnold@skeeve.com>

	* filefuncs.c, ordchr.c, rwarray.c, rwarray0.c: Message updates.

2020-03-06         Jannick               <thirdedition@gmx.net>

	* Makefile.am: Remove trailing spaces.
	* configure.ac: Use GAWK_CANONICAL_HOST instead of AC_CANONICAL_HOST.
	Update call to LT_INIT.

2019-11-21         Arnold D. Robbins     <arnold@skeeve.com>

	* time.3am: Document that this extension is now obsolete.

2019-11-03         Arnold D. Robbins     <arnold@skeeve.com>

	* readdir.3am: Document that readdir extension can cause a
	fatal error, which should be handled with BEGINFILE.

2019-10-16         Andrew J. Schorr      <aschorr@telemetry-investments.com>

	* filefuncs.3am: Enhance the stat() documentation to explain that
	the returned "name" value equals the argument to the function.

2019-08-21         Arnold D. Robbins     <arnold@skeeve.com>

	* filefuncs.c: Fix a typo in a comment. Update copyright year.
	* filefuncs.3am: Document statvfs. Thanks to Andrew Schorr
	for noticing it was missing. Update copyright year.

2019-06-26         Arnold D. Robbins     <arnold@skeeve.com>

	* inplace.3am: Update to match current code's behavior.

2019-06-18         Arnold D. Robbins     <arnold@skeeve.com>

	* 5.0.1: Release tar ball made.

2019-04-18         Arnold D. Robbins     <arnold@skeeve.com>

	* Makefile.am (EXTRA_DIST): Add ChangeLog.1 to the list. Ooops.

2019-04-12         Arnold D. Robbins     <arnold@skeeve.com>

	* ChangeLog.1: Rotated ChangeLog into this file.
	* ChangeLog: Created anew for gawk 5.0.0 and on.
	* 5.0.0: Release tar ball made.