From b1e61d0e1962a86d424b61641d692a927634cce6 Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Tue, 30 Apr 2013 22:19:07 +0100 Subject: [PATCH] PDCLIB-25 #comment Make _PDCLIB_wcinfo + _PDCLIB_wcinfo_size const --- functions/locale/_PDCLIB_unicodedata.c | 4 ++-- internals/_PDCLIB_locale.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/locale/_PDCLIB_unicodedata.c b/functions/locale/_PDCLIB_unicodedata.c index dbfc02a..dbbe800 100644 --- a/functions/locale/_PDCLIB_unicodedata.c +++ b/functions/locale/_PDCLIB_unicodedata.c @@ -13,7 +13,7 @@ #ifndef REGTEST #include <_PDCLIB_locale.h> - _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = { +const _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = { // { value, flags, lower, upper }, // name { 0x0, 0x4, 0x0, 0x0 }, // { 0x1, 0x4, 0x1, 0x1 }, // @@ -24447,7 +24447,7 @@ }; -size_t _PDCLIB_wcinfo_size = sizeof(_PDCLIB_wcinfo) / sizeof(_PDCLIB_wcinfo[0]); +const size_t _PDCLIB_wcinfo_size = sizeof(_PDCLIB_wcinfo) / sizeof(_PDCLIB_wcinfo[0]); #endif #ifdef TEST diff --git a/internals/_PDCLIB_locale.h b/internals/_PDCLIB_locale.h index 861b486..3159dfb 100644 --- a/internals/_PDCLIB_locale.h +++ b/internals/_PDCLIB_locale.h @@ -93,8 +93,8 @@ struct _PDCLIB_locale { char *_ErrnoStr[_PDCLIB_ERRNO_MAX]; }; -extern _PDCLIB_wcinfo_t _PDCLIB_wcinfo[]; -extern size_t _PDCLIB_wcinfo_size; +extern const _PDCLIB_wcinfo_t _PDCLIB_wcinfo[]; +extern const size_t _PDCLIB_wcinfo_size; static inline int _PDCLIB_wcinfo_cmp( const void * _key, const void * _obj ) { -- 2.40.0