| 68 | static struct PyModuleDef _recordmodule; |
| 69 | |
| 70 | static inline record_module_state * |
| 71 | find_module_state_by_def(PyTypeObject *type) |
| 72 | { |
| 73 | PyObject *mod = PyType_GetModuleByDef(type, &_recordmodule); |
| 74 | if (mod == NULL) |
| 75 | return NULL; |
| 76 | return get_module_state(mod); |
| 77 | } |
| 78 | |
| 79 | static inline record_freelist_state * |
| 80 | get_freelist_state(record_module_state *state) |
no test coverage detected