]> pd.if.org Git - pdclib/blobdiff - functions/locale/UnicodeData.py
PDCLIB-25 #resolve #comment Made ctype, wctype and codec data const.(This may be...
[pdclib] / functions / locale / UnicodeData.py
index 7de35bdcb2592e20bab7ae229dd3cb66599fe87a..eb0f3c33137f249a71b6b2cd70b2fff480b5257e 100644 (file)
@@ -109,7 +109,7 @@ try:
  #ifndef REGTEST\r
  #include <_PDCLIB_locale.h>\r
 \r
- _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = {\r
+const _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = {\r
 //   { value,\tflags,\tlower,\tupper\t}, // name\r
  """)\r
     for line in in_file:\r
@@ -129,7 +129,7 @@ try:
             num, bits, lower_case, upper_case, name))\r
     out_file.write('};\n\n')\r
     out_file.write("""\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