Mercurial > hg > octave-lojdl > gnulib-hg
changeset 7573:2d7222ab82dc
Make read-only array really read-only. Saves a few bytes in the .data segment.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 26 Oct 2006 11:56:02 +0000 |
parents | 4aea3bda39c7 |
children | 70e0e23ed97a |
files | ChangeLog lib/mbchar.c lib/mbchar.h |
diffstat | 3 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-25 Paul Eggert <eggert@cs.ucla.edu> + + * lib/mbchar.h (is_basic_table): Make read-only. + * lib/mbchar.c (is_basic_table): Likewise. + Reported by John Darrington. + 2006-10-25 Bruno Haible <bruno@clisp.org> * lib/progname.h (set_program_name): Undefine before defining.
--- a/lib/mbchar.c +++ b/lib/mbchar.c @@ -24,7 +24,7 @@ #if IS_BASIC_ASCII /* Bit table of characters in the ISO C "basic character set". */ -unsigned int is_basic_table [UCHAR_MAX / 32 + 1] = +const unsigned int is_basic_table [UCHAR_MAX / 32 + 1] = { 0x00001a00, /* '\t' '\v' '\f' */ 0xffffffef, /* ' '...'#' '%'...'?' */