]> pd.if.org Git - pdclib/commitdiff
PDCLIB-25 #comment Make _PDCLIB_wcinfo + _PDCLIB_wcinfo_size const
authorOwen Shepherd <owen.shepherd@e43.eu>
Tue, 30 Apr 2013 21:19:07 +0000 (22:19 +0100)
committerOwen Shepherd <owen.shepherd@e43.eu>
Tue, 30 Apr 2013 21:19:07 +0000 (22:19 +0100)
functions/locale/_PDCLIB_unicodedata.c
internals/_PDCLIB_locale.h

index dbfc02a8674bd687cbcf24b349b1fe8a906ebf70..dbbe8001c652d2aad95627ac03a06947b73be656 100644 (file)
@@ -13,7 +13,7 @@
  #ifndef REGTEST\r
  #include <_PDCLIB_locale.h>\r
 \r
- _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = {\r
+const _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = {\r
 //   { value,  flags,  lower,  upper   }, // name\r
      { 0x0,    0x4,    0x0,    0x0 }, // <control>\r
     { 0x1,     0x4,    0x1,    0x1 }, // <control>\r
 };\r
 \r
 \r
-size_t _PDCLIB_wcinfo_size = sizeof(_PDCLIB_wcinfo) / sizeof(_PDCLIB_wcinfo[0]);\r
+const size_t _PDCLIB_wcinfo_size = sizeof(_PDCLIB_wcinfo) / sizeof(_PDCLIB_wcinfo[0]);\r
 #endif\r
 \r
 #ifdef TEST\r
index 861b486c032969735f14276b1473ce36faaa3872..3159dfb22d914548ce33324fc96d5c4be76e128d 100644 (file)
@@ -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 )
 {