From 96ebd0b95dda2817923ef6de25cdaca1e7ee2956 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 6 Jun 2021 11:23:17 +0200 Subject: Honor --readonly-tables when outputting table for --ignore-case. * src/output.cc (output_upperlower_table): Add 'const' when suitable. --- ChangeLog | 5 +++++ src/output.cc | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 09e2cc4..16ce183 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-06-06 Michael Drake (tiny change) + + Honor --readonly-tables when outputting table for --ignore-case. + * src/output.cc (output_upperlower_table): Add 'const' when suitable. + 2021-01-30 Bruno Haible Mark Autoconf 2.71 as supported. diff --git a/src/output.cc b/src/output.cc index dc8af16..1e289b3 100644 --- a/src/output.cc +++ b/src/output.cc @@ -1,5 +1,5 @@ /* Output routines. - Copyright (C) 1989-1998, 2000, 2002-2004, 2006-2007, 2009, 2011-2012, 2016, 2018 Free Software Foundation, Inc. + Copyright (C) 1989-1998, 2000, 2002-2004, 2006-2007, 2009, 2011-2012, 2016, 2018, 2021 Free Software Foundation, Inc. Written by Douglas C. Schmidt and Bruno Haible . @@ -288,8 +288,9 @@ output_upperlower_table () printf ("#ifndef GPERF_DOWNCASE\n" "#define GPERF_DOWNCASE 1\n" - "static unsigned char gperf_downcase[256] =\n" - " {"); + "static %sunsigned char gperf_downcase[256] =\n" + " {", + const_readonly_array); for (c = 0; c < 256; c++) { if ((c % 15) == 0) -- cgit v1.2.1