Searched refs:expat_capi (Results 1 – 2 of 2) sorted by relevance
2052 static struct PyExpat_CAPI* expat_capi; variable2053 #define EXPAT(func) (expat_capi->func)2540 if (!expat_capi) {3188 expat_capi = PyCapsule_Import(PyExpat_CAPSULE_NAME, 0);3189 if (expat_capi) {3191 if (strcmp(expat_capi->magic, PyExpat_CAPI_MAGIC) != 0 ||3192 expat_capi->size < sizeof(struct PyExpat_CAPI) ||3193 expat_capi->MAJOR_VERSION != XML_MAJOR_VERSION ||3194 expat_capi->MINOR_VERSION != XML_MINOR_VERSION ||3195 expat_capi->MICRO_VERSION != XML_MICRO_VERSION)[all …]
3054 static struct PyExpat_CAPI *expat_capi; variable3055 #define EXPAT(func) (expat_capi->func)4426 expat_capi = PyCapsule_Import(PyExpat_CAPSULE_NAME, 0); in PyInit__elementtree()4427 if (expat_capi) { in PyInit__elementtree()4429 if (strcmp(expat_capi->magic, PyExpat_CAPI_MAGIC) != 0 || in PyInit__elementtree()4430 (size_t)expat_capi->size < sizeof(struct PyExpat_CAPI) || in PyInit__elementtree()4431 expat_capi->MAJOR_VERSION != XML_MAJOR_VERSION || in PyInit__elementtree()4432 expat_capi->MINOR_VERSION != XML_MINOR_VERSION || in PyInit__elementtree()4433 expat_capi->MICRO_VERSION != XML_MICRO_VERSION) { in PyInit__elementtree()