diff options
| author | Arnold D. Robbins <[email protected]> | 2025-10-25 20:29:53 +0300 |
|---|---|---|
| committer | Arnold D. Robbins <[email protected]> | 2025-10-25 20:29:53 +0300 |
| commit | a52a2aca56574dafc2cb1edadb92982a9366a060 (patch) | |
| tree | 1311e746087feedad6d0e0ed0ee7824d27567f75 | |
| parent | 4ed4edfe04512c5b2a2c08ff7c4ce43b5593e7a4 (diff) | |
| download | gawk-master.tar.gz | |
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | field.c | 6 | ||||
| -rw-r--r-- | io.c | 2 |
3 files changed, 11 insertions, 4 deletions
@@ -1,3 +1,10 @@ +2025-10-25 Arnold D. Robbins <[email protected]> + + * field.c (do_split, do_patsplit): Use do_lint_extensions before + warning about extensions. + (set_FPAT): Clean up a lint warning. + * io.c (set_RS): Ditto. + 2025-10-23 Arnold D. Robbins <[email protected]> * field.c (do_split): If someone passed a Node_elem_new @@ -1152,7 +1152,7 @@ do_split(int nargs) // Someone passed an array element to be turned into // a subarray, so let's warn about it. static bool warned = false; - if (do_lint && ! warned && arr->parent_array != NULL) { + if (do_lint_extensions && ! warned && arr->parent_array != NULL) { warned = true; lintwarn(_("multidimensional arrays are a gawk extension")); } @@ -1257,7 +1257,7 @@ do_patsplit(int nargs) // Someone passed an array element to be turned into // a subarray, so let's warn about it. static bool warned = false; - if (do_lint && ! warned && arr->parent_array != NULL) { + if (do_lint_extensions && ! warned && arr->parent_array != NULL) { warned = true; lintwarn(_("multidimensional arrays are a gawk extension")); } @@ -1654,7 +1654,7 @@ set_FPAT() if (do_lint_extensions && ! warned) { warned = true; - lintwarn(_("`FPAT' is a gawk extension")); + lintwarn(_("FPAT is a gawk extension")); } if (do_traditional) /* quick and dirty, does the trick */ return; @@ -4212,7 +4212,7 @@ set_RS() matchrec = rsrescan; if (do_lint_extensions && ! warned) { - lintwarn(_("multicharacter value of `RS' is a gawk extension")); + lintwarn(_("multicharacter value of RS is a gawk extension")); warned = true; } } else { |
