Lines Matching refs:md_state
14 void *md_state; member
99 m->md_state = NULL; in PyModule_NewObject()
219 m->md_state = PyMem_MALLOC(module->m_size); in _PyModule_CreateInitialized()
220 if (!m->md_state) { in _PyModule_CreateInitialized()
225 memset(m->md_state, 0, module->m_size); in _PyModule_CreateInitialized()
325 ((PyModuleObject*)m)->md_state = NULL; in PyModule_FromDefAndSpec2()
392 if (md->md_state == NULL) { in PyModule_ExecDef()
395 md->md_state = PyMem_MALLOC(def->m_size); in PyModule_ExecDef()
396 if (!md->md_state) { in PyModule_ExecDef()
400 memset(md->md_state, 0, def->m_size); in PyModule_ExecDef()
569 return ((PyModuleObject *)m)->md_state; in PyModule_GetState()
686 if (m->md_state != NULL) in module_dealloc()
687 PyMem_FREE(m->md_state); in module_dealloc()