X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Flocale%2FUnicodeData.py;h=42a8f9f3bad916923fe1013ad8afd3ade0863164;hp=30fe562d8a6d4a629e0d5ec67625b877e2b1c942;hb=c6158c4e0aa0634d87ae800be0959e7a99a84b37;hpb=f6b4e5f0b3cec07b1a5221d57c4dc94383cdfe9f diff --git a/functions/locale/UnicodeData.py b/functions/locale/UnicodeData.py index 30fe562..42a8f9f 100644 --- a/functions/locale/UnicodeData.py +++ b/functions/locale/UnicodeData.py @@ -69,9 +69,10 @@ try: * in Exhibit 1 of the Unicode Terms of Use, found at * http://www.unicode.org/copyright.html#Exhibit1 */ + #ifndef REGTEST #include <_PDCLIB_locale.h> - _PDCLIB_wctype_t _PDCLIB_wctype[] = { + _PDCLIB_wcinfo_t _PDCLIB_wcinfo[] = { // { value,\tflags,\tlower,\tupper\t}, // name """) for line in in_file: @@ -90,7 +91,19 @@ try: out_file.write(" { 0x%X,\t0x%X,\t0x%X,\t0x%X }, // %s\n" % ( num, bits, lower_case, upper_case, name)) out_file.write('};\n\n') - out_file.write('size_t _PDCLIB_wctype_size = sizeof(_PDCLIB_wctype) / sizeof(_PDCLIB_wctype[0]);\n\n') + out_file.write(""" +size_t _PDCLIB_wcinfo_size = sizeof(_PDCLIB_wcinfo) / sizeof(_PDCLIB_wcinfo[0]); +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> +int main( void ) +{ + return TEST_RESULTS; +} +#endif + +""") except: in_file.close() out_file.close()