summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2021-06-06 11:23:17 +0200
committerBruno Haible <bruno@clisp.org>2021-06-06 11:23:17 +0200
commit96ebd0b95dda2817923ef6de25cdaca1e7ee2956 (patch)
tree7b508c221bafbdcd508d41d01c3ec3fbe6a9ac6c
parentb0f961a9b3544ff73363a3be54232fab6d36dfc8 (diff)
downloadgperf-96ebd0b95dda2817923ef6de25cdaca1e7ee2956.tar.gz
Honor --readonly-tables when outputting table for --ignore-case.
* src/output.cc (output_upperlower_table): Add 'const' when suitable.
-rw-r--r--ChangeLog5
-rw-r--r--src/output.cc7
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 <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)