0x0085, /* NEXT LINE */ 0x2028, /* LINE SEPARATOR */ 0x2029, /* PARAGRAPH SEPARATOR */ }; /* Init the implementation */ unicode_freelist = NULL; unicode_freelist_size = 0; unicode_empty = _PyUnicode_New(0); if (!unicode_empty) return; strcpy(unicode_default_encoding, "ascii"); for (i = 0; i < 256; i++) unicode_latin1[i] = NULL; if (PyType_Ready(&PyUnicode_Type) < 0) Py_FatalError("Can't initialize 'unicode'"); /* initialize the linebreak bloom filter */ bloom_linebreak = make_bloom_mask( linebreak, sizeof(linebreak) / sizeof(linebreak[0]) ); PyType_Ready(&EncodingMapType);} /* Finalize the Unicode implementation */ void_PyUnicode_Fini(void){ PyUnicodeObject *u; int i; Py_XDECREF(unicode_empty); unicode_empty = NULL; for (i = 0; i < 256; i++) { if (unicode_latin1[i]) { Py_DECREF(unicode_latin1[i]); unicode_latin1[i] = NULL; } } for (u = unicode_freelist; u != NULL;) { PyUnicodeObject *v = u; u = *(PyUnicodeObject **)u; if (v->str) PyMem_DEL(v->str); Py_XDECREF(v->defenc); PyObject_Del(v); } unicode_freelist = NULL; unicode_freelist_size = 0;} #ifdef __cplusplus}#endif /*Local variables:c-basic-offset: 4indent-tabs-mode: nilEnd:*/Lines 8001–8067 of 8067. Previous lines
0x0085, /* NEXT LINE */ 0x2028, /* LINE SEPARATOR */ 0x2029, /* PARAGRAPH SEPARATOR */ }; /* Init the implementation */ unicode_freelist = NULL; unicode_freelist_size = 0; unicode_empty = _PyUnicode_New(0); if (!unicode_empty) return; strcpy(unicode_default_encoding, "ascii"); for (i = 0; i < 256; i++) unicode_latin1[i] = NULL; if (PyType_Ready(&PyUnicode_Type) < 0) Py_FatalError("Can't initialize 'unicode'"); /* initialize the linebreak bloom filter */ bloom_linebreak = make_bloom_mask( linebreak, sizeof(linebreak) / sizeof(linebreak[0]) ); PyType_Ready(&EncodingMapType); } /* Finalize the Unicode implementation */ void _PyUnicode_Fini(void) { PyUnicodeObject *u; int i; Py_XDECREF(unicode_empty); unicode_empty = NULL; for (i = 0; i < 256; i++) { if (unicode_latin1[i]) { Py_DECREF(unicode_latin1[i]); unicode_latin1[i] = NULL; } } for (u = unicode_freelist; u != NULL;) { PyUnicodeObject *v = u; u = *(PyUnicodeObject **)u; if (v->str) PyMem_DEL(v->str); Py_XDECREF(v->defenc); PyObject_Del(v); } unicode_freelist = NULL; unicode_freelist_size = 0; } #ifdef __cplusplus } #endif /* Local variables: c-basic-offset: 4 indent-tabs-mode: nil End: */