Lines Matching refs:di_dbm
34 GDBM_FILE di_dbm; member
40 #define check_dbmobject_open(v) if ((v)->di_dbm == NULL) \
68 if ((dp->di_dbm = gdbm_open(file, 0, flags, mode, NULL)) == 0) { in newdbmobject()
84 if (dp->di_dbm) in dbm_dealloc()
85 gdbm_close(dp->di_dbm); in dbm_dealloc()
92 if (dp->di_dbm == NULL) { in dbm_length()
103 for (key=gdbm_firstkey(dp->di_dbm); key.dptr; in dbm_length()
104 key = gdbm_nextkey(dp->di_dbm,okey)) { in dbm_length()
123 if (dp->di_dbm == NULL) { in dbm_subscript()
128 drec = gdbm_fetch(dp->di_dbm, krec); in dbm_subscript()
149 if (dp->di_dbm == NULL) { in dbm_ass_sub()
156 if (gdbm_delete(dp->di_dbm, krec) < 0) { in dbm_ass_sub()
169 if (gdbm_store(dp->di_dbm, krec, drec, GDBM_REPLACE) < 0) { in dbm_ass_sub()
186 if ((dp)->di_dbm == NULL) { in dbm_contains()
199 return gdbm_exists(dp->di_dbm, key); in dbm_contains()
228 if (dp->di_dbm) in dbm_close()
229 gdbm_close(dp->di_dbm); in dbm_close()
230 dp->di_dbm = NULL; in dbm_close()
256 key = gdbm_firstkey(dp->di_dbm); in dbm_keys()
271 nextkey = gdbm_nextkey(dp->di_dbm, key); in dbm_keys()
290 return PyInt_FromLong((long) gdbm_exists(dp->di_dbm, key)); in dbm_has_key()
307 key = gdbm_firstkey(dp->di_dbm); in dbm_firstkey()
339 nextkey = gdbm_nextkey(dp->di_dbm, key); in dbm_nextkey()
364 if (gdbm_reorganize(dp->di_dbm) < 0) { in dbm_reorganize()
384 gdbm_sync(dp->di_dbm); in dbm_sync()