From c07a390e647b74a40f1726e6fe3580bc370f178b Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 22 Mar 2022 21:07:52 +0200 Subject: Impove lint checks in builtin functions. --- ChangeLog | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 96a80815..63cce95d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,21 @@ +2022-03-22 Arnold D. Robbins + + Make lint checks for builtin functions smarter. Initial + report from Timothy Sample . + + * builtin.c (do_fflush): Require string type. + (printf_common): Ditto. + (do_index): Allow strnum for both arguments. + (do_length): Ditto. + (do_strftime): Ditto. + (do_substr): Require numbers for arguments 2 and 3, string or + strnum for argument 1. + (do_match): Require string or strnum for argument 1. + (do_dcgettext): Require strings for all arguments. + (do_bindtextdomain): Ditto. + (do_dcngettext): Require strings for arguments 5, 4, 2, and 1, and + number for argument 3. + 2022-02-27 Arnold D. Robbins * awk.h (cant_happen): Change to allow a format string and arguments, -- cgit v1.2.3