X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Flocale%2FUnicodeData.py;h=eb0f3c33137f249a71b6b2cd70b2fff480b5257e;hp=7de35bdcb2592e20bab7ae229dd3cb66599fe87a;hb=4b1f856ea2b21f30b6af8d4cca7129ebc84d3d6f;hpb=0711226145f12c37217681b57944860bdeb6ace0 diff --git a/functions/locale/UnicodeData.py b/functions/locale/UnicodeData.py index 7de35bd..eb0f3c3 100644 --- a/functions/locale/UnicodeData.py +++ b/functions/locale/UnicodeData.py @@ -109,7 +109,7 @@ try: #ifndef REGTEST #include <_PDCLIB_locale.h> - _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = { +const _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = { // { value,\tflags,\tlower,\tupper\t}, // name """) for line in in_file: @@ -129,7 +129,7 @@ try: num, bits, lower_case, upper_case, name)) out_file.write('};\n\n') out_file.write(""" -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