| 1 |
2025-04-02 Arnold D. Robbins <[email protected]> |
| 2 |
|
| 3 |
* README: Version adjusted for release. |
| 4 |
* configure.ac: Ditto. |
| 5 |
* 5.3.2: Release tar made. |
| 6 |
|
| 7 |
2025-03-27 Arnold D. Robbins <[email protected]> |
| 8 |
|
| 9 |
* field.c (do_split): Fix subtle issue with " " vs. / / |
| 10 |
as separator argument to split(). Reported by Jason Kwan |
| 11 |
with assistance from Nethox. |
| 12 |
|
| 13 |
2025-03-25 Arnold D. Robbins <[email protected]> |
| 14 |
|
| 15 |
* io.c (find_source): Always append .awk when searching, even if |
| 16 |
--traditional. Thanks to Nethox <[email protected]> for |
| 17 |
pointing out the inconsistency. |
| 18 |
* NEWS: Updated. |
| 19 |
|
| 20 |
2025-03-19 Collin Funk <[email protected]> |
| 21 |
|
| 22 |
Fix build on AIX. |
| 23 |
* awk.h [_AIX]: Include <sys/cred.h> before defining macros which |
| 24 |
cause errors when expanded in function prototypes. |
| 25 |
|
| 26 |
2025-03-18 Arnold D. Robbins <[email protected]> |
| 27 |
|
| 28 |
* awk.h (POP_SCALAR): Use DEREF on original value for Node_var_new. |
| 29 |
|
| 30 |
2025-03-17 Arnold D. Robbins <[email protected]> |
| 31 |
|
| 32 |
Fix problems calling functions indirectly with Node_var_new. |
| 33 |
Thanks to Denis Shirokov <[email protected]> for the report |
| 34 |
and test case. |
| 35 |
|
| 36 |
* awk.h (POP_SCALAR): Handle Node_var_new. |
| 37 |
(fixtype): Change assertion into a runtime test and failure. |
| 38 |
That way it'll happen even if compiled with NDEBUG. |
| 39 |
|
| 40 |
Unrelated cleanup: |
| 41 |
|
| 42 |
* builtin.c (call_match): Remove redundant tests for |
| 43 |
Node_var_new inside a test for either Node_var_new or |
| 44 |
Node_elem_new. |
| 45 |
|
| 46 |
2025-03-11 Arnold D. Robbins <[email protected]> |
| 47 |
|
| 48 |
* re.c (check_bracket_exp): Rewrite the routine to correctly handle |
| 49 |
special characters after the opening bracket. Thanks to |
| 50 |
Mohamed Akram <[email protected]> for the report. |
| 51 |
(reflags2str): Unrelated: Add RE_DEBUG to the list. |
| 52 |
|
| 53 |
2025-03-09 Arnold D. Robbins <[email protected]> |
| 54 |
|
| 55 |
Bug fix: |
| 56 |
|
| 57 |
* eval.c (elem_new_reset): Set vname to NULL. This is a bug fix that |
| 58 |
only showed up when compiling for 32 bit. |
| 59 |
|
| 60 |
Memory cleanup: |
| 61 |
|
| 62 |
* eval.c (setup_frame, PUSH_CODE, init_interpret): After call to |
| 63 |
getnode(), memset the new node to zero. |
| 64 |
* field.c (set_record): Ditto. |
| 65 |
* interpret.h (r_interpret): Case Op_array_for_init: Ditto. |
| 66 |
* node.c (make_str_node): Ditto. |
| 67 |
* profile.c (pp_push): Ditto. |
| 68 |
* symbol.c (append_symbol): Ditto. |
| 69 |
|
| 70 |
Compiler warning fix: |
| 71 |
|
| 72 |
* main.c (enable_pma): Add a return true to silence compiler |
| 73 |
warnings when USE_PERSISTENT_MALLOC is not defined. |
| 74 |
|
| 75 |
General improvement: |
| 76 |
|
| 77 |
* interpret.h (r_interpret): Case Op_func_call, if do_itrace, |
| 78 |
print the function name. |
| 79 |
|
| 80 |
2025-02-24 Arnold D. Robbins <[email protected]> |
| 81 |
|
| 82 |
* NEWS: Updated. |
| 83 |
* main.c (UPDATE_YEAR): Update. |
| 84 |
* array.c, awk.h, awkgram.y, cint_array.c, command.y, debug.c, |
| 85 |
eval.c, ext.c, field.c, floatcomp.c, gawkapi.c, int_array.c, |
| 86 |
interpret.h, io.c, mpfr.c, node.c, printf.c, profile.c, re.c, |
| 87 |
str_array.c, symbol.c: Update copyright year. |
| 88 |
|
| 89 |
2025-02-14 Paul Eggert <[email protected]> |
| 90 |
|
| 91 |
* main.c (main): Omit BSD hack that misbehaved by putting stderr |
| 92 |
in O_APPEND mode, which can cause later stderr output to be put in |
| 93 |
the wrong place, even after Gawk has exited and even if Gawk |
| 94 |
never outputs anything. For example, the shell command |
| 95 |
"echo abcdefgh >foo; (gawk 'BEGIN{}'; echo ouch >&2) 2<>foo" |
| 96 |
incorrectly appended "ouch" to the end of foo rather than |
| 97 |
correctly overwriting the start of "foo" with "ouch". |
| 98 |
The BSD issue can be addressed in the test case instead. |
| 99 |
|
| 100 |
2025-02-16 Arnold D. Robbins <[email protected]> |
| 101 |
|
| 102 |
* int_array.c (INT_CHAIN_MAX): Bump it up from 2 to 10. |
| 103 |
* str_array.c (STR_CHAIN_MAX): Ditto. |
| 104 |
|
| 105 |
2025-02-05 Arnold D. Robbins <[email protected]> |
| 106 |
|
| 107 |
* configure.ac: Add checks for spawn.h and _NSGetExecutablePath |
| 108 |
function. |
| 109 |
* awk.h (os_disable_aslr): Add function declaration. |
| 110 |
* main.c (enable_pma): Move OS specific code out of this function |
| 111 |
and in posix/gawkmisc.c. Instead, call os_disable_aslr(). |
| 112 |
|
| 113 |
2025-02-05 Arnold D. Robbins <[email protected]> |
| 114 |
|
| 115 |
* main.c (enable_pma): Remove unused argc parameter and adjust |
| 116 |
call. Add call to unsetenv() for magic env var if it was |
| 117 |
there, so that the environment is as it was before the exec. |
| 118 |
|
| 119 |
2025-02-05 Arnold D. Robbins <[email protected]> |
| 120 |
|
| 121 |
* main.c (enable_pma): New function. Has the entire init flow |
| 122 |
for PMA. Also has new linux-specific code to deal with being |
| 123 |
an PIE executable. |
| 124 |
(main): Call enable_pma(). |
| 125 |
* configure.ac: Add checks for <sys/personality.h> and the |
| 126 |
personality() system call. |
| 127 |
* NEWS: Updated. |
| 128 |
|
| 129 |
2025-02-05 Arnold D. Robbins <[email protected]> |
| 130 |
|
| 131 |
Bug fixes for indirect calls of match and patsplit. |
| 132 |
Thanks to Denis Shirokov <[email protected]> for the report |
| 133 |
and test case. |
| 134 |
|
| 135 |
* builtin.c (call_match): Pop the text of the stack. Handle |
| 136 |
the case that the regex is Node_var_new or Node_elem_new. |
| 137 |
Same for the text. Push text onto the stack first, then |
| 138 |
everything else. |
| 139 |
Also, free the vname for the regex argument if it's a Node_var_new; |
| 140 |
same for the text argument. |
| 141 |
* eval.c (setup_frame): Handle Node_regex and Node_dynregex. |
| 142 |
* field.c (do_patsplit): Handle the case of the source being |
| 143 |
Node_param_list, and then if Node_var_new or Node_elem_new. |
| 144 |
|
| 145 |
2025-02-05 Arnold D. Robbins <[email protected]> |
| 146 |
|
| 147 |
* node.c (r_unref): For Node_var_new, free the vname. |
| 148 |
|
| 149 |
2025-02-05 Arnold D. Robbins <[email protected]> |
| 150 |
|
| 151 |
Stylistic cleanups and small code cleanups. |
| 152 |
|
| 153 |
* array.c, eval.c, ext.c, interpret.h: Some stylistic cleanups. |
| 154 |
* awk.h (eln_pa, eln_vn): Renamed to elemnew_parent and |
| 155 |
elemnew_vname. All uses adjusted. |
| 156 |
(union worn): Renamed to `z' and only needs the wsp and vn |
| 157 |
pointers in it. |
| 158 |
|
| 159 |
2025-02-03 Cristian Ioneci <[email protected]> |
| 160 |
|
| 161 |
Fix issues triggered by using in certain ways array elements passed to |
| 162 |
a function; issues include crash dumps, reads-after-free, internal errors, |
| 163 |
incorrect results. |
| 164 |
See test cases in test/ar2fn_*.awk. |
| 165 |
|
| 166 |
* awk.h: Add an union around `wsp', `wslen', part of NODE's `sub.val', in |
| 167 |
order to overlap a char* over `wsp'; adjust/add #defines to access the |
| 168 |
moved/added members. |
| 169 |
(force_string_fmt, force_number): Clear Node_elem_new specific members |
| 170 |
when the type is changed. |
| 171 |
* interpret.h (r_interpret): Make a newborn Node_elem_new remember its |
| 172 |
parent and a string representation of the index in the parent; for that |
| 173 |
use `typre' and the added char* mentioned above (in awk.h) |
| 174 |
(r_interpret): Clear Node_elem_new specific members when the type is |
| 175 |
changed. |
| 176 |
* array.c (force_array): The node will become a Node_var_array: if |
| 177 |
present, use the values stashed in the previously mentioned fields to |
| 178 |
properly set its `parent_array' and `vname'. |
| 179 |
(adjust_param_node): New function. |
| 180 |
(adjust_fcall_stack): Extra handling of Node_elem_new nodes. |
| 181 |
* eval.c (elem_new_reset): New function. |
| 182 |
(elem_new_to_scalar): Clear Node_elem_new specific members using the newly |
| 183 |
introduced function above. |
| 184 |
* ext.c (get_actual_argument): Clear Node_elem_new specific members when |
| 185 |
the type is changed. |
| 186 |
* gawkapi.c (api_sym_update): Clear Node_elem_new specific members when |
| 187 |
the type is changed. |
| 188 |
* mpfr.c (mpg_force_number): Clear Node_elem_new specific members when |
| 189 |
the type is changed. |
| 190 |
* node.c (r_force_number): Clear Node_elem_new specific members when |
| 191 |
the type is changed. |
| 192 |
(r_unref): Add code to free the eln_vn member of a Node_elem_new. |
| 193 |
|
| 194 |
2025-01-26 Arnold D. Robbins <[email protected]> |
| 195 |
|
| 196 |
* interpret.h (r_interpret): Case Op_store_var; move REGEX |
| 197 |
check to ... |
| 198 |
* node.c (r_unref): ... here. |
| 199 |
* builtin.c (do_sub): Remove REGEX freeing code, simplify what |
| 200 |
remained when checking if original target was a regex. |
| 201 |
|
| 202 |
2025-01-24 Arnold D. Robbins <[email protected]> |
| 203 |
|
| 204 |
* interpret.h (r_interpret): Case Op_store_var; add a |
| 205 |
check for valref == 1. Duh. |
| 206 |
|
| 207 |
2025-01-23 Arnold D. Robbins <[email protected]> |
| 208 |
|
| 209 |
* interpret.h (r_interpret): Case Op_store_var; free up |
| 210 |
typed regex stuff to avoid memory leaks. See memleak2 test. |
| 211 |
Thanks to Denis Shirokov <[email protected]> for the report |
| 212 |
and test case. |
| 213 |
|
| 214 |
2025-01-22 Arnold D. Robbins <[email protected]> |
| 215 |
|
| 216 |
* configure.ac: Add hack if GCC to use -O3 instead of -O2. |
| 217 |
|
| 218 |
Unrelated: |
| 219 |
|
| 220 |
* builtin.c (call_sub, call_split_func): Handle the case of |
| 221 |
the function name being preceded by awk::. |
| 222 |
Thanks to Denis Shirokov <[email protected]> for the reports. |
| 223 |
|
| 224 |
2025-01-20 Arnold D. Robbins <[email protected]> |
| 225 |
|
| 226 |
* TODO: Add item about variable line number and filename |
| 227 |
definition point. |
| 228 |
|
| 229 |
2025-01-07 Arnold D. Robbins <[email protected]> |
| 230 |
|
| 231 |
Thanks to Cristian Ioneci <[email protected]> for the |
| 232 |
report and test case and fixes for these. |
| 233 |
|
| 234 |
* builtin.c (do_isarray): Handle Node_param_list also. |
| 235 |
(do_typeof): Additional checking for passed-in array. |
| 236 |
|
| 237 |
2025-01-06 Arnold D. Robbins <[email protected]> |
| 238 |
|
| 239 |
* builtin.c (do_typeof): Handle Node_param_list. Thanks to |
| 240 |
Thanks to Denis Shirokov <[email protected]> for the report and |
| 241 |
test case. |
| 242 |
|
| 243 |
2025-01-02 Arnold D. Robbins <[email protected]> |
| 244 |
|
| 245 |
* NEWS: Updated. Copyright year updated, too. |
| 246 |
|
| 247 |
2024-12-15 Arnold D. Robbins <[email protected]> |
| 248 |
|
| 249 |
* awk.h (emalloc, erealloc, ezalloc): Move to using __func__ |
| 250 |
instead of requiring the function name as a string in the |
| 251 |
source code. |
| 252 |
* All source files: Updated all uses. |
| 253 |
|
| 254 |
2024-12-11 Arnold D. Robbins <[email protected]> |
| 255 |
|
| 256 |
* awk.h: Remove accidentally left-over Tandem bits. |
| 257 |
|
| 258 |
2024-10-17 Paul Eggert <[email protected]> |
| 259 |
|
| 260 |
* floatcomp.c (adjust_uint): Add commentary. |
| 261 |
|
| 262 |
2024-10-13 Arnold D. Robbins <[email protected]> |
| 263 |
|
| 264 |
* NEWS: Updated. |
| 265 |
|
| 266 |
2024-10-10 Arnold D. Robbins <[email protected]> |
| 267 |
|
| 268 |
Check if RE match at end of string could be an exact |
| 269 |
match. This is true if the maybe_long flag is false. |
| 270 |
Thanks to Ronald D. Rechenmacher <[email protected]> for |
| 271 |
the idea. |
| 272 |
|
| 273 |
* io.c (rsrescan): Add an additional check when the |
| 274 |
match is exactly at the end. |
| 275 |
* re.c (make_regexp): Add backslash to the list of |
| 276 |
characters which sets the maybe_long field. |
| 277 |
|
| 278 |
2024-09-25 Arnold D. Robbins <[email protected]> |
| 279 |
|
| 280 |
Clean up spurious newlines in pretty printer output. |
| 281 |
Thanks to John Devin <[email protected]> for the |
| 282 |
motivation. |
| 283 |
|
| 284 |
* awk.h (close_prof_file): New function. |
| 285 |
* main.c (main): All close_prof_file. |
| 286 |
* profile.c (close_prof_file): New function. |
| 287 |
(at_start): New variable. |
| 288 |
(pprint, print_lib_list, print_include_list, print_comment, |
| 289 |
pp_func, pp_namespace): Use it. |
| 290 |
|
| 291 |
2024-09-19 Arnold D. Robbins <[email protected]> |
| 292 |
|
| 293 |
* array.c (do_delete): Handle case where subscript is Node_elem_new. |
| 294 |
Thanks to Denis Shirokov <[email protected]> for the report and |
| 295 |
test case. |
| 296 |
|
| 297 |
2024-09-17 Arnold D. Robbins <[email protected]> |
| 298 |
|
| 299 |
* 5.3.1: Release tar made. |
| 300 |
|
| 301 |
2024-09-17 Arnold D. Robbins <[email protected]> |
| 302 |
|
| 303 |
* Makefile.am, awkgram.y, command.y, debug.c, eval.c, |
| 304 |
gawkapi.c, interpret.h, mpfr.c: Update copyright year. |
| 305 |
* Checklist: Updated a bit. |
| 306 |
* NEWS: Version changed. |
| 307 |
* configure.ac: Bump version. |
| 308 |
|
| 309 |
2024-09-04 Arnold D. Robbins <[email protected]> |
| 310 |
|
| 311 |
* Checklist: Add two more items to do. |
| 312 |
|
| 313 |
2024-08-16 Arnold D. Robbins <[email protected]> |
| 314 |
|
| 315 |
* printf.c (zero_fill_to_precision): Fix calculation of buflen. |
| 316 |
Thanks and a tip of the hatlo to Address Sanitizer. |
| 317 |
|
| 318 |
2024-08-12 Arnold D. Robbins <[email protected]> |
| 319 |
|
| 320 |
* awkgram.y (push_ns_onto_namespace_chain): New function. |
| 321 |
(mk_function, set_namespace): Use it. |
| 322 |
|
| 323 |
2024-08-12 Arnold D. Robbins <[email protected]> |
| 324 |
|
| 325 |
Fix some C23 compilation issues. Thanks to |
| 326 |
Jeffrey Cliff <[email protected]> for the report. |
| 327 |
|
| 328 |
* awkgram.y (get_src_buf): Remove obsolete comment. |
| 329 |
* io.c (iop_alloc, get_read_timeout): Fix casts for read. |
| 330 |
|
| 331 |
2024-08-11 John E. Malmberg <[email protected]> |
| 332 |
|
| 333 |
* printf.c (format_mpg_integer_digits): Improved fix |
| 334 |
from Arnold for if !HAVE_MPFR. |
| 335 |
|
| 336 |
2024-08-11 John E. Malmberg <[email protected]> |
| 337 |
|
| 338 |
* printf.c (format_float): Fix cant_happen macro call. |
| 339 |
(format_mpg_integer_digits): Return NULL if !HAVE_MPFR. |
| 340 |
|
| 341 |
2024-08-10 Arnold D. Robbins <[email protected]> |
| 342 |
|
| 343 |
Thanks again to Michal Jaegermann for tips on removing |
| 344 |
compiler warnings: |
| 345 |
|
| 346 |
* eval.c (cmp_scalars): Default ret to false and add a |
| 347 |
default case to the switch. |
| 348 |
|
| 349 |
2024-08-09 Arnold D. Robbins <[email protected]> |
| 350 |
|
| 351 |
Thanks to Michal Jaegermann for tips on removing |
| 352 |
compiler warnings: |
| 353 |
|
| 354 |
* eval.c (opcode2str): Return "" instead of NULL. |
| 355 |
(cmp_doubles): Default ret to false and add a default case |
| 356 |
to the switch. |
| 357 |
* printf.c (format_signed_integer): Add some additional |
| 358 |
parentheses. |
| 359 |
|
| 360 |
2024-08-06 Arnold D. Robbins <[email protected]> |
| 361 |
|
| 362 |
* printf.c (format_unsigned_integer, format_signed_integer): |
| 363 |
Additional fixes. New added tests pass. |
| 364 |
|
| 365 |
2024-07-26 Arnold D. Robbins <[email protected]> |
| 366 |
|
| 367 |
* re.c (check_bracket_exp): Make the code actually work. |
| 368 |
|
| 369 |
2024-07-23 Arnold D. Robbins <[email protected]> |
| 370 |
|
| 371 |
Finish cleaning up the printf refactoring. All tests run, both |
| 372 |
regular and -M. Test suite is valgrind clean! |
| 373 |
|
| 374 |
Summary of changes: |
| 375 |
* printf.c: New file. |
| 376 |
(format_args): Moved here and renamed from format_tree. Considerably |
| 377 |
simplified by moving code out into new routines. |
| 378 |
(struct flags): New struct. |
| 379 |
(add_thousands, do_printf, do_sprintf, format_nan_inf, mbc_byte_count, |
| 380 |
mbc_char_count, out_of_range, printf_common, reverse): Moved to here. |
| 381 |
(add_alt_format, add_plus_or_space_and_fill, adjust_flags, compute_zero_flag, |
| 382 |
fill_to_field_width, format_float, format_integer_digits, |
| 383 |
format_mpg_integer_digits, format_out_of_range, format_signed_integer, |
| 384 |
format_unsigned_integer, zero_fill_to_precision): New routines. |
| 385 |
|
| 386 |
2024-07-21 Arnold D. Robbins <[email protected]> |
| 387 |
|
| 388 |
* printf.c: Simplify printing of signed integers; move several |
| 389 |
common tasks out into separate routines, and use char * instead |
| 390 |
of const char * to avoid a lot of casting. |
| 391 |
|
| 392 |
2024-07-20 Tim Rice <[email protected]> |
| 393 |
|
| 394 |
* io.c (csvscan): Set the sentinel if we found CR-LF. |
| 395 |
|
| 396 |
2024-07-20 Arnold D. Robbins <[email protected]> |
| 397 |
|
| 398 |
* printf.c: Continuing fixes and cleanups. |
| 399 |
|
| 400 |
2024-07-17 Arnold D. Robbins <[email protected]> |
| 401 |
|
| 402 |
* NEWS: Updated. |
| 403 |
* printf.c (fill_to_field_width): New function. |
| 404 |
(format_out_of_range, format_unsigned_integer): Start to use it. |
| 405 |
|
| 406 |
2024-07-16 Arnold D. Robbins <[email protected]> |
| 407 |
|
| 408 |
* printf.c: Continue cleaning up code and removing now-dead code. |
| 409 |
|
| 410 |
2024-07-16 Arnold D. Robbins <[email protected]> |
| 411 |
|
| 412 |
* awk.h (format_args): Renamed from format_tree. Remove |
| 413 |
format_tree_old. |
| 414 |
* debug.c, main.c, mpfr.c, node.c: Adjusted. |
| 415 |
* printf.c (format_args): Renamed. Removed all old, factored-out |
| 416 |
code. |
| 417 |
(format_tree_old): Removed. |
| 418 |
|
| 419 |
2024-07-16 Arnold D. Robbins <[email protected]> |
| 420 |
|
| 421 |
* printf.c: Use mpfr_sprintf() just to generate digits. |
| 422 |
All tests now passing, even with -M. |
| 423 |
|
| 424 |
2024-07-13 Arnold D. Robbins <[email protected]> |
| 425 |
|
| 426 |
* printf.c: Continued progress against the printf-corners test. |
| 427 |
|
| 428 |
2024-07-11 Arnold D. Robbins <[email protected]> |
| 429 |
|
| 430 |
* printf.c: Signed and unsigned integer printing and float printing |
| 431 |
working for current tests. MPFR integer printing also for current |
| 432 |
tests. A few tests still to go in printf-corners. |
| 433 |
|
| 434 |
2024-07-09 Arnold D. Robbins <[email protected]> |
| 435 |
|
| 436 |
* printf.c: Signed printing I think is working. Unsigned is better. |
| 437 |
Checkpoint commit. |
| 438 |
|
| 439 |
2024-07-07 Arnold D. Robbins <[email protected]> |
| 440 |
|
| 441 |
* printf.c: Signed and unsigned integer printing mostly working now. |
| 442 |
Still to go: Finish that up, get GMP/MPFR integer printing working. |
| 443 |
|
| 444 |
2024-07-05 Arnold D. Robbins <[email protected]> |
| 445 |
|
| 446 |
* printf.c: Lots of cleanup. Floating point format pretty |
| 447 |
much working. Signed integer printing getting there. |
| 448 |
Unsigned integer printing still to do. |
| 449 |
|
| 450 |
2024-07-02 Arnold D. Robbins <[email protected]> |
| 451 |
|
| 452 |
* awk.h (format_tree_new, format_tree_old): Add declarations. |
| 453 |
(format_tree): Temporarily make into a function. |
| 454 |
* main.c (format_tree): Declare it. |
| 455 |
(main): Check PRINTF_NEW environment variable and if so, |
| 456 |
use the new version. Otherwise use the old one. |
| 457 |
* printf.c (struct flags): Declare. |
| 458 |
(format_tree_old): The original version. |
| 459 |
(format_tree_new): The new one, being refactored. |
| 460 |
(add_thousands): Use the global `loc' variable, not a parameter. |
| 461 |
static const char *format_integer(NODE *arg, struct flags *flags); |
| 462 |
(format_mpg_integer, format_float, format_out_of_range, |
| 463 |
compute_zero_flag): New functions. |
| 464 |
|
| 465 |
2024-07-02 Arnold D. Robbins <[email protected]> |
| 466 |
|
| 467 |
* re.c (make_regexp): \u escapes also now treated literally |
| 468 |
for do_traditional. |
| 469 |
|
| 470 |
2024-06-26 Arnold D. Robbins <[email protected]> |
| 471 |
|
| 472 |
Start on printf rework. |
| 473 |
|
| 474 |
* printf.c: New file, with stuff for printf in it. |
| 475 |
* builtin.c: Move printf functions into printf.c. |
| 476 |
* awk.h (efwrite): Add declaration. |
| 477 |
* Makefile.am (base_source): Added printf.c. |
| 478 |
|
| 479 |
2024-06-21 Arnold D. Robbins <[email protected]> |
| 480 |
|
| 481 |
* io.c (csvscan): Add a missing buffer overrun check. Restores |
| 482 |
`AwKBUFSIZE=42 make check' to passing. :-) |
| 483 |
|
| 484 |
2024-06-16 Arnold D. Robbins <[email protected]> |
| 485 |
|
| 486 |
* interpret.h (r_interpret): Op_push: When converting a |
| 487 |
Node_elem_new into a Node_var, clear the MPFN and MPZN flags. |
| 488 |
Allows the test suite to run again with -M. |
| 489 |
|
| 490 |
2024-06-10 Arnold D. Robbins <[email protected]> |
| 491 |
|
| 492 |
* main.c (nostalgia): Remved function. |
| 493 |
[COPYRIGHT_YEAR]: Bumped to 2024. |
| 494 |
(main): Removed --nostalgia from options and from handling. |
| 495 |
* NEWS: Updated. |
| 496 |
|
| 497 |
2024-06-08 Arnold D. Robbins <[email protected]> |
| 498 |
|
| 499 |
* io.c: Remove check for OSF/1. It's too obsolete now. |
| 500 |
|
| 501 |
2024-06-05 Arnold D. Robbins <[email protected]> |
| 502 |
|
| 503 |
* io.c: Fix a comment typo for enum recvalues. |
| 504 |
|
| 505 |
2024-06-03 Arnold D. Robbins <[email protected]> |
| 506 |
|
| 507 |
* awk.h [USE_REAL_MALLOC]: Define this so that emalloc() and friends |
| 508 |
use the real routines. For memory debugging. |
| 509 |
* configure.ac: Enable USE_REAL_MALLOC if 'mallocdebug' is in |
| 510 |
.developing. Add debug to .y files if 'yaccdebug' is in |
| 511 |
.developing. Use '^...$' in grep test for all tests from |
| 512 |
the .developing file. |
| 513 |
|
| 514 |
2024-05-19 Arnold D. Robbins <[email protected]> |
| 515 |
|
| 516 |
* awkgram.c: Updated. |
| 517 |
* builtin.c (gawk_system): Remove an unused variable. |
| 518 |
* io.c (gawk_popen_write): Ditto. |
| 519 |
|
| 520 |
2024-05-18 Arnold D. Robbins <[email protected]> |
| 521 |
|
| 522 |
* awkgram.y (check_params): Make the message about not allowing |
| 523 |
reseved variables as parameters explicit that this is from POSIX. |
| 524 |
|
| 525 |
2024-04-28 Arnold D. Robbins <[email protected]> |
| 526 |
|
| 527 |
* re.c: Update copyright year. |
| 528 |
|
| 529 |
2024-04-20 Arnold D. Robbins <[email protected]> |
| 530 |
|
| 531 |
* eval.c (cmp_scalars): Call fixtype() on the values before |
| 532 |
trying to compare them. Thanks to Ed Morton for the bug |
| 533 |
report. See test/strsubscript.awk for the test case. |
| 534 |
|
| 535 |
2024-02-29 Arnold D. Robbins <[email protected]> |
| 536 |
|
| 537 |
* re.c (do_sub): Fix arguments in call to SUBPATSTART(). |
| 538 |
|
| 539 |
2024-02-23 Arnold D. Robbins <[email protected]> |
| 540 |
|
| 541 |
Another attempt to fix the race conditions on SIGPIPE. See |
| 542 |
https://lists.gnu.org/archive/html/bug-gawk/2023-12/msg00011.html. |
| 543 |
|
| 544 |
* awk.h (do_nothing_on_signal): Remove declaration. |
| 545 |
(wait_any): Add declaration. |
| 546 |
* builtin.c (gawk_system): New function. |
| 547 |
(do_system): Call it. |
| 548 |
* io.c (wait_any): Make extern, not static. |
| 549 |
(gawk_popen_write, gawk_popen_write_close): New functions. |
| 550 |
(redirect_string): Call gawk_popen_write. |
| 551 |
(close_rp): Call gawk_popen_write_close. |
| 552 |
(do_nothing_on_signal): Removed. |
| 553 |
(getdtablesize): Define as a macro if needed. |
| 554 |
* configure.ac: Add check for getdtablesize. |
| 555 |
|
| 556 |
* awk.h, builtin.c, io.c, node.c, gawkapi.h, configure.ac: Updated |
| 557 |
copyright years also. |
| 558 |
|
| 559 |
2024-02-01 Arnold D. Robbins <[email protected]> |
| 560 |
|
| 561 |
* .gitignore: Ignore .dirstamp files. Thanks to "M" |
| 562 |
<[email protected]> for the suggestion. |
| 563 |
|
| 564 |
2024-01-28 Arnold D. Robbins <[email protected]> |
| 565 |
|
| 566 |
* node.c (str2wstr): Always allocate the array for use |
| 567 |
by do_match(). Bug reported by Sam James <[email protected]>. |
| 568 |
Thanks to Miguel Pineiro Jr. <[email protected]> for the |
| 569 |
simplified test case. |
| 570 |
|
| 571 |
2024-01-20 Arnold D. Robbins <[email protected]> |
| 572 |
|
| 573 |
* configure.ac: MPFR on 32 bit Power PC is back |
| 574 |
to working. Remove the check that disables it. |
| 575 |
* NEWS: Updated. |
| 576 |
|
| 577 |
2024-01-16 Andrew J. Schorr <[email protected]> |
| 578 |
|
| 579 |
* gawkapi.h: Add a comment suggesting that do_flags be converted |
| 580 |
to a bitmask if we ever need to add another value, since the current |
| 581 |
approach breaks ABI compatibility for each new flag. |
| 582 |
|
| 583 |
2024-01-12 Arnold D. Robbins <[email protected]> |
| 584 |
|
| 585 |
Use newer interfaces for getting the time if they're available. |
| 586 |
Thanks to Andreas Schwab <[email protected]> and Andrew Schorr. |
| 587 |
|
| 588 |
* builtin.c (do_systime): Use clock_gettime() or gettimeofday() or |
| 589 |
time(), in that order. |
| 590 |
* configure.ac: Add checks for clock_gettime() and gettimeofday(). |
| 591 |
|
| 592 |
2023-12-26 Arnold D. Robbins <[email protected]> |
| 593 |
|
| 594 |
* gawkapi.c (api_get_argument): Sync handling of AWK_UNDEFINED |
| 595 |
with the doc. |
| 596 |
(node_to_awk_value): Similar. |
| 597 |
|
| 598 |
2023-12-25 Arnold D. Robbins <[email protected]> |
| 599 |
|
| 600 |
* debug.c (serialize_list): Fix a compiler warning about |
| 601 |
an unused variable. |
| 602 |
|
| 603 |
2024-12-25 Andrew J. Schorr <[email protected]> |
| 604 |
|
| 605 |
* io.c (get_read_timeout): Make gawk match the doc and have |
| 606 |
GAWK_READ_TIMEOUT work if no entry in PROCINFO. Thanks |
| 607 |
to Ed Morton for the report. |
| 608 |
|
| 609 |
2023-12-24 Arnold D. Robbins <[email protected]> |
| 610 |
|
| 611 |
* debug.c (print_array): Use the subscript as the |
| 612 |
subarray name instead of the `vname' field. This field |
| 613 |
is not there for arrays created with NUMINT subscripts. |
| 614 |
Thanks again to Hermann Peifer for the report. |
| 615 |
|
| 616 |
Unrelated: |
| 617 |
|
| 618 |
* debug.c (find_subscript): Fail early on Node_var_new |
| 619 |
and Node_elem_new. Thanks yet again to Hermann Peifer |
| 620 |
for the report. |
| 621 |
|
| 622 |
2023-12-21 Arnold D. Robbins <[email protected]> |
| 623 |
|
| 624 |
Fix multidimensional array printing in the debugger, again. |
| 625 |
Thanks again to Hermann Peifer for the report. |
| 626 |
|
| 627 |
* debug.c (print_array): Maintain a stack of array names |
| 628 |
and indexes, and print it when printing the value. |
| 629 |
(print_array_names): New function. |
| 630 |
|
| 631 |
2023-12-21 Arnold D. Robbins <[email protected]> |
| 632 |
|
| 633 |
Try to close a race condition window on SIGPIPE. See the thread at |
| 634 |
https://lists.gnu.org/archive/html/bug-gawk/2023-12/msg00011.html. |
| 635 |
Thanks to Andreas Schwab <[email protected]>. |
| 636 |
|
| 637 |
* awk.h (ignore_sigpipe, set_sigpipe_to_default): Remove decls, |
| 638 |
they're not functions. |
| 639 |
(do_nothing_on_signal): Add declaration. |
| 640 |
(silent_catch_sigpipe): New macro. |
| 641 |
* builtin.c (do_system): Replace call of set_sigpipe_to_default() |
| 642 |
with call to silent_catch_sigpipe(). |
| 643 |
* io.c (redirect_string, gawk_popen): Ditto. |
| 644 |
(do_nothing_on_signal): New function. |
| 645 |
|
| 646 |
2023-12-12 Eli Zaretskii <[email protected]> |
| 647 |
|
| 648 |
* io.c (redirect_string): Check registered parsers before failing |
| 649 |
due to EISDIR. |
| 650 |
|
| 651 |
2023-12-02 Arnold D. Robbins <[email protected]> |
| 652 |
|
| 653 |
* debug.c (print_array): Fix printing of multidimensional arrays. |
| 654 |
Thanks to Hermann Peifer for the report. |
| 655 |
|
| 656 |
2023-11-28 Arnold D. Robbins <[email protected]> |
| 657 |
|
| 658 |
Straighten out Node_elem_new some more. Thanks to "M" |
| 659 |
<[email protected]> for the report and to Andrew Schorr for |
| 660 |
the reduced test case. |
| 661 |
|
| 662 |
* awk.h (force_string_fmt): Don't clear NUMBER from the flags. |
| 663 |
(force_number): Handle Node_elem_new case. (Ooops.) |
| 664 |
* builtin.c (do_typeof): Make unassigned case check smarter. |
| 665 |
* mpfr.c (mpg_force_number): Don't clear STRING and don't |
| 666 |
change the string value. |
| 667 |
* node.c (r_force_number): Ditto. |
| 668 |
|
| 669 |
2023-11-20 Arnold D. Robbins <[email protected]> |
| 670 |
|
| 671 |
* command.y (yylex): Change _("%s") into "%s". Sheesh. |
| 672 |
|
| 673 |
2023-11-16 Arnold D. Robbins <[email protected]> |
| 674 |
|
| 675 |
* eval.c (cmp_scalars): Check for REGEX as well as STRING |
| 676 |
in order to do a string compare. Thanks to |
| 677 |
"*" <[email protected]> for the report. |
| 678 |
|
| 679 |
2023-11-04 Arnold D. Robbins <[email protected]> |
| 680 |
|
| 681 |
* NEWS: Fix the spelling of "Ukrainian". Thanks to |
| 682 |
Bruce Horrocks. |
| 683 |
|
| 684 |
2023-11-02 Arnold D. Robbins <[email protected]> |
| 685 |
|
| 686 |
* 5.3.0: Release tar ball made. |
| 687 |
|
| 688 |
2023-10-31 Corinna Vinschen <[email protected]> |
| 689 |
|
| 690 |
* awk.h (wcitomb): Add declaration. |
| 691 |
* node.c (parse_escape): Use it on Cygwin. |
| 692 |
|
| 693 |
2023-10-24 Arnold D. Robbins <[email protected]> |
| 694 |
|
| 695 |
* eval.c (setup_frame): Fix a potential use after free |
| 696 |
error. Thanks to Michal Jaegermann for the report. |
| 697 |
|
| 698 |
2023-10-23 Arnold D. Robbins <[email protected]> |
| 699 |
|
| 700 |
* builtin.c (do_sub): Fix a use-after-free issue reported |
| 701 |
by Miguel Pineiro Jr. <[email protected]>. |
| 702 |
|
| 703 |
2023-10-22 Arnold D. Robbins <[email protected]> |
| 704 |
|
| 705 |
* nonposix.h, re.c: Update coyright year. |
| 706 |
|
| 707 |
2023-10-21 Arnold D. Robbins <[email protected]> |
| 708 |
|
| 709 |
* main.c (parse_args): Deal better with things if -p |
| 710 |
given twice. Thanks to Hermann Peifer for the report. |
| 711 |
* Checklist: Revised a bit. |
| 712 |
* awkgram.y (isnoeffect): Add Op_exec_count to the list so |
| 713 |
that `gawk --lint --profile BEGIN{0}' also produces a lint |
| 714 |
warning. Thanks yet again to Hermann Peifer. |
| 715 |
|
| 716 |
2023-10-19 Arnold D. Robbins <[email protected]> |
| 717 |
|
| 718 |
* NEWS: Updated. |
| 719 |
* README: Version bumped to 5.3.0. Updated info about makeinfo |
| 720 |
and texinfo.tex versions. |
| 721 |
|
| 722 |
2023-10-17 Arnold D. Robbins <[email protected]> |
| 723 |
|
| 724 |
* re.c (make_regexp): Fix setting ok_to_escape. |
| 725 |
|
| 726 |
2023-10-15 Arnold D. Robbins <[email protected]> |
| 727 |
|
| 728 |
* NEWS: Editing, in preparation for release. |
| 729 |
|
| 730 |
2023-10-12 Eli Zaretskii <[email protected]> |
| 731 |
|
| 732 |
* node.c (parse_escape) [__MINGW32__]: Use w32_wc_to_lc to convert |
| 733 |
Unicode codepoints. |
| 734 |
|
| 735 |
* nonposix.h (w32_wc_to_lc) [__MINGW32__]: Add prototype. |
| 736 |
|
| 737 |
2023-10-08 Arnold D. Robbins <[email protected]> |
| 738 |
|
| 739 |
* node.c (parse_escape): Fix warning message for \u escape. |
| 740 |
* interpret.h (Op_lint_plus): Improve the test, especially |
| 741 |
for if dealing with user intput. Thanks to Hermann Peifer |
| 742 |
for the report. |
| 743 |
|
| 744 |
2023-10-03 Arnold D. Robbins <[email protected]> |
| 745 |
|
| 746 |
* profile.c (pprint): Add case for Op_lint_plus. Thanks to |
| 747 |
Hermann Peifer for the report. |
| 748 |
|
| 749 |
2023-09-19 Arnold D. Robbins <[email protected]> |
| 750 |
|
| 751 |
* NEWS: Updated. |
| 752 |
|
| 753 |
2023-09-13 Arnold D. Robbins <[email protected]> |
| 754 |
|
| 755 |
Fix handling of zero length matching in multibyte locales |
| 756 |
with sub/gsub. Thanks again to Ed Morton for the report. |
| 757 |
|
| 758 |
* builtin.c (do_sub): When the match is empty and we copy in |
| 759 |
the subsequent character, check gawk_mb_cur_max to know whether |
| 760 |
to copy one byte or multiple bytes. |
| 761 |
|
| 762 |
2023-09-11 Arnold D. Robbins <[email protected]> |
| 763 |
|
| 764 |
* field.c (do_split): Fix some whitespace. |
| 765 |
|
| 766 |
Unrelated: Add do_csv variable to the API. |
| 767 |
|
| 768 |
* gawkapi.h: Bump major version to 4, minor version back to zero. |
| 769 |
(DO_FLAGS_SIZE): Increase to 7. |
| 770 |
(gawk_do_csv, do_csv): New macros. |
| 771 |
* gawkapi.c (init_ext_api): Init the do_csv element. Replace |
| 772 |
numeric indices with symbolic ones. |
| 773 |
* NEWS: Updated for do_csv in the API, and the major and |
| 774 |
minor API versions. |
| 775 |
|
| 776 |
2023-09-01 Miguel Pineiro Jr <[email protected]> |
| 777 |
|
| 778 |
Fix the handling of zero-length matches in multibyte locales. |
| 779 |
Thanks to Ed Morton <[email protected]> for the report. |
| 780 |
|
| 781 |
* builtin.c (do_match): Translate rstart (byte idx to char idx) |
| 782 |
even when rlength is zero. For this we tweak the conversion of |
| 783 |
rlength to keep it in bounds when rstart and rlength are both 0. |
| 784 |
* node.c (str2wstr): Add an entry to the indices array for the |
| 785 |
terminating null. It facilitates the tweak above and is needed |
| 786 |
to translate the idx of a zero-width match at the end of the |
| 787 |
string. |
| 788 |
|
| 789 |
2023-08-27 Arnold D. Robbins <[email protected]> |
| 790 |
|
| 791 |
* re.c (make_regexp): When do_traditional and looking to see |
| 792 |
if an escape created a metacharacter, use `metas' instead of |
| 793 |
a separate string, since BWK awk now also handles interval |
| 794 |
expressions. Found by inspection. |
| 795 |
|
| 796 |
2023-08-25 Miguel Pineiro Jr <[email protected]> |
| 797 |
|
| 798 |
* awk.h (enum escape_results): Fix ESCAPE_LINE_CONINUATION typo. |
| 799 |
* node.c (make_str_node): Ditto. |
| 800 |
* (parse_escape): Ditto. |
| 801 |
* re.c (make_regexp): Ditto. |
| 802 |
|
| 803 |
Unrelated: Use size_t for multibyte character lengths (aside |
| 804 |
from it being the type which the interfaces return, using it |
| 805 |
avoids implementation-defined behavior when -1 or -2 is cast |
| 806 |
to size_t then stored in an int). |
| 807 |
|
| 808 |
* node.c (make_str_node): Change mblen from int to size_t. |
| 809 |
|
| 810 |
Unrelated: Change the length of a translated escape sequence |
| 811 |
from int to size_t (to match the underlying interfaces). |
| 812 |
|
| 813 |
* awk.h (parse_escape): Change prototype. |
| 814 |
* node.c (make_str_node): Adjust to accomodate new type. |
| 815 |
* (parse_escape): Ditto. |
| 816 |
* re.c (make_regexp): Ditto. |
| 817 |
|
| 818 |
Unrelated: Clarify make_regexp, inspired by make_str_node. |
| 819 |
|
| 820 |
* re.c (make_regexp): Copy multibyte characters at once, move |
| 821 |
the escape sequence post-processing into the switch statement |
| 822 |
to explicitly connect a return value with its handling, add a |
| 823 |
default case to catch unrecognized values, and move ok_to_escape |
| 824 |
next to where it's used (and only set it once). |
| 825 |
|
| 826 |
2023-08-21 Arnold D. Robbins <[email protected]> |
| 827 |
|
| 828 |
* node.c (make_str_node): Don't use N_() in cant_happen message. |
| 829 |
* re.c (make_regexp): Ditto. |
| 830 |
|
| 831 |
2023-08-20 Arnold D. Robbins <[email protected]> |
| 832 |
|
| 833 |
Change parse_escape() to return an enum instead of relying |
| 834 |
on manifest constants. |
| 835 |
|
| 836 |
* awk.h (enum escape_results): New enum. |
| 837 |
(parse_escape): Now returns a value from it, add nbytes pointer |
| 838 |
parameter. |
| 839 |
* node.c (make_str_node): Revised to use switch/case on |
| 840 |
parse_escape return value. |
| 841 |
(parse_escape): Update code. |
| 842 |
* re.c (make_regexp): Revised to use switch/case on parse_escape |
| 843 |
return value. |
| 844 |
|
| 845 |
2023-08-20 Miguel Pineiro Jr <[email protected]> |
| 846 |
|
| 847 |
* awk.h (ELIDE_BACK_NL): Removed. |
| 848 |
(parse_escape): Update declaration. |
| 849 |
* main.c (cmdline_fs): Don't use ELIDE_BACK_NL. |
| 850 |
(arg_assign): Ditto. |
| 851 |
* node.c (make_str_node): Rework handling of return value |
| 852 |
from parse_escape. |
| 853 |
(parse_escape): Change return code to convey more info, |
| 854 |
fully parse escapes and handle conversion from unicode to |
| 855 |
UTF-8. |
| 856 |
* re.c (make_regexp): Rework for new interface to parse_escape. |
| 857 |
|
| 858 |
2023-07-09 Arnold D. Robbins <[email protected]> |
| 859 |
|
| 860 |
* re.c (make_regexp): In error message, use the original text |
| 861 |
directly as a string and not with calculated length. Thanks |
| 862 |
to Neil R. Ormos <[email protected]> for the report. |
| 863 |
|
| 864 |
2023-06-27 Arnold D. Robbins <[email protected]> |
| 865 |
|
| 866 |
* NEWS: Updated. |
| 867 |
|
| 868 |
2023-06-22 Arnold D. Robbins <[email protected]> |
| 869 |
|
| 870 |
* field.c (comma_parse_field): Don't set the field if len |
| 871 |
is zero. Kudos to BWK's awk for finding this gawk bug. |
| 872 |
|
| 873 |
2023-06-12 Arnold D. Robbins <[email protected]> |
| 874 |
|
| 875 |
* main.c (cmdline_fs): Add ELIDE_BACK_NL to flags in call |
| 876 |
to make_str_node(). Fixes weirdness with -F. Thanks to |
| 877 |
Denys Vlasenko <[email protected]> for the report. |
| 878 |
|
| 879 |
2023-06-04 Arnold D. Robbins <[email protected]> |
| 880 |
|
| 881 |
* builtin.c (do_sub): Fix a Day 1 gensub bug, reported by |
| 882 |
Denys Vlasenko <[email protected]>. |
| 883 |
|
| 884 |
2023-06-02 Arnold D. Robbins <[email protected]> |
| 885 |
|
| 886 |
* NEWS: Updated. |
| 887 |
|
| 888 |
2023-05-07 Arnold D. Robbins <[email protected]> |
| 889 |
|
| 890 |
* 5.2.2: Release tar ball made. |
| 891 |
|
| 892 |
2023-05-07 Arnold D. Robbins <[email protected]> |
| 893 |
|
| 894 |
* README: Update version. |
| 895 |
* debug.c: Update copyright year. |
| 896 |
|
| 897 |
2023-04-22 Arnold D. Robbins <[email protected]> |
| 898 |
|
| 899 |
* awkgram.y, builtin.c, debug.c, eval.c, interpret.h, |
| 900 |
profile.c: Fix some implicit fall through warnings. |
| 901 |
Thanks to "Jannick" <[email protected]> for the report. |
| 902 |
|
| 903 |
2023-04-21 Arnold D. Robbins <[email protected]> |
| 904 |
|
| 905 |
* array.c (asort_actual): Initialize `value' to avoid |
| 906 |
compiler complaints. Thanks to Michal Jaegermann |
| 907 |
for the report. |
| 908 |
* main.c (usage): Cast array subscript to int to silence |
| 909 |
a compiler warning. Thanks to "Jannick" <[email protected]> |
| 910 |
for the report. |
| 911 |
|
| 912 |
2023-04-14 Arnold D. Robbins <[email protected]> |
| 913 |
|
| 914 |
* array.c (asort_actual): Handle Node_elem_new. Add braces |
| 915 |
for scoping, fixes tcc compiler error (GCC is too permissive!). |
| 916 |
Update copyright year. |
| 917 |
* Makefile.am, configure.ac, awk.h, agwkgram.y, builtin.c, |
| 918 |
command.y, eval.c, field.c, io.c, msg.c, node.c, profile.c, |
| 919 |
symbol.c: Update copyright year. |
| 920 |
|
| 921 |
2023-04-13 Arnold D. Robbins <[email protected]> |
| 922 |
|
| 923 |
* array.c (asort_actual): Handle Node_var_new. Can happen |
| 924 |
if you sort SYMTAB. Thanks to zhou shuiqing |
| 925 |
<[email protected]> for the report. |
| 926 |
|
| 927 |
2023-04-13 Andrew J. Schorr <[email protected]> |
| 928 |
|
| 929 |
* io.c (csvscan): Convert CR-LF pairs to plain LF, both at the |
| 930 |
end of the line and when embedded. Plain CRs are not touched. |
| 931 |
|
| 932 |
2023-04-07 Andrew J. Schorr <[email protected]> |
| 933 |
|
| 934 |
* io.c (csvscan): Instead of stripping all carriage returns in the |
| 935 |
input, simply include the CR in the RT if it occurs just before |
| 936 |
the linefeed character. |
| 937 |
|
| 938 |
2023-04-07 Arnold D. Robbins <[email protected]> |
| 939 |
|
| 940 |
* array.c (assoc_info): Update to handle additional cases so |
| 941 |
that one may dump SYMTAB or FUNCTAB. Issue reported by |
| 942 |
zhou shuiqing <[email protected]>. |
| 943 |
|
| 944 |
2023-03-26 Arnold D. Robbins <[email protected]> |
| 945 |
|
| 946 |
* NEWS: Updated. |
| 947 |
|
| 948 |
2023-03-24 Arnold D. Robbins <[email protected]> |
| 949 |
|
| 950 |
Add support for \u escape sequence. |
| 951 |
|
| 952 |
* awk.h (parse_escaape): New bool* parameter for unicode. |
| 953 |
* node.c (make_str_node): Deal with a \u escape. |
| 954 |
(parse_escape): Handle \u. |
| 955 |
* re.c (make_regexp): Deal with a \u escape. |
| 956 |
|
| 957 |
2023-03-24 Arnold D. Robbins <[email protected]> |
| 958 |
|
| 959 |
* io.c (set_RS): Fix first time and warning logic for csv mode. |
| 960 |
|
| 961 |
2023-03-23 Arnold D. Robbins <[email protected]> |
| 962 |
|
| 963 |
* io.c (csvscan): Strip CRs. |
| 964 |
|
| 965 |
2023-03-21 Manuel Collado <[email protected]> |
| 966 |
|
| 967 |
* io.c (csvscan): Real implementation. |
| 968 |
|
| 969 |
2023-03-18 Miguel Pineiro Jr. <[email protected]> |
| 970 |
|
| 971 |
Allow records longer than INT_MAX. For test cases, |
| 972 |
see https://lists.gnu.org/archive/html/bug-gawk/2021-05/msg00003.html. |
| 973 |
|
| 974 |
* awk.h (set_record): `cnt' is now size_t. |
| 975 |
* field.c (set_record): `cnt' is now size_t. Adjust databuf_size |
| 976 |
and MAX_SIZE macro. |
| 977 |
* io.c (get_a_record): Add new second parameter, size_t *len, |
| 978 |
which holds the size. Adjust return value meaning. Deal with |
| 979 |
return from an extension's get_a_record() function. |
| 980 |
(do_getline_redir): Adjust calling get_a_record(). |
| 981 |
(do_getline): Ditto. |
| 982 |
(inrec): Ditto. |
| 983 |
|
| 984 |
2023-03-17 Arnold D. Robbins <[email protected]> |
| 985 |
|
| 986 |
* field.c (do_split): Modify behavior for --csv. |
| 987 |
|
| 988 |
2023-03-16 Arnold D. Robbins <[email protected]> |
| 989 |
|
| 990 |
* awk.h (enum do_flag_values): Add DO_CSV. |
| 991 |
(do_csv): New macro. |
| 992 |
(init_csv_fields, init_csv_records): Add declarations. |
| 993 |
* field.c (init_csv_fields): New function. |
| 994 |
(set_parser): Don't set the parser if doing CSV. Add warnings. |
| 995 |
* io.c (csvscan): New function (placeholder for now). |
| 996 |
(init_csv_records): New function. |
| 997 |
(set_RS): Don't set the parser if doing CSV. Add warnings. |
| 998 |
* main.c (optab): Add new options -k/--csv. |
| 999 |
(main): Fatal out if --posix and --csv. Call init_csv_records() |
| 1000 |
and init_csv_fields(). |
| 1001 |
(usage): Add a line for the new options. |
| 1002 |
(load_procinfo): Install PROCINFO["CSV"] if doing CSV. |
| 1003 |
(parse_args): Update for new options. |
| 1004 |
|
| 1005 |
2023-03-09 Arnold D. Robbins <[email protected]> |
| 1006 |
|
| 1007 |
* gawkapi.h: Update copyright year. Small edit in leading comment. |
| 1008 |
|
| 1009 |
Unrelated: |
| 1010 |
|
| 1011 |
* NEWS: Updated. Update copyright year. |
| 1012 |
|
| 1013 |
2023-03-07 Arnold D. Robbins <[email protected]> |
| 1014 |
|
| 1015 |
* awkgram.y (optimize_assignment): Turn Op_store_field_exp |
| 1016 |
into Op_store_field. Add some explanatory comments. |
| 1017 |
|
| 1018 |
2023-03-02 Arnold D. Robbins <[email protected]> |
| 1019 |
|
| 1020 |
* interpret.h (r_interpret): Revert this change of 2023-01-23, |
| 1021 |
it's handled by the fix of 2023-02-27. |
| 1022 |
|
| 1023 |
| * interpret.h (r_interpret): Op_assign case, don't unref the |
| 1024 |
| old lhs NODE until after the assignment. See test case in |
| 1025 |
| the comment in the code and test/fieldassign.awk. Thanks to |
| 1026 |
| Yasuhiro Yamada <[email protected]> for the report. |
| 1027 |
|
| 1028 |
* gawkapi.h: Add a note at the top pointing to the online |
| 1029 |
documentation, warning that the header file's comments aren't |
| 1030 |
enough. Thanks to Eli Zaretskii <[email protected]> for the suggestion. |
| 1031 |
|
| 1032 |
2023-02-27 Arnold D. Robbins <[email protected]> |
| 1033 |
|
| 1034 |
* gawkmisc.c: Use #elif. Update copyright year. |
| 1035 |
|
| 1036 |
Unrelated: Fix handling of $a = $b so that it's done OK also in |
| 1037 |
expressions, and not just in statements. This fixes a memory |
| 1038 |
leak seen with valgrind in test/fieldassign.awk. |
| 1039 |
|
| 1040 |
* awk.h (enum opcodeval): Add new member, Op_store_field_exp. |
| 1041 |
* awkgram.y (mk_assignment): Generate Op_store_field_exp under the |
| 1042 |
right circumstances. |
| 1043 |
(optimize_assignment): Remove case for Op_field_spec_lhs. |
| 1044 |
* eval.c (optypes): Add entry for Op_store_field. |
| 1045 |
* interpret.h (r_interpret): Handle Op_store_field in the switch. |
| 1046 |
* profile.c (pprint): Same. |
| 1047 |
|
| 1048 |
Unrelated: Improve how information is passed to input parsers: |
| 1049 |
|
| 1050 |
* io.c (iop_alloc): lstat() or stat() the file if could not be opened. |
| 1051 |
See the doc for explanation as to why. |
| 1052 |
* NEWS: Updated. |
| 1053 |
|
| 1054 |
2023-02-26 Arnold D. Robbins <[email protected]> |
| 1055 |
|
| 1056 |
* Multiple files: Remove trailing whitespace. |
| 1057 |
|
| 1058 |
2023-02-24 Arnold D. Robbins <[email protected]> |
| 1059 |
|
| 1060 |
* field.c (set_comma_field): Free the string node. Fixes a |
| 1061 |
memory leak. Thanks to Andrew Schorr for the report. |
| 1062 |
|
| 1063 |
2023-02-24 Arnold D. Robbins <[email protected]> |
| 1064 |
|
| 1065 |
* awk.h (boolval): Handle Node_var. Thanks to |
| 1066 |
Daniel Pouzzner <[email protected]> for the report, relayed |
| 1067 |
by Andrew Schorr. |
| 1068 |
* builtin.c (do_typeof): Handle Node_var, could come from a |
| 1069 |
converted Node_elem_new. Thanks to Andrew Schorr for the |
| 1070 |
report. |
| 1071 |
|
| 1072 |
2023-02-23 Arnold D. Robbins <[email protected]> |
| 1073 |
|
| 1074 |
* io.c (find_input_parser): Improve check to see if iop is |
| 1075 |
already being handled by an input parser. Found by |
| 1076 |
code inspection. |
| 1077 |
|
| 1078 |
Unrelated: |
| 1079 |
|
| 1080 |
* awk.h (struct redirect): Change RED_NOBUF to RED_FLUSH. |
| 1081 |
* builtin.c (efwrite): Ditto |
| 1082 |
* io.c (redflags2str, check_duplicated_redirections, |
| 1083 |
redirect_string): Ditto. |
| 1084 |
|
| 1085 |
2023-02-12 Arnold D. Robbins <[email protected]> |
| 1086 |
|
| 1087 |
* NEWS: Updated. |
| 1088 |
|
| 1089 |
2023-02-10 Arnold D. Robbins <[email protected]> |
| 1090 |
|
| 1091 |
* io.c (avoid_flush): New function. |
| 1092 |
(redirect_string): Use it when setting up an output pipeline. |
| 1093 |
Thanks to Alexandre Ferrieux <[email protected]> |
| 1094 |
for pointing out the performance issue. |
| 1095 |
|
| 1096 |
2023-02-09 Arnold D. Robbins <[email protected]> |
| 1097 |
|
| 1098 |
* main.c (usage): Include URL for source code in the message. |
| 1099 |
|
| 1100 |
2023-02-05 Arnold D. Robbins <[email protected]> |
| 1101 |
|
| 1102 |
* io.c (do_getline_redir): If `s' from get_a_record is NULL, |
| 1103 |
pass "" to make_string() instead. Avoids undefined behavior |
| 1104 |
complaint from GCC -fsanitize=undefined. Thanks to Sam James |
| 1105 |
<[email protected]> for the report. |
| 1106 |
(do_getline): Ditto. |
| 1107 |
|
| 1108 |
2023-02-03 John E. Malmberg <[email protected]> |
| 1109 |
|
| 1110 |
* custom.h (bool) OpenVMS compilers may have a bool type |
| 1111 |
|
| 1112 |
2023-02-02 John E. Malmberg <[email protected]> |
| 1113 |
|
| 1114 |
* custom.h (bool) OpenVMS compilers do not have a bool type |
| 1115 |
|
| 1116 |
2023-01-31 Arnold D. Robbins <[email protected]> |
| 1117 |
|
| 1118 |
* interpret.h (r_interpret): For op_subscript, upref the variable |
| 1119 |
if it's Node_var, also. Thanks to Volodymyr Gubarkov <[email protected]> |
| 1120 |
for the initial report and to Vincent Forest |
| 1121 |
<[email protected]> for help in getting a small |
| 1122 |
reproducer. |
| 1123 |
Also, update the copyright year. |
| 1124 |
|
| 1125 |
* interpret.h (r_interpret): Op_assign case, don't unref the |
| 1126 |
old lhs NODE until after the assignment. See test case in |
| 1127 |
the comment in the code and test/fieldassign.awk. Thanks to |
| 1128 |
Yasuhiro Yamada <[email protected]> for the report. |
| 1129 |
|
| 1130 |
2023-01-22 Arnold D. Robbins <[email protected]> |
| 1131 |
|
| 1132 |
* main.c: Update copyright year. |
| 1133 |
(check_pma_security): New routine. |
| 1134 |
(main): Call it. |
| 1135 |
(UPDATE_YEAR): Bump to 2023. |
| 1136 |
* NEWS: Updated. |
| 1137 |
|
| 1138 |
2023-01-03 Arnold D. Robbins <[email protected]> |
| 1139 |
|
| 1140 |
* README: Updated with texinfo.tex and makeinfo versions. |
| 1141 |
Update copyright year. |
| 1142 |
|
| 1143 |
2022-12-27 Arnold D. Robbins <[email protected]> |
| 1144 |
|
| 1145 |
* main.c (extra_stack): Remove variable and its uses. Left over |
| 1146 |
from libsigsegv cleanup. |
| 1147 |
|
| 1148 |
2022-12-23 Arnold D. Robbins <[email protected]> |
| 1149 |
|
| 1150 |
* README: Updated with texinfo.tex version. |
| 1151 |
|
| 1152 |
2022-12-22 Arnold D. Robbins <[email protected]> |
| 1153 |
|
| 1154 |
* README: Updated with texinfo.tex version. |
| 1155 |
* NEWS: Updated. |
| 1156 |
|
| 1157 |
2022-12-11 Arnold D. Robbins <[email protected]> |
| 1158 |
|
| 1159 |
* main.c (load_procinfo): Remove "mb_cur_max" and "utf8" |
| 1160 |
entries, they're not of any real use. |
| 1161 |
* NEWS: Updated. |
| 1162 |
|
| 1163 |
2022-12-11 Arnold D. Robbins <[email protected]> |
| 1164 |
|
| 1165 |
* main.c (get_pma_version): Add declaration. |
| 1166 |
(load_procinfo): Use it to set PROCINFO["pma"] if PMA is in use. |
| 1167 |
Thanks to J Naman for the feature suggestion. |
| 1168 |
* NEWS: Updated. |
| 1169 |
|
| 1170 |
2022-12-04 Arnold D. Robbins <[email protected]> |
| 1171 |
|
| 1172 |
* NEWS: Updated. |
| 1173 |
* awk.h (nextfree): Include dimension so we know how big it is. |
| 1174 |
(pma_save_free_lists): Declare new function. |
| 1175 |
* main.c (main): Call pma_save_free_lists() via atexit() upon exit. |
| 1176 |
(parse_args): Call pma_mpfr_check() unconditionally. |
| 1177 |
* symbol.c (struct root pointer): Add copy of nextfree[] array. |
| 1178 |
(init_symbol_table): On first alloc, zero out the root_pointers |
| 1179 |
struct. On subsequent uses, copy saved nextfree into real nextfree. |
| 1180 |
(pma_mpfr_check): Check using_persistent_malloc and return early if |
| 1181 |
not using it. |
| 1182 |
(pma_save_free_lists): New function to save nextfree. |
| 1183 |
|
| 1184 |
2022-12-01 Arnold D. Robbins <[email protected]> |
| 1185 |
|
| 1186 |
Disallow using / not using -M across invocations of gawk with |
| 1187 |
a persistent heap. |
| 1188 |
|
| 1189 |
* awk.h (pma_mpfr_check): Add declaration. |
| 1190 |
* symbol.c (pma_mpfr_check): New function. Enhance root pointer |
| 1191 |
structure. |
| 1192 |
* main.c (parse_args): Call pma_mpfr_check() if using persisent |
| 1193 |
malloc. |
| 1194 |
|
| 1195 |
2022-12-01 Arnold D. Robbins <[email protected]> |
| 1196 |
|
| 1197 |
* configure.ac: Removed use of libsigsegv. |
| 1198 |
* main.c: Removed code related to libsigsegv. |
| 1199 |
* NEWS: Updated. |
| 1200 |
|
| 1201 |
2022-11-25 Arnold D. Robbins <[email protected]> |
| 1202 |
|
| 1203 |
* field.c (comma_parse_field): Remove unused variable `field'. |
| 1204 |
|
| 1205 |
2022-11-23 Arnold D. Robbins <[email protected]> |
| 1206 |
|
| 1207 |
* msg.c: Update to GPL 3. Thanks to Corinna Vinschen for |
| 1208 |
noticing the GPL version issue. |
| 1209 |
* Makefile.am (install-exec-hook): Check for existence of the |
| 1210 |
gawk-x.y.z file before hard linking. Otherwise make in POSIX |
| 1211 |
mode is unhappy. Thanks to Tzvetelin Katchov <[email protected]> |
| 1212 |
for the report. |
| 1213 |
|
| 1214 |
2022-11-17 Arnold D. Robbins <[email protected]> |
| 1215 |
|
| 1216 |
* 5.2.1: Release tar ball made. |
| 1217 |
|
| 1218 |
2022-11-17 Arnold D. Robbins <[email protected]> |
| 1219 |
|
| 1220 |
* configure.ac: Update version. |
| 1221 |
* README: Updated. |
| 1222 |
|
| 1223 |
2022-11-01 Arnold D. Robbins <[email protected]> |
| 1224 |
|
| 1225 |
* NEWS: Updated. |
| 1226 |
|
| 1227 |
2022-10-28 Arnold D. Robbins <[email protected]> |
| 1228 |
|
| 1229 |
* Makefile.am (DEBUG): New variable with debug compilation flags. |
| 1230 |
* configure.ac: Rework debug compilation to use DEBUG in Makefile.am |
| 1231 |
and to add %no-lines to grammar files. Works around GDB issue |
| 1232 |
with macros and #line directives. Thanks to Ulrich Drepper |
| 1233 |
for the help and for the suggestions. |
| 1234 |
|
| 1235 |
2022-10-26 Arnold D. Robbins <[email protected]> |
| 1236 |
|
| 1237 |
* configure.ac: Try to get macros to work in the debugger. |
| 1238 |
|
| 1239 |
2022-10-25 Arnold D. Robbins <[email protected]> |
| 1240 |
|
| 1241 |
* interpret.h (r_interpret): For Op_push*, simplify the code for |
| 1242 |
Node_var_new and Node_elem_new. |
| 1243 |
|
| 1244 |
2022-10-23 Arnold D. Robbins <[email protected]> |
| 1245 |
|
| 1246 |
* NEWS: Updated. |
| 1247 |
* debug.c (execute_code): Comment out declaration and assignment of |
| 1248 |
save_stack_size variable. It's not used anymore. |
| 1249 |
* configure.ac: Sync code for .developing with extension/configure.ac. |
| 1250 |
|
| 1251 |
2022-10-23 Arnold D. Robbins <[email protected]> |
| 1252 |
|
| 1253 |
* awkgram.y (mk_binary): Check that divisor is a number before |
| 1254 |
checking it's zero. Thanks to Ben Hoyt <[email protected]> for |
| 1255 |
the report. |
| 1256 |
|
| 1257 |
2022-10-20 Paul Eggert <[email protected]> |
| 1258 |
|
| 1259 |
Port to current Gnulib |
| 1260 |
Adjust to current Gnulib, which uses C23 style keywords for bool, |
| 1261 |
true, false and static_assert, and assumes that <config.h> |
| 1262 |
supplies compatibility macros on older systems. |
| 1263 |
|
| 1264 |
* awk.h: Do not include stdbool.h. |
| 1265 |
* configure.ac: Use gl_C_BOOL, not AC_HEADER_STDBOOL. |
| 1266 |
|
| 1267 |
2022-10-20 Arnold D. Robbins <[email protected]> |
| 1268 |
|
| 1269 |
* NEWS: Updated. |
| 1270 |
|
| 1271 |
2022-10-14 Andrew J. Schorr <[email protected]> |
| 1272 |
|
| 1273 |
* awkgram.y: Use Node_var_new instead of Node_var_array for |
| 1274 |
a subscript expression. |
| 1275 |
* gawkapi.c (api_sym_update): Make things smarter for dealing |
| 1276 |
with an untyped variable that needs to become an array. |
| 1277 |
|
| 1278 |
2022-10-14 Arnold D. Robbins <[email protected]> |
| 1279 |
|
| 1280 |
* symbol.c (make_symbol): Save and restore symbol_table in |
| 1281 |
the root_pointers struct instead of using lookup. |
| 1282 |
(func_count, var_count): Removed the variables and their uses. |
| 1283 |
(get_symbols): Getting functions, use the_table->table_size for |
| 1284 |
the count, not func_count. |
| 1285 |
|
| 1286 |
2022-10-11 Arnold D. Robbins <[email protected]> |
| 1287 |
|
| 1288 |
* symbol.c (get_symbols): Getting variables, use |
| 1289 |
the_table->table_size for the count, not var_count. Bug |
| 1290 |
was tickled when using --dump-var together with persistent |
| 1291 |
memory. (Why didn't valgrind catch this?) Thanks to Hermann |
| 1292 |
Peifer for the report. Thanks to Terence Kelly for detective work |
| 1293 |
that helped pinpoint the search area for the bug. |
| 1294 |
|
| 1295 |
2022-09-30 Arnold D. Robbins <[email protected]> |
| 1296 |
|
| 1297 |
* interpret.h (r_interpret): For the `push' opcodes with |
| 1298 |
Node_elem_new, deref `m' before assigning m = dupnode(Nnull_string). |
| 1299 |
Thanks to Andrew Schorr and valgrind for the report. |
| 1300 |
|
| 1301 |
2022-09-23 Arnold D. Robbins <[email protected]> |
| 1302 |
|
| 1303 |
* interpret.h (r_interpret): For the `push' opcodes with |
| 1304 |
Node_elem_new, put dupnode(Nnull_string) on the stack as |
| 1305 |
the local value. Thanks to Jeff Chua <[email protected]> |
| 1306 |
for the report. |
| 1307 |
|
| 1308 |
2022-09-22 Arnold D. Robbins <[email protected]> |
| 1309 |
|
| 1310 |
* gawkbug.in: Add attestation about not modifying the sources |
| 1311 |
before building. |
| 1312 |
|
| 1313 |
2022-09-19 Arnold D. Robbins <[email protected]> |
| 1314 |
|
| 1315 |
Fix negative NaN issues on RiscV. See bug list citation |
| 1316 |
in the code. Thanks to Andreas Schwab <[email protected]> |
| 1317 |
for the report. |
| 1318 |
|
| 1319 |
* eval.c (fix_nan_sign): New function. |
| 1320 |
* interpret.h (r_interpret): Use it for plus and minus cases. |
| 1321 |
|
| 1322 |
2022-09-16 Arnold D. Robbins <[email protected]> |
| 1323 |
|
| 1324 |
* debug.c (do_eval): If a fatal error occurs, don't attempt to |
| 1325 |
recover, just restart. Thanks to Pascal Maugis |
| 1326 |
<[email protected]> for the report. |
| 1327 |
|
| 1328 |
2022-09-14 Arnold D. Robbins <[email protected]> |
| 1329 |
|
| 1330 |
* interpret.h (r_interpret): For the `push' opcodes, don't upref |
| 1331 |
the Node_elem_new. Instead, convert the very original value to |
| 1332 |
Node_var and use elem_new_to_scalar for the local variable. |
| 1333 |
See test case elemnew3.awk. Thanks to Pascal Terjan <[email protected]> |
| 1334 |
for the report and test case. |
| 1335 |
|
| 1336 |
2022-09-14 Arnold D. Robbins <[email protected]> |
| 1337 |
|
| 1338 |
* interpret.h (r_interpret): For the `push' opcodes, upref |
| 1339 |
the Node_elem_new. See test case elemnew1. Thanks to |
| 1340 |
Emanuel Attila Czirai <[email protected]> for the report, |
| 1341 |
and to Jan Alexander Steffens (heftig)" <[email protected]> |
| 1342 |
for the fix. |
| 1343 |
|
| 1344 |
2022-09-04 Arnold D. Robbins <[email protected]> |
| 1345 |
|
| 1346 |
* 5.2.0: Release tar ball made. |
| 1347 |
|
| 1348 |
2022-09-04 Arnold D. Robbins <[email protected]> |
| 1349 |
|
| 1350 |
* NEWS: Updated with real URL of "MPFR is on parole." |
| 1351 |
* configure.ac: Bump to release version. |
| 1352 |
|
| 1353 |
2022-09-02 Arnold D. Robbins <[email protected]> |
| 1354 |
|
| 1355 |
* awkgram.c, command.c: Regenerated, using Bison 3.8.2. |
| 1356 |
|
| 1357 |
2022-09-01 Arnold D. Robbins <[email protected]> |
| 1358 |
|
| 1359 |
* field.c (do_split): Check for not do_posix if separator is comma. |
| 1360 |
|
| 1361 |
2022-08-31 Arnold D. Robbins <[email protected]> |
| 1362 |
|
| 1363 |
* field.c (do_split): Make "," as third arg do CSV parsing. |
| 1364 |
|
| 1365 |
2022-08-30 Arnold D. Robbins <[email protected]> |
| 1366 |
|
| 1367 |
* field.c (comma_parse_field): Add resizing of new field buffer; |
| 1368 |
No Arbitrary Limits! |
| 1369 |
|
| 1370 |
2022-08-29 Arnold D. Robbins <[email protected]> |
| 1371 |
|
| 1372 |
* field.c (comma_parse_field, set_comma_field): New functions. |
| 1373 |
(set_FS): If FS is "," and not posix mode, use CSV parsing. |
| 1374 |
Code follows what BWK's new code does. |
| 1375 |
|
| 1376 |
2022-08-25 Arnold D. Robbins <[email protected]> |
| 1377 |
|
| 1378 |
* awkgram.y (yyerror): Exit at the end, to make syntax errors |
| 1379 |
immediately fatal. This prevents problems with fuzzer-generated |
| 1380 |
programs at the cost of not continuing to diagnose subsequent |
| 1381 |
problems. Oh well, too bad. Hooray for the fuzzers. Bleah. |
| 1382 |
* NEWS: Updated. |
| 1383 |
|
| 1384 |
2022-08-17 Arnold D. Robbins <[email protected]> |
| 1385 |
|
| 1386 |
* NEWS: Mention that VAX/VMS is no longer supported. |
| 1387 |
* main.c (deprecate_mpfr): Removed the function for now. It |
| 1388 |
was causing grief for the translators. |
| 1389 |
* builtin.c (call_sub): Fix message text for indirect call |
| 1390 |
to gensub. Thanks to Benno Schulenberg |
| 1391 |
<[email protected]> for the report. |
| 1392 |
|
| 1393 |
2022-08-16 Arnold D. Robbins <[email protected]> |
| 1394 |
|
| 1395 |
* configure.ac: Remove checks for memset_ulong and memcpy_ulong. |
| 1396 |
* awk.h: Remove checks and macro definitions for those two |
| 1397 |
functions. They used to be used in the PC code but were |
| 1398 |
removed. |
| 1399 |
|
| 1400 |
2022-08-14 Arnold D. Robbins <[email protected]> |
| 1401 |
|
| 1402 |
* awkgram.y (mk_binary): Check for division by constant zero in |
| 1403 |
`/' and `%' when numerator is not a constant. Thanks to Ed Morton |
| 1404 |
<[email protected]> for the report. |
| 1405 |
|
| 1406 |
2022-08-12 Arnold D. Robbins <[email protected]> |
| 1407 |
|
| 1408 |
* NEWS: Small update: mention pm-gawk.1 man page. |
| 1409 |
|
| 1410 |
2022-08-11 Arnold D. Robbins <[email protected]> |
| 1411 |
|
| 1412 |
* main.c (get_pma_version): Check strchr() return value for |
| 1413 |
close parenthesis. Ooops. |
| 1414 |
|
| 1415 |
2022-08-10 Arnold D. Robbins <[email protected]> |
| 1416 |
|
| 1417 |
* symbol.c (init_the_tables): New function. |
| 1418 |
(init_symbol_table): Rework to make functions persistent also |
| 1419 |
by saving in the root pointer a struct pointing to both the |
| 1420 |
global table and the function table, and restoring this |
| 1421 |
on subsequent runs. The code ended up being nicely cleaner. |
| 1422 |
|
| 1423 |
2022-08-08 Arnold D. Robbins <[email protected]> |
| 1424 |
|
| 1425 |
* awk.h: Include "floatmagic.h" here so that we no longer have to |
| 1426 |
worry about it on an indvidiual file basis. |
| 1427 |
* builtin.c, eval.c, node.c: Remove the include in these files. |
| 1428 |
* configure.ac: Check for isnan in libm also. This may not |
| 1429 |
be the right way to do this... |
| 1430 |
|
| 1431 |
2022-08-08 Eli Zaretskii <[email protected]> |
| 1432 |
|
| 1433 |
* nonposix.h [__MINGW32__]: Add prototype for strsignal. |
| 1434 |
|
| 1435 |
* awk.h (flags): Rename BOOL => BOOLVAL, to avoid conflicts with |
| 1436 |
MS-Windows headers. All users changed. |
| 1437 |
|
| 1438 |
2022-08-07 Arnold D. Robbins <[email protected]> |
| 1439 |
|
| 1440 |
* main.c (get_pma_version): New function. |
| 1441 |
(version): Call it. |
| 1442 |
|
| 1443 |
Unrelated: |
| 1444 |
|
| 1445 |
* eval.c: Include "floatmagic.h" as it also calls isnan(). |
| 1446 |
Thanks to John Malmberg for the report. |
| 1447 |
|
| 1448 |
Unrelated: |
| 1449 |
|
| 1450 |
* main.c (load_environ): Force ENVIRON_node to point to |
| 1451 |
str_array_func before loading it. Fixes issues on MinGW |
| 1452 |
while still solving the original `environ[0] = "0=foo"' |
| 1453 |
problem. Move the call to init_env_array back to after the |
| 1454 |
loop. |
| 1455 |
|
| 1456 |
2022-08-06 John E. Malmberg <[email protected]> |
| 1457 |
|
| 1458 |
* custom.h: Update for new VMS Versions |
| 1459 |
|
| 1460 |
2022-08-03 Arnold D. Robbins <[email protected]> |
| 1461 |
|
| 1462 |
* mpfr.c (mpfr_mem_alloc, mpfr_mem_realloc, mpfr_mem_free): |
| 1463 |
New functions that just call malloc/realloc/free. Those are |
| 1464 |
redefined to the pma_* functions if using pma. |
| 1465 |
* awk.h (mpfr_mem_alloc, mpfr_mem_realloc, mpfr_mem_free): |
| 1466 |
Add declarations. |
| 1467 |
* main.c (main): Call mp_set_memory_functions with the new |
| 1468 |
functions as arguments. |
| 1469 |
|
| 1470 |
2022-08-03 Arnold D. Robbins <[email protected]> |
| 1471 |
|
| 1472 |
* builtin.c (format_tree): When collecting positional field widths or |
| 1473 |
precisions, check for wrap around to negative values. Thanks to |
| 1474 |
YU Jiongchi <[email protected]> for the report. |
| 1475 |
|
| 1476 |
2022-07-29 Arnold D. Robbins <[email protected]> |
| 1477 |
|
| 1478 |
* builtin.c (efwrite): Check ferror() also, fixes some weird |
| 1479 |
cases. Reported by Nikita Zlobin <[email protected]>. |
| 1480 |
* io.c (gawk_fwrite): Remove static from definition. |
| 1481 |
* awk.h (gawk_fwrite): Add declaration. |
| 1482 |
|
| 1483 |
2022-07-27 Arnold D. Robbins <[email protected]> |
| 1484 |
|
| 1485 |
* gawkapi.c (awk_value_to_node): Put tval declaration inside |
| 1486 |
MPFR ifdef. Avoids warning if no MPFR when compiling. |
| 1487 |
|
| 1488 |
2022-07-26 Arnold D. Robbins <[email protected]> |
| 1489 |
|
| 1490 |
* io.c (iopflags2str): Remove 'static' from declaration, causes |
| 1491 |
the compiler to stop complaining. Thanks to Pat Rankin for the |
| 1492 |
suggestion. |
| 1493 |
* re.c (reflags2str): Ditto. |
| 1494 |
* debug.c (debug_prog): Translate the "Restarting ..." message. |
| 1495 |
Thanks to Antonio Colombo for pointing this out. |
| 1496 |
|
| 1497 |
2022-07-22 Arnold D. Robbins <[email protected]> |
| 1498 |
|
| 1499 |
* NEWS: Updated. |
| 1500 |
|
| 1501 |
2022-07-21 Arnold D. Robbins <[email protected]> |
| 1502 |
|
| 1503 |
* NEWS: Updated. |
| 1504 |
|
| 1505 |
2022-07-19 Arnold D. Robbins <[email protected]> |
| 1506 |
|
| 1507 |
* main.c (catchsig): Adjust error message in cant_happen() call. |
| 1508 |
* configure.ac: Add check for strsignal function. It doesn't |
| 1509 |
exist on z/OS. |
| 1510 |
* replace.c: Include missing_d/strsignal.c if needed. |
| 1511 |
|
| 1512 |
2022-07-18 Arnold D. Robbins <[email protected]> |
| 1513 |
|
| 1514 |
* main.c (main): Don't use fatal() if pma_init() fails, apparently |
| 1515 |
it tries deep down to allocate memory. Print return value and |
| 1516 |
pma_errno value. Thanks to Terence Kelly for the analysis and |
| 1517 |
suggestion. |
| 1518 |
* custom.h (pma_errno): Define to 0 if not using persisent malloc. |
| 1519 |
|
| 1520 |
2022-07-17 Arnold D. Robbins <[email protected]> |
| 1521 |
|
| 1522 |
* main.c (parse_args): Handle --persist with no argument to issue a |
| 1523 |
better error message. Thanks to Terence Kelly for the suggestion. |
| 1524 |
|
| 1525 |
2022-07-14 Arnold D. Robbins <[email protected]> |
| 1526 |
|
| 1527 |
* gawkmisc.c, replace.c: Update copyright. |
| 1528 |
|
| 1529 |
2022-07-11 Arnold D. Robbins <[email protected]> |
| 1530 |
|
| 1531 |
* Makefile.am (base_sources): Remove mbsupport.h. |
| 1532 |
|
| 1533 |
2022-07-07 Arnold D. Robbins <[email protected]> |
| 1534 |
|
| 1535 |
* mbsupport.h: Removed. |
| 1536 |
|
| 1537 |
2022-07-06 Arnold D. Robbins <[email protected]> |
| 1538 |
|
| 1539 |
* README: Updated. Remove mention of DJGPP. |
| 1540 |
* awk.h, custom.h, eval.c, gawkmisc.c, io.c, main.c, nonposix.h, |
| 1541 |
re.c, replace.c: Remove all code for __DJGPP__. |
| 1542 |
|
| 1543 |
2022-07-03 Arnold D. Robbins <[email protected]> |
| 1544 |
|
| 1545 |
* awk.h (TOP_SCALAR): Put converted value back on the stack |
| 1546 |
for any subsequent use. |
| 1547 |
|
| 1548 |
2022-06-30 Arnold D. Robbins <[email protected]> |
| 1549 |
|
| 1550 |
* awk.h (POP_SCALAR): Convert Node_elem_new into a scalar. |
| 1551 |
(TOP_SCALAR): Ditto. |
| 1552 |
|
| 1553 |
Unrelated: |
| 1554 |
* README: Updated. Remove mention of OS/2. |
| 1555 |
* awk.h, awgram.y. gawkmisc.c, io.c, main.c, nonposix.h: |
| 1556 |
Remove all code for __EMX__. |
| 1557 |
|
| 1558 |
2022-06-20 Arnold D. Robbins <[email protected]> |
| 1559 |
|
| 1560 |
* NEWS: MPFR is now "on parole" instead of deprecated. |
| 1561 |
* main.c (deprecate_mpfr): ifdef'ed out. |
| 1562 |
(parse_args): Comment out call to deprecate_mpfr(). |
| 1563 |
|
| 1564 |
2022-06-20 Arnold D. Robbins <[email protected]> |
| 1565 |
|
| 1566 |
* main.c (optab): Add --persist. |
| 1567 |
(parse_args): For --persist, fatal message to use the |
| 1568 |
environment variable. Thanks to Terence Kelly for suggesting |
| 1569 |
the option, since it's mentioned in his paper. |
| 1570 |
|
| 1571 |
2022-06-17 Arnold D. Robbins <[email protected]> |
| 1572 |
|
| 1573 |
* NEWS: Typo fix. |
| 1574 |
* main.c (main): Correct the return value check in the call |
| 1575 |
to pma_init(). Thanks to Terence Kelly for the report. |
| 1576 |
|
| 1577 |
2022-06-15 Andrew J. Schorr <[email protected]> |
| 1578 |
|
| 1579 |
* main.c (load_environ): Init ENVIRON_node before filling |
| 1580 |
it. Fixes a crash if something like "0=foo" is the first thing |
| 1581 |
in the environment. Thanks to David Arroyo <[email protected]> |
| 1582 |
for the report. |
| 1583 |
|
| 1584 |
2022-06-14 Arnold D. Robbins <[email protected]> |
| 1585 |
|
| 1586 |
* main.c (main): Set gawk_name first thing, in case we fatal out |
| 1587 |
on pma_init. |
| 1588 |
* configure.ac: Add --disable-pma option. |
| 1589 |
|
| 1590 |
2022-06-13 Arnold D. Robbins <[email protected]> |
| 1591 |
|
| 1592 |
* main.c (main): If persistent memory is not available and |
| 1593 |
GAWK_PERSIST_FILE is supplied, issue a warnning. Similarly, don't |
| 1594 |
do mtrace if using persistent malloc. |
| 1595 |
(version): Include PMA version in the output. |
| 1596 |
|
| 1597 |
2022-06-10 Arnold D. Robbins <[email protected]> |
| 1598 |
|
| 1599 |
* awk.h (using_persistent_malloc): Declare new variable |
| 1600 |
* main.c (main): Check for error from pma_init. Set |
| 1601 |
using_persistent_malloc. |
| 1602 |
* symbol.c (init_symbol_table): Check using_persistent_malloc |
| 1603 |
appropriately. Adjust the flow for it. |
| 1604 |
* NEWS: Updated. |
| 1605 |
* Makefile.am (LDADD): Add $(LDFLAGS). |
| 1606 |
* custom.h (pma_init): Define to 0. |
| 1607 |
|
| 1608 |
2022-06-09 Arnold D. Robbins <[email protected]> |
| 1609 |
|
| 1610 |
* custom.h: Deal with use/non-use of persistent malloc. |
| 1611 |
* main.c (main): Bracket mtrace call in #ifndef. Call pma_init() |
| 1612 |
first thing. |
| 1613 |
* configure.ac (GAWK_USE_PERSISTENT_MALLOC): Add call. |
| 1614 |
|
| 1615 |
2022-06-06 Andrew J. Schorr <[email protected]> |
| 1616 |
|
| 1617 |
* gawkapi.h (gawk_api_t): Add new api_destroy_array hook to clear |
| 1618 |
and free an array. |
| 1619 |
(destroy_array): New macro wrapper for api_destroy_array. |
| 1620 |
* gawkapi.c (api_destroy_array): Add new function to clear and free |
| 1621 |
an array. |
| 1622 |
(api_impl): Add hook for api_destroy_array. |
| 1623 |
|
| 1624 |
2022-06-03 Arnold D. Robbins <[email protected]> |
| 1625 |
|
| 1626 |
* awk.h (elem_new_to_scalar): Add declaration. |
| 1627 |
* eval.c (elem_new_to_scalar): No longer static. Make it handle |
| 1628 |
things when valref is > 1. Returns a NODE * instead of being void. |
| 1629 |
(cmp_scalars): Change usage of elem_new_to_scalar(). |
| 1630 |
* interpret.h (r_interpret): Op_push*: Make Node_elem_new into |
| 1631 |
a separate case, using elem_new_to_scalar(). |
| 1632 |
* array.c (force_array): For Node_elem_new, clear symbol->stptr. |
| 1633 |
* eval.r (r_get_lhs): Use efree() intstead of free() in Node_elem_new |
| 1634 |
case. |
| 1635 |
|
| 1636 |
2022-06-02 Arnold D. Robbins <[email protected]> |
| 1637 |
|
| 1638 |
* builtin.c (do_sub): Fix memory corruption when substituting |
| 1639 |
into a value that is a typed regex. Thanks to valgrind. |
| 1640 |
|
| 1641 |
2022-06-02 Arnold D. Robbins <[email protected]> |
| 1642 |
|
| 1643 |
Fix a nasty memory corruption problem. Thanks to |
| 1644 |
Andrew Schorr for the report. |
| 1645 |
|
| 1646 |
* eval.c (r_get_lhs): Handle Node_elem_new separately |
| 1647 |
to free the string value. This was not the problem. |
| 1648 |
* interpret.h (r_interpret): For Op_assign, when turning |
| 1649 |
Node_elem_new into the null string, DEREF the old value |
| 1650 |
and dupnode the new one. THIS was the problem. |
| 1651 |
|
| 1652 |
2022-05-24 Adam Van Scyoc <[email protected]> |
| 1653 |
|
| 1654 |
* awkgram.y (make_assignable): Handle Op_field_assign. |
| 1655 |
Avoids a core dump upon a certain kind of syntax error; |
| 1656 |
see test/getlnfa.awk. |
| 1657 |
|
| 1658 |
2022-05-22 Arnold D. Robbins <[email protected]> |
| 1659 |
|
| 1660 |
* array.c (force_array): When converting Node_elem_new to an array, |
| 1661 |
release the string storage. Thanks to valgrind, by way of Andrew |
| 1662 |
Schorr, for the report. |
| 1663 |
|
| 1664 |
2022-05-11 Arnold D. Robbins <[email protected]> |
| 1665 |
|
| 1666 |
* profile.c (pp_list): Typo fix in a comment. |
| 1667 |
|
| 1668 |
2022-05-10 Arnold D. Robbins <[email protected]> |
| 1669 |
|
| 1670 |
* gawkbug.in: Add attestation for having read bug reporting |
| 1671 |
section in the manual. (Yes, I'm pretty paranoid.) |
| 1672 |
|
| 1673 |
2022-05-03 Arnold D. Robbins <[email protected]> |
| 1674 |
|
| 1675 |
* main.c (deprecate_mpfr): New function. |
| 1676 |
(parse_args): Call it for -M. |
| 1677 |
|
| 1678 |
2022-04-28 Arnold D. Robbins <[email protected]> |
| 1679 |
|
| 1680 |
Disallow SYMTAB["x"]["y"]. Reported by Jason C. Kwan. |
| 1681 |
|
| 1682 |
* interpret.h (r_interpret): Add checks at Op_sub_array case. |
| 1683 |
|
| 1684 |
Unrelated. Fix MPFR mode unary minus applied to a variable with |
| 1685 |
a zero MPG value. Also reported by Jason C. Kwan. |
| 1686 |
|
| 1687 |
* mpfr.c (mpg_interpret): Fix Op_unary_minus to create an |
| 1688 |
MPFR -0 value. MPG doesn't distinguish negative zero from |
| 1689 |
positive zero. |
| 1690 |
|
| 1691 |
2022-04-21 Arnold D. Robbins <[email protected]> |
| 1692 |
|
| 1693 |
Fix some profiling issues related to comments in switch / case |
| 1694 |
statements. |
| 1695 |
|
| 1696 |
* awkgram.y (merge_comments): Remove newline between comments being |
| 1697 |
merged. |
| 1698 |
* profile.c (pprint): Improve code for Op_K_switch, Op_K_case. |
| 1699 |
|
| 1700 |
2022-04-20 Arnold D. Robbins <[email protected]> |
| 1701 |
|
| 1702 |
* mpfr.c (mpg_force_number): Small whitespace fix. |
| 1703 |
* node.c (r_force_number): Ditto. |
| 1704 |
|
| 1705 |
2022-04-18 Arnold D. Robbins <[email protected]> |
| 1706 |
|
| 1707 |
* gawkbug.in: Small changes. |
| 1708 |
|
| 1709 |
2022-04-06 Arnold D. Robbins <[email protected]> |
| 1710 |
|
| 1711 |
Further cleanups. |
| 1712 |
|
| 1713 |
* array.c (new_array_element): Set s->stfmt to STFMT_UNUSED. |
| 1714 |
* awk.h (force_string_fmt): No need to set s->stfmt anymore. |
| 1715 |
* builtin.c (do_typeof): Collapse Node_var_new and Node_elem_new |
| 1716 |
cases. |
| 1717 |
* symbol.c (print_vars): Node_elem_new can't be in a top level |
| 1718 |
variable. Remove check and add a call to cant_happen if some |
| 1719 |
other node type is received. |
| 1720 |
* NEWS: Updated. |
| 1721 |
|
| 1722 |
2022-04-01 Arnold D. Robbins <[email protected]> |
| 1723 |
|
| 1724 |
Small fix from the persistent-gawk guys. |
| 1725 |
|
| 1726 |
* profile.c (pprint): Use estrdup instead of strdup. |
| 1727 |
|
| 1728 |
2022-03-31 Arnold D. Robbins <[email protected]> |
| 1729 |
|
| 1730 |
* array.c (new_array_element): Make a full null string instead of |
| 1731 |
an empty node; it can be more easily converted to scalar that way. |
| 1732 |
* awk.h (force_string_fmt): Change the node type, remove NUMBER flag, |
| 1733 |
set STFMT_UNUSED. |
| 1734 |
* cint_array.c (lear_clear): Remove check for not equal Node_elem_new. |
| 1735 |
* int_array.c (int_clear): Ditto. |
| 1736 |
* str_array.c (str_clear): Ditto. |
| 1737 |
* eval.c (elem_new_to_scalar): Now only needs to change the node type. |
| 1738 |
* interpret.h (r_interpret): Treat Node_elem_new like Node_val, and |
| 1739 |
UPREF it when pushed. Remove test before DEREFing when popping. |
| 1740 |
* mpfr.c (mpg_force_number): Simplify converting Node_elem_new to |
| 1741 |
Node_val. Fix the string value. |
| 1742 |
* node.c (r_force_number): Ditto. |
| 1743 |
|
| 1744 |
2022-03-28 Arnold D. Robbins <[email protected]> |
| 1745 |
|
| 1746 |
Allow unreferenced array elements to turn into subarrays. |
| 1747 |
|
| 1748 |
* awk.h (Node_elem_new): New node type. |
| 1749 |
(new_array_element): Add declaration. |
| 1750 |
(POP_ARRAY): Handle Node_elem_new. |
| 1751 |
(force_string_fmt): Ditto. Make sure valref has the right value. |
| 1752 |
* array.c (force_array): Handle Node_elem_new. |
| 1753 |
(do_sort_up_value_type): Ditto. |
| 1754 |
(new_array_element): New function, creates Node_elem_new node. |
| 1755 |
* builtin.c (do_length): Handle Node_elem_new. |
| 1756 |
(do_typeof): Ditto. |
| 1757 |
* cint_array.c (leaf_lookup): Use new_array_element() when creating |
| 1758 |
a new element. |
| 1759 |
(left_clear): Don't unref Node_elem_new. |
| 1760 |
* debug.c (print_symbol, do_set_var,watchpont_triggered, |
| 1761 |
initialize_watch_item, print_memory, do_print_f): Handle Node_elem_new. |
| 1762 |
* eval.c (nodetypes): Add Node_elem_new. |
| 1763 |
(r_get_lhs, setup_frame): Handle Node_elem_new. |
| 1764 |
(elem_new_to_scalar): New function. |
| 1765 |
(cmp_scalars): Use elem_new_to_scalar. |
| 1766 |
* ext.c (get_actual_argument): Handle Node_elem_new. |
| 1767 |
* gawkapi.c (api_get_argument, api_set_argument, node_to_awk_value, |
| 1768 |
api_sym_update): Handle Node_elem_new. |
| 1769 |
* int_array.c (int_clear): Don't unref Node_elem_new. |
| 1770 |
(int_insert): Use new_array_element() when creating a new element. |
| 1771 |
* interpret.h (r_interpret): Handle Node_elem_new as appropriate. |
| 1772 |
* mpfr.c (mpg_force_number): Handle Node_elem_new.Make sure valref has |
| 1773 |
the right value. |
| 1774 |
* node.c (r_force_number): Ditto. |
| 1775 |
* str_array.c (str_lookup): Use new_array_element() when creating a |
| 1776 |
new element. |
| 1777 |
(str_clear): Don't unref Node_elem_new. |
| 1778 |
* symbol.c (print_vars): Handle Node_elem_new. |
| 1779 |
|
| 1780 |
2022-03-27 Arnold D. Robbins <[email protected]> |
| 1781 |
|
| 1782 |
Allow nested indirect function calls. Thanks to |
| 1783 |
Kaz Kylheku <[email protected]> for the report. |
| 1784 |
|
| 1785 |
* awkgram.y (at_seen): Turn into an int that is incremented |
| 1786 |
and decremented as appropriate. |
| 1787 |
|
| 1788 |
2022-03-22 Arnold D. Robbins <[email protected]> |
| 1789 |
|
| 1790 |
Make lint checks for builtin functions smarter. Initial |
| 1791 |
report from Timothy Sample <[email protected]>. |
| 1792 |
|
| 1793 |
* builtin.c (do_fflush): Require string type. |
| 1794 |
(printf_common): Ditto. |
| 1795 |
(do_index): Allow strnum for both arguments. |
| 1796 |
(do_length): Ditto. |
| 1797 |
(do_strftime): Ditto. |
| 1798 |
(do_substr): Require numbers for arguments 2 and 3, string or |
| 1799 |
strnum for argument 1. |
| 1800 |
(do_match): Require string or strnum for argument 1. |
| 1801 |
(do_dcgettext): Require strings for all arguments. |
| 1802 |
(do_bindtextdomain): Ditto. |
| 1803 |
(do_dcngettext): Require strings for arguments 5, 4, 2, and 1, and |
| 1804 |
number for argument 3. |
| 1805 |
|
| 1806 |
2022-03-03 Arnold D. Robbins <[email protected]> |
| 1807 |
|
| 1808 |
* NEWS: Updated. |
| 1809 |
|
| 1810 |
2022-02-27 Arnold D. Robbins <[email protected]> |
| 1811 |
|
| 1812 |
* main.c (usage): Update the message for the gawkbug program. |
| 1813 |
|
| 1814 |
2022-02-27 Arnold D. Robbins <[email protected]> |
| 1815 |
|
| 1816 |
Add `gawkbug' reporting program. |
| 1817 |
|
| 1818 |
* gawkbug.in: New file. |
| 1819 |
* Makefile.am (bin_SCRIPTS): New, for gawkbug. |
| 1820 |
* configure.ac: Add gawkbug to AC_CONFIG_FILES list. |
| 1821 |
* NEWS: Updated. |
| 1822 |
* .gitignore: Updated. |
| 1823 |
|
| 1824 |
2022-02-27 Arnold D. Robbins <[email protected]> |
| 1825 |
|
| 1826 |
* awk.h (cant_happen): Change to allow a format string and arguments, |
| 1827 |
in order to provide a clue as to what went wrong, and not just |
| 1828 |
print "internal error". |
| 1829 |
* awkgram.y, debug.c, eval.c, interpret.h, io.c, main.c, mpfr.c, |
| 1830 |
profile.c, re.c, symbol.c: Fix all uses of cant_happen(). |
| 1831 |
|
| 1832 |
2022-02-25 Arnold D. Robbins <[email protected]> |
| 1833 |
|
| 1834 |
Memory issues with MPFR, fix part 2. (Part 1 is in the |
| 1835 |
extension directory.) |
| 1836 |
|
| 1837 |
* gawkapi.c (awk_value_to_node): Clear the GMP/MPFR values |
| 1838 |
returned from the C extension after setting the internal |
| 1839 |
variable. |
| 1840 |
|
| 1841 |
2022-02-22 Arnold D. Robbins <[email protected]> |
| 1842 |
|
| 1843 |
Enable interval expressions even for --traditional, as BWK |
| 1844 |
awk has supported them since 2019. |
| 1845 |
|
| 1846 |
* NEWS: Updated. |
| 1847 |
* main.c (main): Add lint warning for --re-interval. |
| 1848 |
(parse_args): Add explanatory comment. |
| 1849 |
* re.c (resetup): Update the comment w.r.t. interval expressions. |
| 1850 |
Change the test for enabled them to if do_traditional. |
| 1851 |
|
| 1852 |
2022-02-22 Arnold D. Robbins <[email protected]> |
| 1853 |
|
| 1854 |
Fix resource leaks found by Coverity. Thanks to |
| 1855 |
Jakub Martisko <[email protected]> for the report. |
| 1856 |
|
| 1857 |
* ext.c (make_builtin): Free install_name before returning. |
| 1858 |
* io.c (remap_std_file): Unconditionally close newfd. |
| 1859 |
* symbol.c (load_symbols): Unref built_in also. |
| 1860 |
|
| 1861 |
2022-12-10 Andrew J. Schorr <[email protected]> |
| 1862 |
|
| 1863 |
* io.c (wait_any): When saving a saved exit status returned by |
| 1864 |
_cwait or waitpid or wait in struct redirect's status field, we |
| 1865 |
should actually save the value returned by sanitize_exit_status |
| 1866 |
instead of the raw status. This fixes a bug whereby a saved status |
| 1867 |
for a previously exited process was being returned by gawk_pclose |
| 1868 |
without first being sanitized. Thanks to Jakub Martisko |
| 1869 |
<[email protected]> for reporting the bug. |
| 1870 |
|
| 1871 |
2022-02-10 Arnold D. Robbins <[email protected]> |
| 1872 |
|
| 1873 |
* builtin.c (sanitize_exit_status): Fix formatting. |
| 1874 |
|
| 1875 |
2022-02-07 Arnold D. Robbins <[email protected]> |
| 1876 |
|
| 1877 |
Continue fixing indirect calls of builtins. |
| 1878 |
|
| 1879 |
* awk.h (check_exact_args, check_args_min_max): Add declarations. |
| 1880 |
* builtin.c (check_exact_args, check_args_min_max): New functions. |
| 1881 |
(do_exp, do_fflush, do_index, do_int, do_isarray, do_length, do_log, |
| 1882 |
do_sqrt, do_strftime, do_systime, do_mktime, do_system, do_tolower, |
| 1883 |
do_toupper, do_atan2, do_sin, do_cos, do_rand, do_srand, do_match, |
| 1884 |
do_sub, do_lshift, do_rshift, do_compl, do_strtonum, do_dcgettext, |
| 1885 |
do_dcngettext, do_bindtextdomain, do_intdiv, do_typeof): Call |
| 1886 |
the argument checking functions. |
| 1887 |
(call_sub, call_match): Manually check argument count. |
| 1888 |
* field.c (do_split, do_patsplit): Call the argument checking |
| 1889 |
functions. |
| 1890 |
* interpret.h (r_interpret): For indirect call of extension functions, |
| 1891 |
pop the function name off the stack when done. |
| 1892 |
* mpfr.c (do_atan2, do_mpfr_func, do_mpfr_int, do_mpfr_compl, |
| 1893 |
do_mpfr_lshift, do_mpfr_rshift, do_mpfr_strtonum, do_mpfr_rand, |
| 1894 |
do_mpfr_srand, do_mpfr_intdiv): Call the argument checking functions. |
| 1895 |
|
| 1896 |
2022-02-04 Arnold D. Robbins <[email protected]> |
| 1897 |
|
| 1898 |
Start fixing issues with indirect calls of builtins. |
| 1899 |
Thanks to Denis Shirokov <[email protected]> for the initial report. |
| 1900 |
Much more remains to be done. |
| 1901 |
|
| 1902 |
* builtin.c (do_length): Check number of arguments, fatal if not one. |
| 1903 |
If passed Node_var_new, turn it into the null string. |
| 1904 |
* interpret.h (r_interpret): For Op_indirect_call, pop the function |
| 1905 |
name off the stack. |
| 1906 |
|
| 1907 |
2022-01-05 Arnold D. Robbins <[email protected]> |
| 1908 |
|
| 1909 |
* awkgram.y (change_namespace): New function. Extracted from |
| 1910 |
set_namespace. |
| 1911 |
(want_namespace): New variable. |
| 1912 |
[grammar]: Add explanatory comment about the change. |
| 1913 |
(yylex): Change the namespace immediately from the lexer. |
| 1914 |
(set_namespace): Adjust code. |
| 1915 |
* symbol.c (load_symbols): Strip off leading awk:: so that |
| 1916 |
PROCINFO["identifiers"] is like SYMTAB and FUNCTAB. This makes |
| 1917 |
the code match the documentation. Thanks to John Naman |
| 1918 |
<[email protected]> for the bug report. |
| 1919 |
|
| 1920 |
2021-12-17 Yuri Gribov <[email protected]> |
| 1921 |
|
| 1922 |
Make a number of functions and variables static. |
| 1923 |
|
| 1924 |
* cint_array.c (argv_array_func): Make static. |
| 1925 |
* debug.c (cur_rule, check_until): Ditto. |
| 1926 |
* field.c (default_FS, FS_re_yes_case, FS_re_no_case, FS_regexp, |
| 1927 |
FPAT_re_yes_case, FPAT_re_no_case, invalidate_field0: Ditto. |
| 1928 |
* io.c (iopflags2str): Ditto. |
| 1929 |
* main.c (ENVIRON_node): Ditto. |
| 1930 |
* re.c (reflags2str): Ditto. |
| 1931 |
* str_array.c (env_array_func): Ditto. |
| 1932 |
|
| 1933 |
2021-12-08 Andrew J. Schorr <[email protected]> |
| 1934 |
|
| 1935 |
* gawkapi.c (api_sym_update): Allow undefined Node_var_new variables |
| 1936 |
to be converted to arrays, otherwise API functions have no way |
| 1937 |
of creating an array that is referenced in an undefined fashion in |
| 1938 |
the program. This is somewhat comparable to how the set_argument |
| 1939 |
API allows an undefined argument variable to be converted to an array. |
| 1940 |
|
| 1941 |
2021-12-02 Andrew J. Schorr <[email protected]> |
| 1942 |
|
| 1943 |
* builtin.c (efwrite): Don't use return in call of function |
| 1944 |
returning void. Some compilers might not like it. |
| 1945 |
|
| 1946 |
2021-12-01 Arnold D. Robbins <[email protected]> |
| 1947 |
|
| 1948 |
* builtin.c (efflush): Don't use return in call of function |
| 1949 |
returning void. It works, but is funky, and I think some |
| 1950 |
compilers will complain. |
| 1951 |
|
| 1952 |
Unrelated. Clean up the calls to w32_maybe_set_errno. |
| 1953 |
|
| 1954 |
* awk.h (os_maybe_set_errno): Add declaration. |
| 1955 |
* builtin.c (wrerror): Replaced ifdef'ed code calling |
| 1956 |
w32_maybe_set_errno() with simple call to os_maybe_set_errno(). |
| 1957 |
* io.c (non_fatal_flush_std_file, close_io): Ditto. |
| 1958 |
* main.c (usage, copyleft): Ditto. |
| 1959 |
* nonposix.h (w32_maybe_set_errno): Remove declaration. |
| 1960 |
|
| 1961 |
2021-11-30 Andrew J. Schorr <[email protected]> |
| 1962 |
|
| 1963 |
Improve output redirection error handling for problems not detected |
| 1964 |
until the final flush or close. Thanks to Miguel Pineiro Jr. |
| 1965 |
<[email protected]> for the bug report and suggesting a fix. |
| 1966 |
|
| 1967 |
* awk.h (efflush): Add declaration. |
| 1968 |
* builtin.c (efwrite): Break up into 3 functions by moving the |
| 1969 |
flushing logic into efflush and the error handling logic into |
| 1970 |
wrerror. |
| 1971 |
(wrerror): New function containing the error-handling logic extracted |
| 1972 |
from efwrite. |
| 1973 |
(efflush): New function containing the fflush logic extracted from |
| 1974 |
efwrite. |
| 1975 |
* io.c (close_redir): Call efflush prior to closing the redirection |
| 1976 |
to identify any problems with flushing output and to take advantage |
| 1977 |
of the error-handling logic used for print and printf. |
| 1978 |
|
| 1979 |
2021-11-21 Arnold D. Robbins <[email protected]> |
| 1980 |
|
| 1981 |
* builtin.c (do_typeof): Make Node_array_ref handling smarter. |
| 1982 |
See test/stupid5.awk. |
| 1983 |
|
| 1984 |
2021-11-18 Arnold D. Robbins <[email protected]> |
| 1985 |
|
| 1986 |
* gawkapi.c (awk_value_to_node): Fix handling of MPFR values |
| 1987 |
coming back from an extension. |
| 1988 |
|
| 1989 |
2021-11-07 Arnold D. Robbins <[email protected]> |
| 1990 |
|
| 1991 |
* mkinstalldirs: Removed, it wasn't used. |
| 1992 |
* Makefile.in: Regenerated. |
| 1993 |
|
| 1994 |
2021-11-03 Sam James <[email protected]> |
| 1995 |
|
| 1996 |
* configure.ac: Fix AR_FLAGS assignment typo. |
| 1997 |
* configure.ac: Rename AR_FLAGS to ARFLAGS. |
| 1998 |
|
| 1999 |
2021-10-27 Arnold D. Robbins <[email protected]> |
| 2000 |
|
| 2001 |
* 5.1.1: Release tar ball made. |
| 2002 |
|
| 2003 |
2021-10-24 Arnold D. Robbins <[email protected]> |
| 2004 |
|
| 2005 |
* README: Updated. |
| 2006 |
|
| 2007 |
2021-10-20 Andrew J. Schorr <[email protected]> |
| 2008 |
|
| 2009 |
* msg.c (err): Need to check that FNR_node->var_value is non-NULL |
| 2010 |
before testing with is_mpg_number. |
| 2011 |
|
| 2012 |
2021-10-18 Arnold D. Robbins <[email protected]> |
| 2013 |
|
| 2014 |
Factor duplicated code out into a separate function. |
| 2015 |
D.R.Y. principle. |
| 2016 |
|
| 2017 |
* symbol.c (get_name_from_awk_ns): New function. |
| 2018 |
(lookup): Use it. |
| 2019 |
(install): Use it. |
| 2020 |
|
| 2021 |
* awkgram.y (check_qualified_special): Use awk_namespace instead of a |
| 2022 |
string constant. |
| 2023 |
* profile.c (pprint): Ditto. |
| 2024 |
(adjust_namespace): Ditto. Also, fix the check for the qualified |
| 2025 |
name to look for the "::" in case one namespace is a prefix of |
| 2026 |
another. |
| 2027 |
|
| 2028 |
2021-10-13 Arnold D. Robbins <[email protected]> |
| 2029 |
|
| 2030 |
* README: Update version, copyright year. |
| 2031 |
* custom.h: Update copyright year. |
| 2032 |
|
| 2033 |
2021-09-26 Arnold D. Robbins <[email protected]> |
| 2034 |
|
| 2035 |
* builtin.c (do_mktime): Update that ISO 8601 does not allow |
| 2036 |
hours > 23. Thanks to Nethox <[email protected]> for the info. |
| 2037 |
|
| 2038 |
2021-09-23 Arnold D. Robbins <[email protected]> |
| 2039 |
|
| 2040 |
* gawkapi.h: Some clean-up of comments in the header file. |
| 2041 |
|
| 2042 |
2021-09-12 Arnold D. Robbins <[email protected]> |
| 2043 |
|
| 2044 |
* interpret.h: Remove subscript_in_array variable. |
| 2045 |
|
| 2046 |
Unrelated: |
| 2047 |
|
| 2048 |
* builtin.c (add_thousands): Fix insertion of thousands_sep |
| 2049 |
string. Do it in reverse order. |
| 2050 |
|
| 2051 |
2021-09-10 Arnold D. Robbins <[email protected]> |
| 2052 |
|
| 2053 |
* interpret.h: For Op_subscript, don't allow references into |
| 2054 |
FUNCTAB and SYMTAB to create new elements. Thanks to |
| 2055 |
Jason C. Kwan <[email protected]> for the bug report. |
| 2056 |
|
| 2057 |
Unrelated: |
| 2058 |
|
| 2059 |
* aclocal.m4: Regenerated: Automake 1.16.4. |
| 2060 |
* NEWS: Updated. |
| 2061 |
|
| 2062 |
Unrelated: |
| 2063 |
|
| 2064 |
* awkgram.y (YYERROR_IS_DECLARED): Added for Bison 3.8. |
| 2065 |
* command.y (YYERROR_IS_DECLARED): Ditto. |
| 2066 |
* NEWS: Updated. |
| 2067 |
|
| 2068 |
2021-09-09 Arnold D. Robbins <[email protected]> |
| 2069 |
|
| 2070 |
Move to Autoconf 2.71 (finally!) |
| 2071 |
|
| 2072 |
* configure.ac: Updated. |
| 2073 |
* aclocal.m4, configh.in configure: Regenerated. |
| 2074 |
* NEWS: Updated. |
| 2075 |
|
| 2076 |
2021-09-06 Arnold D. Robbins <[email protected]> |
| 2077 |
|
| 2078 |
Have the ' flag work for %d in MPFR mode also. Thanks to |
| 2079 |
Dan Nielsen <[email protected]> for the report. |
| 2080 |
|
| 2081 |
* builtin.c (add_thousands): New function. |
| 2082 |
(reverse): New helper function. |
| 2083 |
(format_tree): Use add_thousands if MPFR and an integer |
| 2084 |
format. |
| 2085 |
|
| 2086 |
2021-09-03 Arnold D. Robbins <[email protected]> |
| 2087 |
|
| 2088 |
* main.c (UPDATE_YEAR): Update to 2021. |
| 2089 |
|
| 2090 |
2021-09-03 Arnold D. Robbins <[email protected]> |
| 2091 |
|
| 2092 |
* mpfr.c (mpg_cmp_as_numbers): Avoid compiler warning about possibly |
| 2093 |
used before set. Thanks to Michal Jaegermann for the report. |
| 2094 |
|
| 2095 |
2021-08-18 Arnold D. Robbins <[email protected]> |
| 2096 |
|
| 2097 |
* main.c (main): Change have_srcfile from int to bool. |
| 2098 |
|
| 2099 |
2021-08-15 Arnold D. Robbins <[email protected]> |
| 2100 |
|
| 2101 |
Allow setting AR and ARFLAGS on the configure command line. |
| 2102 |
Thanks to Jacob Burkholder <[email protected]> for |
| 2103 |
the report. |
| 2104 |
|
| 2105 |
* configure.ac (AR_FLAGS): Provide default value. |
| 2106 |
(AR): Call AC_SUBST on it. |
| 2107 |
|
| 2108 |
2021-08-13 Arnold D. Robbins <[email protected]> |
| 2109 |
|
| 2110 |
* builtin.c (do_sub): Rationalize handling of strongly typed |
| 2111 |
regex as argument to sub/gsub, as well as rationalize the return |
| 2112 |
value from gensub to always be string. Thanks to John Naman |
| 2113 |
<[email protected]> for the bug report. |
| 2114 |
|
| 2115 |
2021-08-05 Andrew J. Schorr <[email protected]> |
| 2116 |
|
| 2117 |
* mpfr.c (do_mpfr_func): New argument, warn_negative. If true, |
| 2118 |
print a warning message about a negative argument. Bring -M |
| 2119 |
code into line with regular code. Bug report from Neil Ormos |
| 2120 |
in the help-gawk list. |
| 2121 |
|
| 2122 |
Unrelated: |
| 2123 |
|
| 2124 |
* mpfr.c (do_mpfr_int_div, mpg_div, mpg_mod): If dividing by |
| 2125 |
zero, print a fatal error messages. Brings MPFR code into line |
| 2126 |
with the regular code. Thanks to Peng Yu for noticing the bug, in |
| 2127 |
the help-gawk list. |
| 2128 |
|
| 2129 |
2021-07-23 Arnold D. Robbins <[email protected]> |
| 2130 |
|
| 2131 |
* awk.h (exec_count_t): Add typedef for Vax VMS C and everyone else. |
| 2132 |
(EXEC_COUNT_FMT, EXEC_COUNT_PROFILE_FMT): Corresponding format |
| 2133 |
strings for printf. |
| 2134 |
* debug.c (print_instruction): Use EXEC_COUNT_FMT. |
| 2135 |
* profile.c (indent): Ditto and use EXEC_COUNT_PROFILE_FMT. |
| 2136 |
|
| 2137 |
2021-07-07 Arnold D. Robbins <[email protected]> |
| 2138 |
|
| 2139 |
* array.c (asort_actual): Add a lint warning for passing the |
| 2140 |
same array as the first two arguments without a third. |
| 2141 |
Thanks to Peng Yu <[email protected]> for the report. |
| 2142 |
|
| 2143 |
2021-06-30 Arnold D. Robbins <[email protected]> |
| 2144 |
|
| 2145 |
* custom.h: Add a bunch of defines to work around the continous, |
| 2146 |
needless churn in support/dfa.c. |
| 2147 |
|
| 2148 |
2021-06-04 Arnold D. Robbins <[email protected]> |
| 2149 |
|
| 2150 |
* builtin.c (format_tree): In MPFR prints, cast values to |
| 2151 |
int for proper int vs. unsigned comparison. Fixes things |
| 2152 |
for HP-UX. Thanks to Daniel Richard G. for the report. |
| 2153 |
|
| 2154 |
2021-05-21 Arnold D. Robbins <[email protected]> |
| 2155 |
|
| 2156 |
* debug.c: For z/OS, use %#p to print pointers, %p everything else. |
| 2157 |
|
| 2158 |
2021-05-13 Arnold D. Robbins <[email protected]> |
| 2159 |
|
| 2160 |
* custom.h: For z/OS, define _REGEX_INCLUDE_LIMITS_H. |
| 2161 |
* profile.c (pprint): Add a diagnostic print for an |
| 2162 |
unexprected node type. |
| 2163 |
|
| 2164 |
2021-05-05 Arnold D. Robbins <[email protected]> |
| 2165 |
|
| 2166 |
* CMakeLists.txt: Removed. |
| 2167 |
* cmake: Removed directory and its contents. |
| 2168 |
|
| 2169 |
2021-05-05 Arnold D. Robbins <[email protected]> |
| 2170 |
|
| 2171 |
Move to Automake 1.16.3. |
| 2172 |
|
| 2173 |
* configure.ac (AM_INIT_AUTOMAKE): Add subdir-objects option. |
| 2174 |
* NEWS: Updated. |
| 2175 |
|
| 2176 |
Get `make distcheck' working again: |
| 2177 |
|
| 2178 |
* Makefile.am (EXTRA_DIST): Remove files that are now in build-aux. |
| 2179 |
|
| 2180 |
Unrelated: |
| 2181 |
|
| 2182 |
* builtin.c (do_sub): Remove check for BOOL as target. It's not |
| 2183 |
correct anymore. |
| 2184 |
|
| 2185 |
2021-05-03 Arnold D. Robbins <[email protected]> |
| 2186 |
|
| 2187 |
* eval.c (flags2str): Move BOOL entry into the right place in the |
| 2188 |
list. |
| 2189 |
* NEWS: Update with info on mkbool. |
| 2190 |
|
| 2191 |
2021-05-02 Arnold D. Robbins <[email protected]> |
| 2192 |
|
| 2193 |
* awk.h (do_bool): Renamed do_mkbool. |
| 2194 |
* awkgram.y (tokentab): Rename bool to mkbool. |
| 2195 |
* builtin.c (do_bool): Renamed do_mkbool. |
| 2196 |
|
| 2197 |
2021-04-30 Arnold D. Robbins <[email protected]> |
| 2198 |
|
| 2199 |
* awk.h (boolval): Remove check for BOOL flag. It was incorrect. |
| 2200 |
Thanks to Andrew Schorr for the catch. |
| 2201 |
For Node_val, update the comment to describe the BOOL flag, and |
| 2202 |
move BOOL up to be alongside the flags for Node_val. |
| 2203 |
|
| 2204 |
2021-04-28 Arnold D. Robbins <[email protected]> |
| 2205 |
|
| 2206 |
Make bools plain numbers that have bool flag instead of |
| 2207 |
being weird string values. |
| 2208 |
|
| 2209 |
* array.c (do_sort_up_value_type): Remove special ordering |
| 2210 |
for booleans. |
| 2211 |
* awk.h (warn_bool): Remove declaration. |
| 2212 |
* builtin.c (warn_bool): Remove function and all calls. |
| 2213 |
* gawkapi.c (node_to_awk_value): Update switches to look for |
| 2214 |
NUMBER|BOOL. |
| 2215 |
* node.c (make_bool_node): Revise string values and flag bits. |
| 2216 |
|
| 2217 |
2021-04-16 Arnold D. Robbins <[email protected]> |
| 2218 |
|
| 2219 |
* main.c (arg_assign): For -v '@/...' make sure that there are |
| 2220 |
at least three characters there. Thanks to Ed Morton |
| 2221 |
<[email protected]> for the report. |
| 2222 |
|
| 2223 |
2021-04-14 Arnold D. Robbins <[email protected]> |
| 2224 |
|
| 2225 |
Fix up lint warnings for "no effect" to avoid false warnings. |
| 2226 |
Straighten out the messages, and remove the run-time warning, |
| 2227 |
since a parse-time warning is already issued. Thanks to |
| 2228 |
Arkadiusz Drabczyk <[email protected]> for the initial |
| 2229 |
bug report. |
| 2230 |
|
| 2231 |
* awkgram.y (isnoeffect): Add more opcodes that are "no effect". |
| 2232 |
(add_lint): For LINT_no_effect, check that all the opcodes in the |
| 2233 |
list are "no effect". Only if so, issue the warning. Remove the |
| 2234 |
addition of the run-time warning. |
| 2235 |
* interpret.h (r_interpret): Remove LINT_no_effect from Op_lint |
| 2236 |
case. |
| 2237 |
|
| 2238 |
2021-04-14 Arnold D. Robbins <[email protected]> |
| 2239 |
|
| 2240 |
* array.c (do_sort_up_value_type): Fix order with bools. |
| 2241 |
|
| 2242 |
2021-03-30 Arnold D. Robbins <[email protected]> |
| 2243 |
|
| 2244 |
* gawk_api.h (gawk_api_minor_version): Increase to 2. |
| 2245 |
* gawk_api.c (assign_bool): New function. |
| 2246 |
(node_to_awk_value): Finish updating for bool types and values. |
| 2247 |
|
| 2248 |
2021-03-22 Arnold D. Robbins <[email protected]> |
| 2249 |
|
| 2250 |
* gawkapi.h (make_bool): New inline function. |
| 2251 |
Update table of request/return types. |
| 2252 |
* gawkapi.c (awk_value_to_node): Add support for AWK_BOOL. |
| 2253 |
(node_to_awk_value): Start on same. Not yet complete. |
| 2254 |
|
| 2255 |
2021-03-21 Arnold D. Robbins <[email protected]> |
| 2256 |
|
| 2257 |
* str_array.c (fnv1a_hash_string): New function. |
| 2258 |
(str_array_init): Use fnv1a_hash_string if AWK_HASH env var |
| 2259 |
set to "fnv1a". |
| 2260 |
|
| 2261 |
2021-03-20 Arnold D. Robbins <[email protected]> |
| 2262 |
|
| 2263 |
* array.c (do_sort_up_value_type): Add logic for handling bools. |
| 2264 |
|
| 2265 |
2021-03-08 Arnold D. Robbins <[email protected]> |
| 2266 |
|
| 2267 |
* awk.h (warn_bool, do_bool): Add function declarations. |
| 2268 |
* awkgram.y (tokentab): Add entry for "bool" builtin. |
| 2269 |
* builtin.c (warn_bool): New function. |
| 2270 |
(do_index, do_substr, do_toupper, do_tolower, do_match, |
| 2271 |
do_length): Call it. |
| 2272 |
(do_sub): If first arg to sub/gsub is bool, fatal error. |
| 2273 |
(do_bool): New function. |
| 2274 |
* field.c (do_split, do_patsplit): Call warn_bool. |
| 2275 |
* main.c (load_procinfo_bools): Removed function and call. |
| 2276 |
|
| 2277 |
2021-03-05 Arnold D. Robbins <[email protected]> |
| 2278 |
|
| 2279 |
Start on a bool type for gawk. |
| 2280 |
|
| 2281 |
* awk.h (BOOL): New flag value. |
| 2282 |
(make_bool_node): Add declaration of new function. |
| 2283 |
(bool_val): Check for BOOL along with NUMBER. |
| 2284 |
* builtin.c (do_typeof): Add support for BOOL. |
| 2285 |
* eval.c (flags2str): Ditto. |
| 2286 |
* gawkapi.h (awk_val_type): Add AWK_BOOL. |
| 2287 |
(awk_value_t): Add awk_bool_t element to the union and macro for it. |
| 2288 |
(struct gawk_api): Update the table of request/return values. |
| 2289 |
* main.c (load_procinfo_bools): New function. |
| 2290 |
(load_procinfo): Call it. |
| 2291 |
* node.c (make_bool_node): New function. |
| 2292 |
|
| 2293 |
2021-02-13 Arnold D. Robbins <[email protected]> |
| 2294 |
|
| 2295 |
* io.c (nextfile): Use the value of ARGC directly in the for |
| 2296 |
loop, in case it gets changed by code or by a command line |
| 2297 |
assignment. Thanks to the discussion in comp.lang.awk for |
| 2298 |
the report. |
| 2299 |
|
| 2300 |
2021-01-28 Arnold D. Robbins <[email protected]> |
| 2301 |
|
| 2302 |
Fix a Day One Bug! |
| 2303 |
|
| 2304 |
* main.c (main): For -b option, only set LC_ALL to C if |
| 2305 |
not --posix. Ooops. |
| 2306 |
|
| 2307 |
2021-01-09 Arnold D. Robbins <[email protected]> |
| 2308 |
|
| 2309 |
Fix problems turning something like 018 into decimal. |
| 2310 |
Thanks to Arkadiusz Drabczyk <[email protected]> and to |
| 2311 |
Jean-Philippe Guérard <[email protected]> |
| 2312 |
for the reports. |
| 2313 |
|
| 2314 |
* builtin.c (nondec2awknum): Use a copy of len, in case we detect |
| 2315 |
8 or 9 and have to restart as decimal. |
| 2316 |
* mpfr.c (mpg_strtoui): For 8 or 9, set base to 10. |
| 2317 |
|
| 2318 |
Unrelated: |
| 2319 |
* array.c, awk.h, awkgram., builtin.c, cmd.h, command.y, debug.c, |
| 2320 |
eval.c, gawk.api.c, gawkapi.h, interpret.h, io.c, main.c, mfpr.c, |
| 2321 |
node.c, profile.c, re.c: Update copyright year. |
| 2322 |
|
| 2323 |
2021-01-08 Arnold D. Robbins <[email protected]> |
| 2324 |
|
| 2325 |
General tightening up use of const and types. Thanks to |
| 2326 |
the C++ porting experiment. |
| 2327 |
|
| 2328 |
* array.c (null_array): Separate out multiple assignment of zero. |
| 2329 |
* awk.h: Add <math.h> here and pull it out of individual files. |
| 2330 |
(CONVFMT): Make const char *. |
| 2331 |
(quote): Make const char *. |
| 2332 |
(defpath): Make const char *. |
| 2333 |
(deflibpath): Make const char *. |
| 2334 |
(envsep): Make const char *. |
| 2335 |
(DO_FLAG_NONE): New zero enum value. |
| 2336 |
(getblock): Add a cast to the ty argument. |
| 2337 |
(make_regnode): First argument is now NODETYPE. |
| 2338 |
(gawk_name): Returns const char *. |
| 2339 |
* awkgram.y: Include argument types in read_func pointer. |
| 2340 |
(make_regnode): First argument is now NODETYPE. |
| 2341 |
* builtin.c (do_typeof): Use const char *. |
| 2342 |
(format_nan_inf): Move declaration of val to top of function. |
| 2343 |
* cmd.h (dbg_prompt, commands_prompt, eval_prompt, dgawk_prompt): |
| 2344 |
Make const char *. |
| 2345 |
(struct cmd_token): Use const char *. Rename `class' to `lex_class'. |
| 2346 |
* command.y (lex_class): Update all uses. |
| 2347 |
(find_command): Use const char *. |
| 2348 |
* debug.c (dbg_prompt, commands_prompt, eval_prompt, dgawk_prompt, |
| 2349 |
output_file): Make const char *. |
| 2350 |
(struct dbg_option): Use const char *. |
| 2351 |
(do_info): Use const char *. Cast stop.command to enum argtype. |
| 2352 |
(do_finish): Cast stop.command to enum argtype. |
| 2353 |
(do_return, do_until): Ditto. |
| 2354 |
(print_instruction, set_gawk_output, set_prompt): Add casts to |
| 2355 |
some function parameters. |
| 2356 |
* eval.c (update_ERRNO_int): Use const char *. |
| 2357 |
* gawk.api.c (valtype2str): Return const char *. |
| 2358 |
(api_get_argument): Use awk_true instead of true in return statements. |
| 2359 |
(awk_value_to_node): Move declaration of tval to top of function. |
| 2360 |
(api_release): Cast a_cookie to NODE *. |
| 2361 |
* gawkapi.h (struct awk_input): Include argument types in |
| 2362 |
read_func pointer. |
| 2363 |
* interpret.h (r_interpret): Add cast to argument in call to |
| 2364 |
do_getline_redir. |
| 2365 |
* io.c (read_with_timeout): Change second param to void * from char *. |
| 2366 |
(redirect_string): Add casts to function call parameters. |
| 2367 |
(path_info): Use const char *. |
| 2368 |
(init_awkpath): Ditto. |
| 2369 |
* main.c (CONVFMT, locale_dir): Now const char *. |
| 2370 |
(do_flags): Init to DO_FLAG_NONE instead of zero. |
| 2371 |
* mfpr.c (get_rnd_mode): Add cast to return value. |
| 2372 |
(set_round_mode): Add cast to assignment of rndm. |
| 2373 |
(do_mpfr_func): Include argument types in type of second parameter. |
| 2374 |
* node.c (r_make_number): Remove declaration of strtod. |
| 2375 |
* profile.c (pp_push): Add cast in assignment to n->type. Use |
| 2376 |
const char * for `pre' at Op_func_call. |
| 2377 |
* re.c (check_bracket_exp): Add cast to return from memchr. |
| 2378 |
|
| 2379 |
2021-01-07 Arnold D. Robbins <[email protected]> |
| 2380 |
|
| 2381 |
* builtin.c (format_tree): Generalize handling of invalid |
| 2382 |
format modifiers. Add support for three more letters. Thanks to |
| 2383 |
Arkadiusz Drabczyk <[email protected]> for the report. |
| 2384 |
|
| 2385 |
Unrelated: |
| 2386 |
|
| 2387 |
* io.c (rsnullscan): Adjust loop test to get to end of string |
| 2388 |
when re match is null string. Thanks to Ed Morton |
| 2389 |
<[email protected]> for the report. |
| 2390 |
|
| 2391 |
2020-12-26 Arnold D. Robbins <[email protected]> |
| 2392 |
|
| 2393 |
* NEWS: Updated. |
| 2394 |
|
| 2395 |
2020-12-20 Arnold D. Robbins <[email protected]> |
| 2396 |
|
| 2397 |
Second steps fixing +inform, +nancy, for MPFR. |
| 2398 |
|
| 2399 |
* builtin.c (format_nan_inf): Use mpfr_signbit instead of mpfr_sgn. |
| 2400 |
* mpfr.c (force_mpnum): Check for NaN and leading minus and if so |
| 2401 |
set the signbit with mpfr_setsign. |
| 2402 |
(mpg_force_number): Copy in code from f_force_number to check |
| 2403 |
properly for +inf, +nan. |
| 2404 |
|
| 2405 |
2020-12-19 Arnold D. Robbins <[email protected]> |
| 2406 |
|
| 2407 |
First steps fixing +inform, +nancy. Sigh. |
| 2408 |
|
| 2409 |
* awk.h (is_ieee_magic_val): Add declaration. |
| 2410 |
* node.c (is_ieee_magic_val): Make extern, not static. |
| 2411 |
(r_force_number): Make the check smarter, catch -nan. |
| 2412 |
|
| 2413 |
2020-11-02 Arnold D. Robbins <[email protected]> |
| 2414 |
|
| 2415 |
Make gawk numeric comparisons act like C doubles. |
| 2416 |
MPFR differs from doubles w.r.t. NaN, not sure why yet. |
| 2417 |
|
| 2418 |
* awk.h (scalar_cmp_t): New enum. |
| 2419 |
* builtin.c (format_nan_inf): Use mpfr_signbit, not mpfr_sgn. |
| 2420 |
* eval.c (cmp_doubles): New routine. |
| 2421 |
(cmp_scalars): Change type to bool, rework logic. |
| 2422 |
* interpret.h (r_interpret): Rework scalar comparisons. |
| 2423 |
* mpfr.c (mpg_cmp_as_numbers): New routine. |
| 2424 |
* node.c: Use <math.h>, not "math.h", minor comment edits. |
| 2425 |
|
| 2426 |
2020-11-02 Arnold D. Robbins <[email protected]> |
| 2427 |
|
| 2428 |
* re.c (make_regexp): Cast len parameter to int to avoid |
| 2429 |
compiler warnings. |
| 2430 |
|
| 2431 |
2020-10-31 Arnold D. Robbins <[email protected]> |
| 2432 |
|
| 2433 |
* re.c (make_regexp): When re_compile_pattern fails, use the |
| 2434 |
original text of the regexp in the error message. Thanks to Neil |
| 2435 |
R. Ormos <[email protected]> for the report. |
| 2436 |
|
| 2437 |
2020-10-29 Arnold D. Robbins <[email protected]> |
| 2438 |
|
| 2439 |
* eval.c (setup_frame): Handle the case of values from FUNCTAB. |
| 2440 |
Thanks to Denis Shirokov <[email protected]> for the report. |
| 2441 |
|
| 2442 |
2020-10-12 Arnold D. Robbins <[email protected]> |
| 2443 |
|
| 2444 |
* gawkapi.c (api_lintwarn): Fix comparison, should be to check |
| 2445 |
lintfunc, not lintwarn. Thanks to OLLIER Jean-François |
| 2446 |
<[email protected]>, reported 23 March, 2014. |
| 2447 |
|
| 2448 |
2020-10-11 Arnold D. Robbins <[email protected]> |
| 2449 |
|
| 2450 |
* re.c (make_regexp): Add {} to characters that cause rp->maybe_long |
| 2451 |
to be true. |
| 2452 |
* io.c (rsrescan): Update comment for step 4. |
| 2453 |
|
| 2454 |
2020-09-21 Arnold D. Robbins <[email protected]> |
| 2455 |
|
| 2456 |
* awk.h (enum redirect_flags): Add RED_NONE. |
| 2457 |
(redirect_flags_t): New typedef. |
| 2458 |
* io.c (redflags2str): Handle RED_NONE. |
| 2459 |
(check_duplicated_redirections): New function. |
| 2460 |
(redirect_string): Use new typedef. Call new function if do_lint |
| 2461 |
instead of using inline code. |
| 2462 |
(close_redir): Add error message for failure on close of two-way pipe. |
| 2463 |
|
| 2464 |
2020-09-04 Arnold D. Robbins <[email protected]> |
| 2465 |
|
| 2466 |
* awkgram.y [GRAMMAR]: Install arrays as Node_var_array. Improves |
| 2467 |
PROCINFO["identifiers"]. Thanks to [email protected] |
| 2468 |
for the report. |
| 2469 |
|
| 2470 |
2020-08-25 Arnold D. Robbins <[email protected]> |
| 2471 |
|
| 2472 |
* interpret.h (r_interpret): At Op_rule, check if in BEGINFILE. If so, |
| 2473 |
clear the record. Fixes an issue reported by Pat Rankin in May, 2011. |
| 2474 |
|
| 2475 |
2020-08-24 Arnold D. Robbins <[email protected]> |
| 2476 |
|
| 2477 |
* awkgram.y, builtin.c, command.y, debug.c, gawkapi.c, |
| 2478 |
io.c, node.c: Make all messages consistent: Remove final periods |
| 2479 |
from messages that had them. |
| 2480 |
* TODO: Updated. |
| 2481 |
|
| 2482 |
2020-08-20 Arnold D. Robbins <[email protected]> |
| 2483 |
|
| 2484 |
* awk.h (NODE): Move valref completely out of the union. Fixes |
| 2485 |
core dumps on old GCC on CentOS 7. |
| 2486 |
|
| 2487 |
2020-08-13 Arnold D. Robbins <[email protected]> |
| 2488 |
|
| 2489 |
Fix TIDYMEM / use of mtrace. |
| 2490 |
|
| 2491 |
* configure.ac: Add mtrace to list of functions searched for. |
| 2492 |
* symbol.c (make_symbol): Set valref to 1. Allows the |
| 2493 |
release_all_vars function to work. |
| 2494 |
|
| 2495 |
Unrelated: |
| 2496 |
|
| 2497 |
* array.c (value_info): Spell ROUNDMODE correctly in output. |
| 2498 |
* mpfr.c (set_ROUNDMODE): Ditto. |
| 2499 |
|
| 2500 |
2020-08-12 Arnold D. Robbins <[email protected]> |
| 2501 |
|
| 2502 |
* awkgram.c, command.c: Regenerated with Bison 3.7.1. |
| 2503 |
* NEWS: Updated. |
| 2504 |
|
| 2505 |
Unrelated: |
| 2506 |
|
| 2507 |
* profile.c (pp_namespace): Always print a newline before the |
| 2508 |
@namespace, in case it comes after a comment. Thanks to J Naman |
| 2509 |
for the report. |
| 2510 |
* symbol.c (comp_symbol): Adjust comparison so that names in the |
| 2511 |
awk namespace come out first. Makes the order of functions in |
| 2512 |
pretty-printed output more sane. Thanks also to J Naman for |
| 2513 |
getting me to explore this issue. |
| 2514 |
|
| 2515 |
2020-07-29 Arnold D. Robbins <[email protected]> |
| 2516 |
|
| 2517 |
* custom.h (FLEXIBLE_ARRAY_MEMBER): Define to 1 for dfa.h. |
| 2518 |
|
| 2519 |
2020-07-28 Arnold D. Robbins <[email protected]> |
| 2520 |
|
| 2521 |
Eliminate 'iszero: redefined' warning from tcc. |
| 2522 |
|
| 2523 |
* awk.h (is_zero): Renamed from `iszero'. |
| 2524 |
(boolval): Update usage. |
| 2525 |
* awkgram.y [GRAMMAR]: Ditto. |
| 2526 |
(negate_num): Ditto. |
| 2527 |
* debug.c (condition_triggered): Ditto. |
| 2528 |
* eval.c (set_LINT): Ditto. |
| 2529 |
|
| 2530 |
2020-07-26 Arnold D. Robbins <[email protected]> |
| 2531 |
|
| 2532 |
* awkgram.c, command.c: Regenerated with Bison 3.7. |
| 2533 |
* NEWS: Updated. |
| 2534 |
|
| 2535 |
Unrelated: |
| 2536 |
|
| 2537 |
* gawkapi.h (api_get_mpfr, api_get_mpz): Mark as obsolete. |
| 2538 |
|
| 2539 |
2020-07-22 Arnold D. Robbins <[email protected]> |
| 2540 |
|
| 2541 |
* Makefile.in: Regenerated. |
| 2542 |
|
| 2543 |
2020-07-21 Arnold D. Robbins <[email protected]> |
| 2544 |
|
| 2545 |
* configure.ac (AM_INIT_AUTOMAKE): Update to 1.16. |
| 2546 |
* ar-lib, compile, config.guess, config.rpath, config.sub, |
| 2547 |
depcomp, install-sh, missing, ylwrap: Moved to build-aux. |
| 2548 |
|
| 2549 |
2020-07-20 gettextize <[email protected]> |
| 2550 |
|
| 2551 |
* configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.20.2. |
| 2552 |
|
| 2553 |
2020-07-19 Arnold D. Robbins <[email protected]> |
| 2554 |
|
| 2555 |
* NEWS: Fix title on leading set of changes. Thanks to |
| 2556 |
Marcus <[email protected]> for the report. |
| 2557 |
|
| 2558 |
Unrelated: Bump minor API version since semantics have changed. |
| 2559 |
|
| 2560 |
* gawkapi.h (api_minor_version): Increase to 1. |
| 2561 |
|
| 2562 |
Unrelated: Fix a spelling error in a comment. |
| 2563 |
|
| 2564 |
* mpfr.c (force_mpnum): Fix a typo. |
| 2565 |
|
| 2566 |
2020-07-17 Arnold D. Robbins <[email protected]> |
| 2567 |
|
| 2568 |
* gawkapi.h (gawk_api_minor_version): Increase, since the |
| 2569 |
MPFR/MPZ stuff changed some. Remains source and binary |
| 2570 |
compatible, but semantics are different. |
| 2571 |
|
| 2572 |
2020-07-15 Arnold D. Robbins <[email protected]> |
| 2573 |
|
| 2574 |
Finish cleaning up MPFR valgrind issues. |
| 2575 |
|
| 2576 |
* awk.h (struct block_header): Remove MPFR and GMP enums. |
| 2577 |
* gawkapi.c (getmpfr, freempfr, getmpz, freempz): Removed |
| 2578 |
(api_get_mpfr): Use emalloc instead of getmpfr. |
| 2579 |
(api_get_mpz): Use emalloc instead of getmpz. |
| 2580 |
* gawkapi.h: Add comments on MPFR and MPZ |
| 2581 |
(make_number_mpfr, make_number_mpz): Update comments. |
| 2582 |
* node.c (nextfree): Remove mpfr and mpz entries. |
| 2583 |
* NEWS: Updated. |
| 2584 |
|
| 2585 |
Unrelated: |
| 2586 |
|
| 2587 |
* config.guess, config.sub: Updated from GNULIB. |
| 2588 |
|
| 2589 |
2020-07-13 Arnold D. Robbins <[email protected]> |
| 2590 |
|
| 2591 |
* mpfr.c (mpg_interpret): Small speedup. If do_itrace and opcode is |
| 2592 |
not one that's handled, return early. |
| 2593 |
|
| 2594 |
2020-07-12 Arnold D. Robbins <[email protected]> |
| 2595 |
|
| 2596 |
* mpfr.c (mpg_interpret): Make the instruction tracing more sane. |
| 2597 |
|
| 2598 |
Fix the testext test for MPFR. |
| 2599 |
|
| 2600 |
* gawkapi.c (awk_value_to_node): Use correct code to copy |
| 2601 |
MPFR/MPN numbers and don't free the original values. |
| 2602 |
* interpret.h (r_interpret): At Op_ext_builtin, separate out calls |
| 2603 |
to the external function and awk_value_to_node, for ease in a |
| 2604 |
debugger. |
| 2605 |
* NEWS: Updated. |
| 2606 |
|
| 2607 |
2020-07-10 Arnold D. Robbins <[email protected]> |
| 2608 |
|
| 2609 |
Fix printf issues. Thanks to Michal Jaegermann for the report. |
| 2610 |
|
| 2611 |
* cint_array.c (cint_dump): Fix printf formats. |
| 2612 |
* debug.c (print_symbol): Ditto. |
| 2613 |
* mpfr.c (mpg_interpret): Ditto. |
| 2614 |
|
| 2615 |
2020-07-09 Arnold D. Robbins <[email protected]> |
| 2616 |
|
| 2617 |
Fix dbugeval2 test for MPFR. |
| 2618 |
|
| 2619 |
* debug.c (do_eval): Preserve DO_MPFR flag in do_flags before |
| 2620 |
parsing the string to be evaluated. |
| 2621 |
|
| 2622 |
Fix indirect call tests for MPFR: |
| 2623 |
|
| 2624 |
* awkgram.y (lookup_builtin): Only return the MPFR builtin |
| 2625 |
function if the pointer is not NULL. |
| 2626 |
|
| 2627 |
Unrelated: |
| 2628 |
|
| 2629 |
* config.guess, config.sub: Updated from GNULIB. |
| 2630 |
|
| 2631 |
2020-07-08 Arnold D. Robbins <[email protected]> |
| 2632 |
|
| 2633 |
* str_array.c (str_lookup): If a pure number, copy to a string. Fixes |
| 2634 |
the printfchar test for MPFR. |
| 2635 |
|
| 2636 |
Fix typedregex2 and typedregex3 tests for MPFR: |
| 2637 |
|
| 2638 |
* mpfr.c (mpg_zero): No longer static inline. |
| 2639 |
(force_mpnum): Handle the case of a strongly typed regex. |
| 2640 |
(mpg_interpret): Add tracing for do_itrace. |
| 2641 |
* awk.h (mpg_zero): Add declaration. |
| 2642 |
* node.c (make_typed_regex): Init to zero for MPFR via mpg_zero. |
| 2643 |
|
| 2644 |
2020-07-07 Arnold D. Robbins <[email protected]> |
| 2645 |
|
| 2646 |
* awk.h: Turn all the flag defines into enums. GDB can then show |
| 2647 |
the bit maps directly. |
| 2648 |
|
| 2649 |
Unrelated: Fix another MPFR bug, reported by Hyunho Cho |
| 2650 |
<[email protected]>. |
| 2651 |
|
| 2652 |
* mpfr.c (force_mpnum): Restore the character at the end of |
| 2653 |
the string if only saw + or -. |
| 2654 |
|
| 2655 |
2020-07-07 Andrew J. Schorr <[email protected]> |
| 2656 |
|
| 2657 |
* node.c (r_dupnode): Sanitize the code, particularly for MPFR. |
| 2658 |
|
| 2659 |
2020-07-05 Arnold D. Robbins <[email protected]> |
| 2660 |
|
| 2661 |
Bug fixes in MPFR, reported by Hyunho Cho <[email protected]>. |
| 2662 |
|
| 2663 |
* node.c (r_dupnode): Set strndmode and also set stlen of new |
| 2664 |
string. (How did that one get by us for so long?) |
| 2665 |
* mpfr.c (force_mpnum): Check for a + or - sign with nothing |
| 2666 |
following it. |
| 2667 |
|
| 2668 |
Unrelated. Make do_itrace a real variable so that it's easier to |
| 2669 |
change the value from a debugger. |
| 2670 |
|
| 2671 |
* awk.h (do_itrace): Declare. |
| 2672 |
(DO_ITRACE, do_itrace): Remove macros. |
| 2673 |
* main.c (do_itrace): Define. |
| 2674 |
(parse_args): Set do_itrace. |
| 2675 |
|
| 2676 |
2020-07-03 Arnold D. Robbins <[email protected]> |
| 2677 |
|
| 2678 |
Fix a double free error with -M. Thanks to |
| 2679 |
"NIDE, Naoyuki" <[email protected]> for the report. |
| 2680 |
|
| 2681 |
* field.c (clear_mpfr): New macro, clears MPFR and NUMCUR bits. |
| 2682 |
(reset_record): Use it on the newly copied field values. |
| 2683 |
(purge_record): Add introductory comment since we're in the file. |
| 2684 |
|
| 2685 |
2020-07-01 Arnold D. Robbins <[email protected]> |
| 2686 |
|
| 2687 |
* eval.c (posix_compare): Rewrite contributed by |
| 2688 |
Michael Builov <[email protected]>. |
| 2689 |
|
| 2690 |
Unrelated: |
| 2691 |
|
| 2692 |
* awk.h: New option: do_itrace. |
| 2693 |
* interpret.h (r_interpret): Print instruction trace if enabled. |
| 2694 |
* main.c (optab): New option: -I/--trace. |
| 2695 |
(parse_args): Update optlist and the code to handle it. |
| 2696 |
* NEWS: Updated. |
| 2697 |
|
| 2698 |
2020-06-29 Arnold D. Robbins <[email protected]> |
| 2699 |
|
| 2700 |
* debug.c: Cleanup messages. Error messages start with lower |
| 2701 |
case letter. |
| 2702 |
* TODO: Updated. |
| 2703 |
|
| 2704 |
2020-06-14 Arnold D. Robbins <[email protected]> |
| 2705 |
|
| 2706 |
Disallow SYMTAB and FUNCTAB as destination arguments to builtin |
| 2707 |
functions that clear arrays: |
| 2708 |
|
| 2709 |
* awk.h (check_symtab_functab): Add declaration. |
| 2710 |
* array.c (asort_actual): Call it in check for second argument. |
| 2711 |
* builtin.c (check_symtab_functab): New function. |
| 2712 |
(do_match): Call it in check for third argument. |
| 2713 |
* field.c (do_patsplit, do_split): Call it in checks for fourth and |
| 2714 |
second arguments. |
| 2715 |
|
| 2716 |
2020-06-12 Arnold D. Robbins <[email protected]> |
| 2717 |
|
| 2718 |
* array.c (asort_actual): If SYMTAB or FUNCTAB is the second argument, |
| 2719 |
fatal out. If they are the first argument, make it work when a |
| 2720 |
second argument is supplied. |
| 2721 |
* TODO, NEWS: Updated. |
| 2722 |
|
| 2723 |
2020-06-10 Arnold D. Robbins <[email protected]> |
| 2724 |
|
| 2725 |
More miscellaneous fixes from Michael Builov <[email protected]>. |
| 2726 |
|
| 2727 |
* node.c (r_unref): Handle GAWKDEBUG same as in awk.h:unref. |
| 2728 |
(parse_escape): isxdigit/isdigit/isupper called with possible negative |
| 2729 |
int: fixed. Dead code under "if (do_lint && j > 2)" eliminated, |
| 2730 |
j cannot be > 2. |
| 2731 |
(init_btowc_cache): Also initialize wide-char at index 255. |
| 2732 |
|
| 2733 |
And so that `make check' passes with GAWKDEBUG defined: |
| 2734 |
|
| 2735 |
* msg.c (err): Remove abort() call if fatal. Didn't really do |
| 2736 |
anything special for us. |
| 2737 |
|
| 2738 |
2020-06-10 Arnold D. Robbins <[email protected]> |
| 2739 |
|
| 2740 |
* awkgram.c, command.c: Regenerated with bison 3.6.3. |
| 2741 |
* NEWS: Updated. |
| 2742 |
|
| 2743 |
2020-06-10 Andrew J. Schorr <[email protected]> |
| 2744 |
|
| 2745 |
Convert exec_count from long long to unsigned long long. |
| 2746 |
* awk.h (INSTRUCTION): Change ldl type from long long to unsigned |
| 2747 |
long long. |
| 2748 |
* debug.c (print_instruction): Fix printf format for exec_count. |
| 2749 |
* profile.c (indent): The argument is now an unsigned long long, |
| 2750 |
and fix the printf format to match. |
| 2751 |
|
| 2752 |
2020-06-10 Arnold D. Robbins <[email protected]> |
| 2753 |
|
| 2754 |
Miscellaneous fixes from Michael Builov <[email protected]>. |
| 2755 |
|
| 2756 |
* awkgram.y (rule_block): Fix size declaration |
| 2757 |
(parse_program): Adjust memset call. |
| 2758 |
(get_comment): Check for end of file before checking for space. |
| 2759 |
* io.c (gawk_popen): Move os_close_on_exec call inside #endif. |
| 2760 |
* builtin.c (do_bindtextdomain): Don't pass NULL to strlen. |
| 2761 |
* debug.c (set_breakpoint): Don't dereference NULL pointer in D_func. |
| 2762 |
(serialize_list): Get the buffer management right to avoid overrun. |
| 2763 |
|
| 2764 |
2020-06-10 Arnold D. Robbins <[email protected]> |
| 2765 |
|
| 2766 |
Thanks to Andrew Schorr for suggesting a better way to |
| 2767 |
handle exec_count being a long long. |
| 2768 |
|
| 2769 |
* awk.h (INSTRUCTION): Make new ldl member be the long long. |
| 2770 |
(exec_count): Is now ldl. |
| 2771 |
* profile.c (pprint): Fix printf of exec_count. |
| 2772 |
|
| 2773 |
2020-06-09 Arnold D. Robbins <[email protected]> |
| 2774 |
|
| 2775 |
* awkgram.y (tokexpand): Use size_t instead of int for size of |
| 2776 |
buffer. |
| 2777 |
|
| 2778 |
2020-06-08 Arnold D. Robbins <[email protected]> |
| 2779 |
|
| 2780 |
* awkgram.y: Fix `print $"2"' case. Thanks to Ed Morton |
| 2781 |
<[email protected]> for the report. |
| 2782 |
|
| 2783 |
Unrelated: |
| 2784 |
|
| 2785 |
* awk.h (INSTRUCTION): Make dl a long long for profiling |
| 2786 |
counts on 32 bit systems. Thanks to Peter Lindgren |
| 2787 |
for the report. |
| 2788 |
* profile.c (indent): Take a long long parameter and fix |
| 2789 |
the printf format. |
| 2790 |
|
| 2791 |
2020-06-05 Arnold D. Robbins <[email protected]> |
| 2792 |
|
| 2793 |
* awkgram.y: Allow @/foo/ as return expression in a function. |
| 2794 |
Oops. |
| 2795 |
|
| 2796 |
2020-06-05 Arnold D. Robbins <[email protected]> |
| 2797 |
|
| 2798 |
* configure.ac: Add call to AM_PROG_AR for use in |
| 2799 |
cross compiles. Thanks to Sergei Trofimovich <[email protected]> |
| 2800 |
for the patch. |
| 2801 |
|
| 2802 |
2020-05-15 Arnold D. Robbins <[email protected]> |
| 2803 |
|
| 2804 |
* config.guess, config.sub: Updated from GNULIB. |
| 2805 |
|
| 2806 |
2020-05-14 Arnold D. Robbins <[email protected]> |
| 2807 |
|
| 2808 |
* awkgram.c, command.c: Rebuild with Bison 3.6. |
| 2809 |
* NEWS: Updated. |
| 2810 |
|
| 2811 |
2020-05-06 Arnold D. Robbins <[email protected]> |
| 2812 |
|
| 2813 |
Add lint check for string + string. It's not concatenation |
| 2814 |
in awk, but is in most other languages. Thanks to Roland Illig |
| 2815 |
<[email protected]> for the suggestion. |
| 2816 |
|
| 2817 |
* awk.h (Op_lint_plus): New opcode. |
| 2818 |
* awkgram.y (mk_binary): Add it into the list in the right place |
| 2819 |
if do_lint. |
| 2820 |
* eval.c (optypes): Add case for Op_lint_plus. |
| 2821 |
* interpret.h (r_interpret): Ditto. |
| 2822 |
|
| 2823 |
2020-04-14 Arnold D. Robbins <[email protected]> |
| 2824 |
|
| 2825 |
* 5.1.0: Release tar ball made. |
| 2826 |
|
| 2827 |
2020-04-10 Arnold D. Robbins <[email protected]> |
| 2828 |
|
| 2829 |
* field.c (save_FPAT): New global variable. |
| 2830 |
(get_field): Check if using FPAT or not in order to pass in |
| 2831 |
the right variables to parse_field function. Fixes bug in |
| 2832 |
delayed field parsing when using FPAT. Thanks to |
| 2833 |
luciole75w <[email protected]> for the bug report. |
| 2834 |
(set_FPAT): Use global save_FPAT instead of local save_fpat. |
| 2835 |
|
| 2836 |
Unrelated: |
| 2837 |
|
| 2838 |
* awkgram.c, command.c: Rebuild with Bison 3.5.4. |
| 2839 |
* NEWS: Updated. |
| 2840 |
|
| 2841 |
Unrelated: |
| 2842 |
|
| 2843 |
* awk.h (do_lint_extensions): Define to zero if NO_LINT. |
| 2844 |
|
| 2845 |
2020-04-02 Arnold D. Robbins <[email protected]> |
| 2846 |
|
| 2847 |
* field.c (re_parse_field): If default parsing and trailing |
| 2848 |
whitespace, don't set a null field at the end. Thanks to |
| 2849 |
Ed Morton <[email protected]> for the report. |
| 2850 |
|
| 2851 |
2020-03-18 Arnold D. Robbins <[email protected]> |
| 2852 |
|
| 2853 |
* TODO: Add more stuff. |
| 2854 |
|
| 2855 |
2020-03-15 Arnold D. Robbins <[email protected]> |
| 2856 |
|
| 2857 |
* Makefile.am (zos-diffout): New target. |
| 2858 |
* awkgram.y, command.y: Upgrade to Bison 3.5.3. |
| 2859 |
* NEWS: Updated. |
| 2860 |
|
| 2861 |
2020-03-11 Arnold D. Robbins <[email protected]> |
| 2862 |
|
| 2863 |
* main.c: Further message update. Thanks again to |
| 2864 |
Roland Illig <[email protected]>. |
| 2865 |
|
| 2866 |
2020-03-09 Andrew J. Schorr <[email protected]> |
| 2867 |
|
| 2868 |
* array.c (sort_up_value_string): If either arg is not a Node_val, |
| 2869 |
call out to sort_up_value_type instead. If cmp_strings returns zero, |
| 2870 |
fall back to sort_up_index_string as a tie-breaker. |
| 2871 |
(sort_up_value_number): If either arg is not a Node_val, call out to |
| 2872 |
sort_up_value_type instead. If cmp_strings returns zero, fall back |
| 2873 |
to sort_up_index_string as a tie-breaker. |
| 2874 |
(do_sort_up_value_type): Renamed from sort_up_value_type with one |
| 2875 |
change: if both arguments have type Node_var, we compare the |
| 2876 |
var_value NODEs instead. |
| 2877 |
(sort_up_value_type): New wrapper function around do_sort_up_value_type |
| 2878 |
to fall back to sort_up_index_string as a tie-breaker. |
| 2879 |
|
| 2880 |
2020-03-09 Arnold D. Robbins <[email protected]> |
| 2881 |
|
| 2882 |
* array.c, awk.h, awkgram.y, builtin.c, command.y, debug.c, |
| 2883 |
ext.c, int_array.c, io.c, main.c, symbol.c: Messages refined |
| 2884 |
based on suggestions from Roland Illig <[email protected]>. |
| 2885 |
|
| 2886 |
2020-03-06 Jannick <[email protected]> |
| 2887 |
|
| 2888 |
* Makefile.am: Replace AM_MAKEFLAGS with AM_CFLAGS and AM_LDFLAGS. |
| 2889 |
Put pc/Makefile.tst into BUILT_SOURCES, instead of in dist-hook. |
| 2890 |
Add $(srcdir) to rules for the yacc files. Use AM_LDFLAGS in |
| 2891 |
the efence rule. |
| 2892 |
* configure.ac: Use GAWK_CANONICAL_HOST instead of AC_CANONICAL_HOST; |
| 2893 |
this supplies MSYS2 support. Remove use of EXEEXT. |
| 2894 |
|
| 2895 |
2020-03-04 Arnold D. Robbins <[email protected]> |
| 2896 |
|
| 2897 |
* NEWS: Updated. |
| 2898 |
|
| 2899 |
2020-02-13 John E. Malmberg <[email protected]> |
| 2900 |
|
| 2901 |
* custom.h: OpenVMS needs _REGEX_INCLUDE_LIMITS_H defined. |
| 2902 |
|
| 2903 |
2020-02-09 Arnold D. Robbins <[email protected]> |
| 2904 |
|
| 2905 |
* awkgram.y: Add lint check for assignment in condition to |
| 2906 |
if and for statements. Thanks to Jannick <[email protected]> |
| 2907 |
for the suggestion. |
| 2908 |
* debug.c (do_eval): Remove @eval from the symbol table if there |
| 2909 |
was a syntax error in the statement being evaluated. Thanks again |
| 2910 |
to Jannick, for the report. |
| 2911 |
|
| 2912 |
2020-02-04 John E. Malmberg <[email protected]> |
| 2913 |
|
| 2914 |
* custom.h: Fix OpenVMS SIZE_MAX value. |
| 2915 |
|
| 2916 |
2020-02-01 Arnold D. Robbins <[email protected]> |
| 2917 |
|
| 2918 |
* awk.h, dfa.c: Move include of mbsupport.h to ... |
| 2919 |
* custom.h: ... here. |
| 2920 |
* configure.ac: Add check for isblank. |
| 2921 |
|
| 2922 |
2020-01-27 Arnold D. Robbins <[email protected]> |
| 2923 |
|
| 2924 |
* custom.h: Fix non-VMS compilation. |
| 2925 |
|
| 2926 |
2020-01-26 John E. Malmberg <[email protected]> |
| 2927 |
|
| 2928 |
* custom.h: Additional OpenVMS typedefs needed. |
| 2929 |
* gettext.h: Fix macro for implementations without gettext |
| 2930 |
to not force the result to be a const char *. |
| 2931 |
|
| 2932 |
2020-01-26 Andrew J. Schorr <[email protected]> |
| 2933 |
|
| 2934 |
* array.c (sort_up_value_type): Small efficiency tweak. Only |
| 2935 |
run through the list of other types if both values are not scalars. |
| 2936 |
|
| 2937 |
2020-01-24 Arnold D. Robbins <[email protected]> |
| 2938 |
|
| 2939 |
* array.c, profile.c, cint_array.c, builtin.c, interpret.h, |
| 2940 |
main.c: Update copyright years. |
| 2941 |
|
| 2942 |
2020-01-23 Arnold D. Robbins <[email protected]> |
| 2943 |
|
| 2944 |
* array.c (sort_up_value_type): Handle other types of nodes, |
| 2945 |
in case someone applies PROCINFO["sorted_in"] to SYMTAB or |
| 2946 |
FUNCTAB. This threw an assertion error if assertions were |
| 2947 |
enabled. Thanks to John Namam <[email protected]> for the report. |
| 2948 |
(asort_actual): Disallow SYMTAB and FUNCTAB as first arguments. |
| 2949 |
* TODO: Note that we should should eventually allow SYMTAB/FUNCTAB |
| 2950 |
passed to asort/asorti if a destination array is provided. (The |
| 2951 |
current code breaks right now.) |
| 2952 |
|
| 2953 |
2020-01-19 Arnold D. Robbins <[email protected]> |
| 2954 |
|
| 2955 |
* profile.c (pp_top): New macro. |
| 2956 |
(pprint): Be smarter for print[f] with redirection that was |
| 2957 |
parenthesized, to not print `printf(("hello\n")) > "..."'. |
| 2958 |
|
| 2959 |
Unrelated: |
| 2960 |
* compile, config.guess, config.rpath, config.sub, depcomp: Updated |
| 2961 |
from GNULIB. |
| 2962 |
|
| 2963 |
2020-01-14 Andrew J. Schorr <[email protected]> |
| 2964 |
|
| 2965 |
* cint_array.c (cint_array_init): Fix off-by-one error in array |
| 2966 |
bounds overflow check for an NHAT value set in the environment. |
| 2967 |
Thanks to Michael Builov <[email protected]> for the report. |
| 2968 |
|
| 2969 |
2020-01-08 Arnold D. Robbins <[email protected]> |
| 2970 |
|
| 2971 |
Fix a number of subtle memory leaks. Thanks to the |
| 2972 |
combination of MEMDEBUG and valgrind for finding them. |
| 2973 |
|
| 2974 |
* builtin.c (do_print): Unref tmp if force_string_ofmt |
| 2975 |
returned something different. |
| 2976 |
(call_sub, call_match, call_split_func): Free any |
| 2977 |
created regexp. |
| 2978 |
* debug.c (do_eval): Free the node holding the @eval function |
| 2979 |
when done with it. |
| 2980 |
* field.c (init_fields): Create fields_arr[0] and Nnull_field |
| 2981 |
in a rational fashion. |
| 2982 |
* interpret.h (Op_assign_concat): Handle newly created node |
| 2983 |
better. |
| 2984 |
|
| 2985 |
Unrelated: |
| 2986 |
|
| 2987 |
* interpret.h (Op_subscript): When retrieving from SYMTAB, check |
| 2988 |
for Node_var_new; variables can exist but have not been assigned |
| 2989 |
a value. Thanks to Denis Shirokov <[email protected]> for the report. |
| 2990 |
|
| 2991 |
Unrelated: |
| 2992 |
|
| 2993 |
* builtin.c (do_typeof): Handle Node_array_ref also. Thanks to |
| 2994 |
Denis Shirokov <[email protected]> for the report. |
| 2995 |
|
| 2996 |
2019-12-22 Arnold D. Robbins <[email protected]> |
| 2997 |
|
| 2998 |
* config.guess: Updated from GNULIB. |
| 2999 |
|
| 3000 |
2019-12-22 Jannick <[email protected]> |
| 3001 |
|
| 3002 |
* configure.ac: Hardcode the shared object extension to dll |
| 3003 |
on Windows platforms, i.e.whenever EXEEXT is '.exe'. |
| 3004 |
|
| 3005 |
2019-12-22 Arnold D. Robbins <[email protected]> |
| 3006 |
|
| 3007 |
* gettext.h: Update from gettext 0.20.1. |
| 3008 |
* NEWS: Updated. |
| 3009 |
|
| 3010 |
2019-12-18 Paul Eggert <[email protected]> |
| 3011 |
|
| 3012 |
Fix memcpy issue found by -fsanitize=undefined |
| 3013 |
* field.c (set_record): Don't memcpy (databuf, NULL, 0), |
| 3014 |
as the C standard says the resulting behavior is undefined. |
| 3015 |
|
| 3016 |
2019-12-16 Arnold D. Robbins <[email protected]> |
| 3017 |
|
| 3018 |
* awkgram.y, command.y: Upgrade to Bison 3.5. |
| 3019 |
* NEWS: Updated. |
| 3020 |
|
| 3021 |
2019-11-21 Arnold D. Robbins <[email protected]> |
| 3022 |
|
| 3023 |
* config.rpath: Update from GNULIB. |
| 3024 |
|
| 3025 |
2019-11-10 Arnold D. Robbins <[email protected]> |
| 3026 |
|
| 3027 |
* compile, config.rpath: Update from GNULIB. Adds msys support. |
| 3028 |
|
| 3029 |
2019-11-03 Arnold D. Robbins <[email protected]> |
| 3030 |
|
| 3031 |
* field.c (get_field): Remove special case code for fpat_parse_field. |
| 3032 |
Fixes a bug reported by Ed Morton <[email protected]>. |
| 3033 |
|
| 3034 |
2019-10-19 Arnold D. Robbins <[email protected]> |
| 3035 |
|
| 3036 |
* compile, depcomp: Update from GNULIB. |
| 3037 |
|
| 3038 |
2019-10-13 Arnold D. Robbins <[email protected]> |
| 3039 |
|
| 3040 |
Fix handling of assigning @/.../ to FS and RS. Thanks |
| 3041 |
to Stephane Chazelas <[email protected]> |
| 3042 |
for the report. |
| 3043 |
|
| 3044 |
* field.c (set_FS): Check for REGEX in the flags. |
| 3045 |
* io.c (set_RS): Ditto. |
| 3046 |
|
| 3047 |
2019-10-04 Arnold D. Robbins <[email protected]> |
| 3048 |
|
| 3049 |
* config.guess, config.sub, install-sh: Updated from GNULIB. |
| 3050 |
|
| 3051 |
2019-09-30 John E. Malmberg <[email protected]> |
| 3052 |
|
| 3053 |
* custom.h: OpenVMS does not provide ULLONG_MAX |
| 3054 |
|
| 3055 |
2019-09-20 Florian Weimer <[email protected]> |
| 3056 |
|
| 3057 |
* configure.ac (PRINTF_HAS_F_FORMAT): Include <string.h> for |
| 3058 |
strcmp. |
| 3059 |
(PRINTF_HAS_A_FORMAT): Likewise. |
| 3060 |
* configure: Regenerate. |
| 3061 |
|
| 3062 |
2019-09-17 Arnold D. Robbins <[email protected]> |
| 3063 |
|
| 3064 |
* awkgram.y, commands.y: Upgrade to Bison 3.4.2. |
| 3065 |
* NEWS: Updated. |
| 3066 |
|
| 3067 |
2019-09-10 Andrew J. Schorr <[email protected]> |
| 3068 |
|
| 3069 |
* awk.h (block_header): Remove cnt field and replace it with |
| 3070 |
highwater. If MEMDEBUG is defined, add active counter. |
| 3071 |
* node.c (r_getblock): The cnt field was replaced by active. Update |
| 3072 |
highwater as appropriate. |
| 3073 |
(r_freeblock): Decrement the active counter (renamed from cnt). |
| 3074 |
(more_blocks): Bump the highwater counter (renamed from cnt). |
| 3075 |
* builtin.c (do_typeof): When providing PROCINFO debug memory stats, |
| 3076 |
replace count_<blah> with <blah>_active and <blah>_highwater. When |
| 3077 |
MEMDEBUG is not set, we calculate the active value by subtracting the |
| 3078 |
number of elements in the free list from the highwater value. |
| 3079 |
|
| 3080 |
2019-09-01 Arnold D. Robbins <[email protected]> |
| 3081 |
|
| 3082 |
* profile.c (pp_list, pp_concat): Fix use-after-free errors |
| 3083 |
in both routines. Thanks to valgrind and Andy's MEMDEBUG code. |
| 3084 |
|
| 3085 |
2019-09-01 Andrew J. Schorr <[email protected]> |
| 3086 |
|
| 3087 |
* awk.h (block_header): Add cnt field even when MEMDEBUG is not |
| 3088 |
defined, and add a name field. |
| 3089 |
* node.c (nextfree): Initialize new name field. |
| 3090 |
(more_blocks): Bump nextfree[id].cnt by BLOCKCHUNK. |
| 3091 |
* builtin.c (do_typeof): When the 1st argument is PROCINFO and the |
| 3092 |
2nd arg is provided, return new "count_<blah>" fields containing |
| 3093 |
the memory allocation accounts of the various block types. |
| 3094 |
|
| 3095 |
2019-08-30 Andrew J. Schorr <[email protected]> |
| 3096 |
|
| 3097 |
* configure.ac (.developing): Add -DMEMDEBUG to CFLAGS. |
| 3098 |
* awk.h (block_header): If MEMDEBUG is defined, add cnt field |
| 3099 |
to track the number of allocations. |
| 3100 |
(getblock, freeblock): When MEMDEBUG is defined, replace these |
| 3101 |
macros with calls to new functions r_getblock and r_freeblock. |
| 3102 |
* node.c (r_getblock, r_freeblock): New functions that simply |
| 3103 |
use malloc and free when MEMDEBUG is defined. |
| 3104 |
|
| 3105 |
2019-08-30 Andrew J. Schorr <[email protected]> |
| 3106 |
|
| 3107 |
* interpret.h (r_interpret): For Op_match_rec, unref if a |
| 3108 |
dynamic regexp. Fixes another memory issue. See the thread starting |
| 3109 |
at https://lists.gnu.org/archive/html/bug-gawk/2019-08/msg00023.html. |
| 3110 |
|
| 3111 |
2019-08-29 Arnold D. Robbins <[email protected]> |
| 3112 |
|
| 3113 |
Restore a modified version of the change of |
| 3114 |
2016-05-03, which used realloc to shrink the buffer. |
| 3115 |
|
| 3116 |
* builtin.c (format_tree): Reduce INITIAL_OUT_SIZE to 64. |
| 3117 |
At the end, call realloc only if there is more |
| 3118 |
than (2 * INITIAL_OUT_SIZE) bytes to give back. |
| 3119 |
|
| 3120 |
2019-08-23 Arnold D. Robbins <[email protected]> |
| 3121 |
|
| 3122 |
* main.c (main): Fix whitespace issues. |
| 3123 |
* re.c (re_update): Small code cleanup in handling t->re_cnt. |
| 3124 |
Thanks to Andrew Schorr. |
| 3125 |
|
| 3126 |
2019-08-21 Arnold D. Robbins <[email protected]> |
| 3127 |
|
| 3128 |
* config.guess: Updated from GNULIB. |
| 3129 |
|
| 3130 |
2019-08-15 Arnold D. Robbins <[email protected]> |
| 3131 |
|
| 3132 |
Revert a6df7afc605079df7d85318846a522ef64aaa44d, change of |
| 3133 |
2016-05-03, which used realloc to shrink the buffer, in an |
| 3134 |
attempt to save memory. In actuality, it could cause increased |
| 3135 |
memory usage, even though there was no memory leak. See |
| 3136 |
https://lists.gnu.org/archive/html/bug-gawk/2019-08/msg00003.html |
| 3137 |
and the rest of thread for more detail. |
| 3138 |
|
| 3139 |
* builtin.c (format_tree): Don't use realloc, just call |
| 3140 |
make_str_node with the original buffer. Remove `olen_final' |
| 3141 |
variable and its use. |
| 3142 |
|
| 3143 |
2019-08-15 Andrew J. Schorr <[email protected]> |
| 3144 |
|
| 3145 |
Reduce memory usage by only compiling the IGNORECASE version of |
| 3146 |
regexp when it's actually needed. |
| 3147 |
|
| 3148 |
* awkgram.y (make_regnode): Only compile the regular version. |
| 3149 |
* re.c (re_cache_get): New function. |
| 3150 |
(re_update): Use it as appropriate. |
| 3151 |
|
| 3152 |
2019-07-23 Koichi Murase <[email protected]> |
| 3153 |
|
| 3154 |
* builtin.c (do_xor): Remove unneeded local variable `i'. Simplify |
| 3155 |
the loop's computation. |
| 3156 |
(do_and): Improve the initial value for the result. |
| 3157 |
|
| 3158 |
2019-07-23 Andrew J. Schorr <[email protected]> |
| 3159 |
|
| 3160 |
Fix reporting of negative arguments for and(), or() and xor(). |
| 3161 |
Thanks to Koichi Murase <[email protected]> for the |
| 3162 |
report. |
| 3163 |
|
| 3164 |
* builtin.c (do_and): Use nargs instead of i in the loop to |
| 3165 |
check for non-numeric and negative arguments. |
| 3166 |
(do_or): Ditto. |
| 3167 |
(do_xor): Ditto. |
| 3168 |
|
| 3169 |
2019-07-23 Arnold D. Robbins <[email protected]> |
| 3170 |
|
| 3171 |
* Checklist: Updated. |
| 3172 |
|
| 3173 |
2019-07-21 Arnold D. Robbins <[email protected]> |
| 3174 |
|
| 3175 |
* command.y, custom.h, eval.c, ext.c, field.c, io.c, |
| 3176 |
msg.c, node.c, nonposix.h, re.c: Update copyright year. |
| 3177 |
* NEWS: Updated. |
| 3178 |
* README: Updated. |
| 3179 |
|
| 3180 |
2019-07-16 Arnold D. Robbins <[email protected]> |
| 3181 |
|
| 3182 |
* TODO: Updated. |
| 3183 |
* awkgram.y [GRAMMAR]: Change some lint warnings to use lintwarn. |
| 3184 |
(yylex): Ditto. |
| 3185 |
* field.c (choose_fs_function): Ditto. |
| 3186 |
* main.c (main): Ditto. |
| 3187 |
* node.c (parse_escape): Ditto. |
| 3188 |
|
| 3189 |
2019-07-09 Arnold D. Robbins <[email protected]> |
| 3190 |
|
| 3191 |
* gawkapi.h: Update copyright year, fix some spelling errors. |
| 3192 |
|
| 3193 |
2019-07-08 Andrew J. Schorr <[email protected]> |
| 3194 |
|
| 3195 |
* gawkapi.h (gawk_api_major_version): Bump from 2 to 3 because the |
| 3196 |
namespace changes altered the function signatures in gawk_api_t. |
| 3197 |
And add a comment at the top of the structure with a reminder that |
| 3198 |
the version number should be bumped whenever the struct is altered |
| 3199 |
in any way. |
| 3200 |
|
| 3201 |
2019-06-30 Arnold D. Robbins <[email protected]> |
| 3202 |
|
| 3203 |
* interpret.h (r_interpret): Fix two more cases of warning |
| 3204 |
about gawk extensions. |
| 3205 |
* awkgram.y [GRAMMAR]: And two more cases here. Thanks to |
| 3206 |
Mark Krauze <[email protected]> for making me look for them. |
| 3207 |
|
| 3208 |
Unrelated: |
| 3209 |
|
| 3210 |
* config.sub: Updated from GNULIB. |
| 3211 |
|
| 3212 |
2019-06-26 Arnold D. Robbins <[email protected]> |
| 3213 |
|
| 3214 |
* symbol.c (install): Strip off any leading `awk::' before |
| 3215 |
installing a symbol. Thanks to Andrew Schorr for the |
| 3216 |
report. |
| 3217 |
|
| 3218 |
2019-06-21 Arnold D. Robbins <[email protected]> |
| 3219 |
|
| 3220 |
* config.guess, config.sub: Updated from GNULIB. |
| 3221 |
* awkgram.y (get_src_buf): Set buffers to zero to avoid |
| 3222 |
possible issues with accessing uninitialized memory. |
| 3223 |
Thanks to valgrind, as pointed out by Nadezhda Vyukova |
| 3224 |
<[email protected]>. |
| 3225 |
* NEWS, README.git: Fix some typos. |
| 3226 |
|
| 3227 |
2019-06-19 Arnold D. Robbins <[email protected]> |
| 3228 |
|
| 3229 |
* re.c (make_regexp): If do_posix, have {} in ok_to_escape. |
| 3230 |
Thanks to Ed Morton <[email protected]> for the report. |
| 3231 |
|
| 3232 |
2019-06-18 Arnold D. Robbins <[email protected]> |
| 3233 |
|
| 3234 |
* 5.0.1: Release tar ball made. |
| 3235 |
|
| 3236 |
2019-06-06 Arnold D. Robbins <[email protected]> |
| 3237 |
|
| 3238 |
* main.c (usage): Update comment for translators. |
| 3239 |
|
| 3240 |
2019-06-02 Arnold D. Robbins <[email protected]> |
| 3241 |
|
| 3242 |
* awkgram.c, command.c: Update to Bison 3.4. |
| 3243 |
* NEWS: Updated. |
| 3244 |
|
| 3245 |
2019-05-22 Arnold D. Robbins <[email protected]> |
| 3246 |
|
| 3247 |
Add --lint=no-ext. Suggest by Mark Krauze <[email protected]>. |
| 3248 |
|
| 3249 |
* NEWS: Updated. |
| 3250 |
* awk.h (DO_LINT_EXTENSIONS): New enum. |
| 3251 |
(do_lint_extensions): New macro. |
| 3252 |
* awkgram.y (yylex, snode): Use do_lint_extensions instead of |
| 3253 |
do_lint where appropriate. |
| 3254 |
* builtin.c (do_length): Ditto. |
| 3255 |
* eval.c (set_IGNORECASE, set_BINMODE): Ditto. |
| 3256 |
(set_LINT): Revise logic. |
| 3257 |
* field.c (do_split, set_FIELDWIDTHS, chose_fs_function, set_FPAT): |
| 3258 |
Ditto. |
| 3259 |
* io.c (set_RS): Ditto. |
| 3260 |
* main.c (usage): Updated. |
| 3261 |
(parse_args): Revise the code to handle --lint=no-ext. |
| 3262 |
|
| 3263 |
2019-05-10 Arnold D. Robbins <[email protected]> |
| 3264 |
|
| 3265 |
* NEWS: Updated. |
| 3266 |
|
| 3267 |
2019-05-06 Arnold D. Robbins <[email protected]> |
| 3268 |
|
| 3269 |
In sandbox mode, disallow assigning filenames that weren't |
| 3270 |
there initially. Thanks to Nolan Woods <[email protected]> for |
| 3271 |
pointing out the gap. |
| 3272 |
|
| 3273 |
* awk.h (init_argv_array): Add declaration. |
| 3274 |
* cint_array.c (argv_store): New vtable for ARGV. |
| 3275 |
(argv_shadow_array): New file static variable |
| 3276 |
(argv_store, init_argv_array): New functions. |
| 3277 |
* main.c (init_args): If in sandbox mode, build shadow array of |
| 3278 |
initial argv values. Call init_argv_array. |
| 3279 |
|
| 3280 |
2019-05-05 Arnold D. Robbins <[email protected]> |
| 3281 |
|
| 3282 |
* ext.c (load_ext): Fix the message in the version for when |
| 3283 |
extensions are not available. |
| 3284 |
|
| 3285 |
2019-04-24 Arnold D. Robbins <[email protected]> |
| 3286 |
|
| 3287 |
* msg.c (msg): Use %ld for the line number value. Thanks to |
| 3288 |
Michal Jaegermann for the report. |
| 3289 |
|
| 3290 |
2019-04-23 Arnold D. Robbins <[email protected]> |
| 3291 |
|
| 3292 |
* config.sub: Updated from GNULIB. |
| 3293 |
|
| 3294 |
2019-02-21 Andrew J. Schorr <[email protected]> |
| 3295 |
|
| 3296 |
* interpret.h (Op_store_field): Move call to force_string to |
| 3297 |
here from unfield. Speeds up work with fields that are numeric |
| 3298 |
only. Thanks to Tom Gray <[email protected]> for the report. |
| 3299 |
|
| 3300 |
2019-04-21 Arnold D. Robbins <[email protected]> |
| 3301 |
|
| 3302 |
* POSIX.STD: Updated. |
| 3303 |
* field.c (get_field): If NF == -1, check parse high water to |
| 3304 |
set in_middle correctly. Thanks to <[email protected]> |
| 3305 |
for the report. |
| 3306 |
|
| 3307 |
2019-04-18 Arnold D. Robbins <[email protected]> |
| 3308 |
|
| 3309 |
* msg.c (msg): Add an undocumented feature. "Use the Source, Luke." |
| 3310 |
* Makefile.am (EXTRA_DIST): Add ChangeLog.1 to the list. Ooops. |
| 3311 |
* CheckList: Updated. |
| 3312 |
|
| 3313 |
Fix core dump reported by Steve Kemp <[email protected]>: |
| 3314 |
|
| 3315 |
* awk.h (errcount): Declare. |
| 3316 |
* awkgram.y (errcount): No longer static. |
| 3317 |
* command.y (dbg_errcount): Renamed from errcount. |
| 3318 |
* main.c (catchsig, catchsegv): If errcount > 0, just exit, |
| 3319 |
don't abort. |
| 3320 |
|
| 3321 |
2019-04-12 Arnold D. Robbins <[email protected]> |
| 3322 |
|
| 3323 |
* configure.ac: Update version to 5.0.0. |
| 3324 |
* configure: Regenerated. |
| 3325 |
* ChangeLog.1: Rotated ChangeLog into this file. |
| 3326 |
* ChangeLog: Created anew for gawk 5.0.0 and on. |
| 3327 |
* README: Bump version to 5.0.0. |
| 3328 |
* 5.0.0: Release tar ball made. |