Lines Matching defs:module
2 /* DBM module using dictionary interface */
43 get_dbm_state(PyObject *module)
45 void *state = PyModule_GetState(module);
51 module _dbm
458 dbmopen_impl(PyObject *module, PyObject *filename, const char *flags,
463 _dbm_state *state = get_dbm_state(module);
509 _dbm_exec(PyObject *module)
511 _dbm_state *state = get_dbm_state(module);
512 state->dbm_type = (PyTypeObject *)PyType_FromModuleAndSpec(module,
521 if (PyModule_AddStringConstant(module, "library", which_dbm) < 0) {
524 if (PyModule_AddType(module, (PyTypeObject *)state->dbm_error) < 0) {
531 _dbm_module_traverse(PyObject *module, visitproc visit, void *arg)
533 _dbm_state *state = get_dbm_state(module);
540 _dbm_module_clear(PyObject *module)
542 _dbm_state *state = get_dbm_state(module);
549 _dbm_module_free(void *module)
551 _dbm_module_clear((PyObject *)module);