diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/output.cc | 7 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2021-06-06 Michael Drake <tlsa@netsurf-browser.org> (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 <bruno@clisp.org> 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 <schmidt@ics.uci.edu> and Bruno Haible <bruno@clisp.org>. @@ -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) |