* Paul Eggert <egg...@cs.ucla.edu> [170213 17:15]:
On 02/13/2017 07:24 AM, Darshit Shah wrote:simply changing the prototype will cause builds to fail with older versions of gperf.Simplest would be to change it to size_t, as we can assume developers using gnulib have recent developer tools. Could you prepare a patch along those lines?
-- Thanking You, Darshit Shah PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6
From 3519759bac20fa10a0d8000ef12faaad9af1b506 Mon Sep 17 00:00:00 2001 From: Darshit Shah <dar...@gnu.org> Date: Mon, 13 Feb 2017 18:40:33 +0100 Subject: [PATCH] unicase: Update function protoype to match definition * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1 uses 'size_t' as the datatype for the 'len' parameter in the functions it generates. Update the prototype specified here to match the newly generated function --- lib/unicase/special-casing.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/unicase/special-casing.h b/lib/unicase/special-casing.h index b2419a49a..a4f0d7ec6 100644 --- a/lib/unicase/special-casing.h +++ b/lib/unicase/special-casing.h @@ -15,6 +15,7 @@ You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include<stddef.h> /* A special casing context. A context is negated through x -> -x. */ @@ -57,4 +58,4 @@ struct special_casing_rule }; extern const struct special_casing_rule * - gl_unicase_special_lookup (const char *str, unsigned int len); + gl_unicase_special_lookup (const char *str, size_t len); -- 2.11.1
signature.asc
Description: PGP signature