summaryrefslogtreecommitdiff
path: root/extension/ChangeLog
blob: c362fbaaec07ca38f98aeebc795c6739bacca71a (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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
2025-10-19         Arnold D. Robbins     <[email protected]>

	* configure.ac: Don't disable assertions anymore. They provide
	value, and on modern systems don't affect perormance.

2025-07-10         Arnold D. Robbins     <[email protected]>

	* ordchr.c (do_ord): Revise to work like gawk does, returning 0xFFFD
	for bad multibyte conversions.

2025-06-29         Arnold D. Robbins     <[email protected]>

	* ordchr.c (do_ord, do_chr): Revise to do multibyte / wide character
	conversions.  It's a Unicode world these days.
	Bumped the version to 2.0.
	* ordchr.3am: Updated.

2025-04-03         Eli Zaretskii  <[email protected]>

	* time.c (init_time): New function.  On MS-Windows, attempts to
	dynamically load GetSystemTimePreciseAsFileTime, which provides
	more accurate time, as opposed to GetSystemTimeAsFileTime whose
	precision is the basic 64Hz Windows clock.
	(do_gettimeofday) [HAVE_GETSYSTEMTIMEASFILETIME]: Use
	GetSystemTimePreciseAsFileTime if available.

2025-04-02         Arnold D. Robbins     <[email protected]>

	* 5.3.2: Release tar made.

2025-03-09         Arnold D. Robbins     <[email protected]>

	* inplace.c (do_inplace_begin): Additional hoop jumping to
	silence clang warnings. Sheesh.

2024-11-13         Arnold D. Robbins     <[email protected]>

	* time.3am: Fix spelling of "strptime()". Thanks to
	James Ghofulpo <[email protected]> for the report.

2024-09-17         Arnold D. Robbins     <[email protected]>

	* 5.3.1: Release tar made.

2024-09-17         Arnold D. Robbins     <[email protected]>

	* configure.ac: Bump version, update copyright year.
	* inplace.3am, time.c: update copyright year.

2024-06-08         John E. Malmberg      <[email protected]>

	* time.c: Remove unneeded define for OpenVMS

2024-02-12         Tim Rice              <[email protected]>

	* inplace.3am: Add a note that symbolic and hard links are
	replaced with a new file.

2024-01-20         Arnold D. Robbins     <[email protected]>

	* configure.ac: MPFR on 32 bit Power PC is back
	to working. Remove the check that disables it.

2024-01-13         Arnold D. Robbins     <[email protected]>

	* time.c (do_gettimeofday): Small bug fix. Thanks to
	Andrew Schorr for pointing it out.

2024-01-12         Arnold D. Robbins     <[email protected]>

	Use newer interfaces for getting the time if they're available.
	Thanks to Andreas Schwab <[email protected]> and Andrew Schorr.

	* time.c (do_gettimeofday): Use clock_gettime() or gettimeofday() or
	time(), in that order.
	* configure.ac: Add check for clock_gettime().

2023-11-02         Arnold D. Robbins     <[email protected]>

	* 5.3.0: Release tar ball made.

2023-10-22         Arnold D. Robbins     <[email protected]>

	* Makefile.am: Update copyright year.

2023-10-19         Arnold D. Robbins     <[email protected]>

	* configure.ac: Update version.

2023-06-02         Arnold D. Robbins     <[email protected]>

	* readdir.3am: Very small fix.

2023-05-28         Arnold D. Robbins     <[email protected]>

	* readdir.c: Add checking of PROCINFO["readdir_override"].
	* readdir.3am: Updated.

2023-05-25         Arnold D. Robbins     <[email protected]>

	* readdir.c: Synced fully with readdir_test.c.
	* readdir_test.c: Removed.

2023-05-25         Arnold D. Robbins     <[email protected]>

	* readdir_test.c: Sync somewhat with readdir.c. A full
	sync is W.I.P.

2023-05-24         Arnold D. Robbins     <[email protected]>

	* readdir.c (dir_can_take_file): Only check the stat buffer;
	the open fd could be on a regular file.
	(dir_take_control_of): Add the filename to the error output.

2023-05-07         Arnold D. Robbins     <[email protected]>


	* 5.2.2: Release tar ball made.

2023-05-07         Arnold D. Robbins     <[email protected]>

	* configure.ac: Update version.

2023-04-14         Arnold D. Robbins     <[email protected]>

	* filefuncs.c, readdir.c, readdir_test.c, time.c: Update
	copyright year.

2023-03-29         Arnold D. Robbins     <[email protected]>

	* filefuncs.c: Fix a typo in a comment. Thanks to
	zhou shvinq <[email protected]> for the report.

2023-03-12         Arnold D. Robbins     <[email protected]>

	* time.c: Include ../missing_d/strptime.c if the strptime()
	isn't available natively. Adjust other ifdefs.
	Thanks to Eli Zaretskii for the encouragement.

2023-03-12  Eli Zaretskii  <[email protected]>

	* readdir_test.c (dir_can_take_file): Adjust condition to changes
	in io.c.

2023-02-27         Arnold D. Robbins     <[email protected]>

	* readdir.c (dir_can_take_file): Test is more flexible, based on
	change in gawk's iop.c:iop_alloc() function.

2023-02-09         Arnold D. Robbins     <[email protected]>

	* readdir.c (dir_can_take_control_of): If ! HAVE_OPENDIR,
	don't leak any open file descriptor. Thanks to
	Eli Zaretskii <[email protected]> for the bug report.

2023-01-22         Arnold D. Robbins     <[email protected]>

	* configure.ac: Check also for strptime.
	Update copyright year.
	* time.3am: Update copyright. Undeprecate this extension.
	Add strptime() doc.
	* time.c (issue_warning): Removed function and use.
	(do_strptime): Added.
	(ext_version): Bump to 1.2.

2022-11-17         Arnold D. Robbins     <[email protected]>

	* 5.2.1: Release tar ball made.

2022-11-17         Arnold D. Robbins     <[email protected]>

	* configure.ac: Update version.

2022-10-28         Arnold D. Robbins     <[email protected]>

	* Makefile.am (DEBUG): New variable with debug compilation flags.
	* configure.ac: Rework debug compilation to use DEBUG in Makefile.am
	and to add %no-lines to grammar files. Works around GDB issue
	with macros and #line directives. Thanks to Ulrich Drepper
	for the help and for the suggestions.

2022-10-26         Arnold D. Robbins     <[email protected]>

	* configure.ac: Try to get macros to work in the debugger.

2022-10-23         Arnold D. Robbins     <[email protected]>

	* configure.ac: Add handling of persistent malloc stuff. This is
	for dealing with M1 macOS.
	* configure.ac: Sync code for .developing with main configure.ac.

2022-10-14         Andrew J. Schorr      <[email protected]>

	* rwarray.c (array_handle_t): Removed.
	(readelem): No longer need the array_handle_t parameter.
	All calls adjusted.
	(readvalue): No longer need the array_handle_t parameter.
	All calls adjusted. Use create_array() instead calling
	through the array_handle_t parameter.
	(regular_array_handle, global_array_handle): Removed.
	* testext.c: Add more prints for array restoration tests.

2022-09-17         Arnold D. Robbins     <[email protected]>

	* rwarray.c (do_poke): Handle namespaced variables (foo::bar).
	Thanks to J Naman, <[email protected]> for the report.

2022-09-04         Arnold D. Robbins     <[email protected]>

	* 5.2.0: Release tar ball made.

2022-07-14         Arnold D. Robbins     <[email protected]>

	* time.c: Update copyright.

2022-07-11         Arnold D. Robbins     <[email protected]>

	* time.c: Add a warning upon load that the extension is deprecated.
	* time.3am: Document same. Update copyright year and date.

2022-07-01         Arnold D. Robbins     <[email protected]>

	* Makefile.am, intdiv.c, readfile.c, rwarray.3am, rwarray.c,
	testext.c: Update copyright year.

2022-06-17         Corinna Vinschen      <[email protected]>

	Changes required on Cygwin to build extension DLLs successfully.

	* Makefile.am: Add $(LIBMPFR) to rwarray and testext LIBADD.
	* Makefile.in: Regenerate.

2022-06-06         Andrew J. Schorr      <[email protected]>

	* rwarray.c (free_value): For arrays, we actually need to call
	the new API function destroy_array to release the allocated NODE,
	rather than clear_array.

2022-06-01         Arnold D. Robbins     <[email protected]>

	* rwarray.c: Add ifdefs for MPFR in a few places that were
	missing. The extension wouldn't compile if HAVE_MPFR was
	not defined.

2022-04-05         Arnold D. Robbins     <[email protected]>

	* testext.c (test_array_param): Init new_array to avoid
	compiler warnings. Thanks to Michal Jaegermann for the report.

2022-04-01         Arnold D. Robbins     <[email protected]>

	Small fix from the persistent-gawk guys.

	* rwarray.c (read_number): Fix typo in case MPFR isn't available.

2022-03-11         Arnold D. Robbins     <[email protected]>

	* rwarray.3am: Typo fixes, update copyright and modification dates.

2022-02-25         Andrew J. Schorr      <[email protected]>

	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     <[email protected]>

	Fix resource links found by Coverity. Thanks to
	Jakub Martisko <[email protected]> for the report.

	* readfile.c (do_readfile): Close fd if text == NULL.

2021-12-10         Andrew J. Schorr      <[email protected]>

	* 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     <[email protected]>

	* rwarray.c (write_number, read_number): Reformat comments a bit.

2021-12-09         Andrew J. Schorr      <[email protected]>

	* 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      <[email protected]>

	* 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      <[email protected]>

	* 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      <[email protected]>

	* 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      <[email protected]>

	* 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     <[email protected]>

	* 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     <[email protected]>

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

2021-10-27         Arnold D. Robbins     <[email protected]>

	* 5.1.1: Release tar ball made.

2021-10-13         Arnold D. Robbins     <[email protected]>

	* ordchr.c: Update copyright year.

2021-09-27         Andrew J. Schorr      <[email protected]>

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

2021-09-27         Andrew J. Schorr      <[email protected]>

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

2021-09-22         Arnold D. Robbins     <[email protected]>

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

2021-09-10         Arnold D. Robbins     <[email protected]>

	* 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     <[email protected]>

	Move to Autoconf 2.71 (finally!)

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

2021-05-05         Arnold D. Robbins     <[email protected]>

	* CMakeLists.txt: Removed.

2021-05-05         Arnold D. Robbins     <[email protected]>

	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     <[email protected]>

	* rwarray.c (write_value): Add support for writing boolean values.
	(read_value): Ditto.

2021-03-29         Arnold D. Robbins     <[email protected]>

	* testext.c (var_test): Fix a comment. Update copyright year.

2021-03-22         Arnold D. Robbins     <[email protected]>

	* testext.c (valrep2str): Add support for AWK_BOOL.

2020-07-26         Arnold D. Robbins     <[email protected]>

	* 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     <[email protected]>

	* 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     <[email protected]>

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

2020-07-20  gettextize  <[email protected]>

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

2020-07-13         Arnold D. Robbins     <[email protected]>

	* 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     <[email protected]>

	Miscellanious fixes from Michael Builov <[email protected]>.

	* 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     <[email protected]>

	* 5.1.0: Release tar ball made.

2020-03-11         Arnold D. Robbins     <[email protected]>

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

2020-03-06         Jannick               <[email protected]>

	* 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     <[email protected]>

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

2019-11-03         Arnold D. Robbins     <[email protected]>

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

2019-10-16         Andrew J. Schorr      <[email protected]>

	* 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     <[email protected]>

	* 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     <[email protected]>

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

2019-06-18         Arnold D. Robbins     <[email protected]>

	* 5.0.1: Release tar ball made.

2019-04-18         Arnold D. Robbins     <[email protected]>

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

2019-04-12         Arnold D. Robbins     <[email protected]>

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