mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Honor --readonly-tables when outputting table for --ignore-case.
* src/output.cc (output_upperlower_table): Add 'const' when suitable.
This commit is contained in:
committed by
Bruno Haible
parent
b0f961a9b3
commit
96ebd0b95d
@@ -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>
|
2021-01-30 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
Mark Autoconf 2.71 as supported.
|
Mark Autoconf 2.71 as supported.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* Output routines.
|
/* 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>
|
Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
|
||||||
and Bruno Haible <bruno@clisp.org>.
|
and Bruno Haible <bruno@clisp.org>.
|
||||||
|
|
||||||
@@ -288,8 +288,9 @@ output_upperlower_table ()
|
|||||||
|
|
||||||
printf ("#ifndef GPERF_DOWNCASE\n"
|
printf ("#ifndef GPERF_DOWNCASE\n"
|
||||||
"#define GPERF_DOWNCASE 1\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++)
|
for (c = 0; c < 256; c++)
|
||||||
{
|
{
|
||||||
if ((c % 15) == 0)
|
if ((c % 15) == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user