X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=internals%2F_PDCLIB_locale.h;h=3159dfb22d914548ce33324fc96d5c4be76e128d;hb=db99f59ae538ea7c734bf691a519fd9f07db5112;hp=fd47c9ab0c4b537835d374536d20d15e9b0a70e1;hpb=fa53a74861e1ac9513ae57b7bd7889b85ac0fbe9;p=pdclib diff --git a/internals/_PDCLIB_locale.h b/internals/_PDCLIB_locale.h index fd47c9a..3159dfb 100644 --- a/internals/_PDCLIB_locale.h +++ b/internals/_PDCLIB_locale.h @@ -80,20 +80,21 @@ typedef struct _PDCLIB_wcinfo } _PDCLIB_wcinfo_t; struct _PDCLIB_locale { - _PDCLIB_charcodec_t _Codec; + const _PDCLIB_charcodec_t _Codec; struct lconv _Conv; /* ctype / wctype */ - _PDCLIB_wcinfo_t *_WCType; + /* XXX: Maybe re-evaluate constness of these later on? */ + const _PDCLIB_wcinfo_t *_WCType; _PDCLIB_size_t _WCTypeSize; - _PDCLIB_ctype_t *_CType; + const _PDCLIB_ctype_t *_CType; /* perror/strerror */ 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 ) {