diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | builtin.c | 4 | ||||
-rw-r--r-- | test/ChangeLog | 4 | ||||
-rw-r--r-- | test/gensub2.ok | 1 |
4 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2014-11-26 Arnold D. Robbins <arnold@skeeve.com> + + * builtin.c (do_sub): Improve wording of gensub warnings. + 2014-11-25 Arnold D. Robbins <arnold@skeeve.com> * builtin.c (do_sub): For gensub, add more warnings for invalid @@ -2696,7 +2696,7 @@ do_sub(int nargs, unsigned int flags) if ((t1->flags & NUMCUR) != 0) goto set_how_many; - warning(_("gensub: third argument of `%.*s' treated as 1"), + warning(_("gensub: third argument `%.*s' treated as 1"), (int) t1->stlen, t1->stptr); how_many = 1; } @@ -2711,7 +2711,7 @@ set_how_many: else how_many = LONG_MAX; if (d <= 0) - warning(_("gensub: third argument of %g treated as 1"), d); + warning(_("gensub: third argument %g treated as 1"), d); } DEREF(t1); diff --git a/test/ChangeLog b/test/ChangeLog index 633fef51..854c1379 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,7 @@ +2014-11-26 Arnold D. Robbins <arnold@skeeve.com> + + * gensub2.ok: Update after code changes. + 2014-11-16 Arnold D. Robbins <arnold@skeeve.com> * Makefile.am (sortglos): New test. diff --git a/test/gensub2.ok b/test/gensub2.ok index 89824140..318f940c 100644 --- a/test/gensub2.ok +++ b/test/gensub2.ok @@ -1,3 +1,4 @@ xy xy +gawk: gensub2.awk:4: warning: gensub: third argument `a' treated as 1 yx |