Home
last modified time | relevance | path

Searched refs:di_dbm (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Modules/
Ddbmmodule.c37 DBM *di_dbm; member
43 #define check_dbmobject_open(v) if ((v)->di_dbm == NULL) \
58 if ( (dp->di_dbm = dbm_open(file, flags, mode)) == 0 ) { in newdbmobject()
71 if ( dp->di_dbm ) in dbm_dealloc()
72 dbm_close(dp->di_dbm); in dbm_dealloc()
79 if (dp->di_dbm == NULL) { in dbm_length()
88 for ( key=dbm_firstkey(dp->di_dbm); key.dptr; in dbm_length()
89 key = dbm_nextkey(dp->di_dbm)) in dbm_length()
107 drec = dbm_fetch(dp->di_dbm, krec); in dbm_subscript()
113 if ( dbm_error(dp->di_dbm) ) { in dbm_subscript()
[all …]
Dgdbmmodule.c34 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()
[all …]
/external/python/cpython3/Modules/
D_dbmmodule.c41 DBM *di_dbm; member
49 #define check_dbmobject_open(v) if ((v)->di_dbm == NULL) \
66 if ( (dp->di_dbm = dbm_open((char *)file, flags, mode)) == 0 ) { in newdbmobject()
79 if ( dp->di_dbm ) in dbm_dealloc()
80 dbm_close(dp->di_dbm); in dbm_dealloc()
87 if (dp->di_dbm == NULL) { in dbm_length()
96 for ( key=dbm_firstkey(dp->di_dbm); key.dptr; in dbm_length()
97 key = dbm_nextkey(dp->di_dbm)) in dbm_length()
115 drec = dbm_fetch(dp->di_dbm, krec); in dbm_subscript()
120 if ( dbm_error(dp->di_dbm) ) { in dbm_subscript()
[all …]
D_gdbmmodule.c40 GDBM_FILE di_dbm; member
48 #define check_dbmobject_open(v) if ((v)->di_dbm == NULL) \
76 if ((dp->di_dbm = gdbm_open((char *)file, 0, flags, mode, NULL)) == 0) { in newdbmobject()
92 if (dp->di_dbm) in dbm_dealloc()
93 gdbm_close(dp->di_dbm); in dbm_dealloc()
100 if (dp->di_dbm == NULL) { in dbm_length()
111 for (key=gdbm_firstkey(dp->di_dbm); key.dptr; in dbm_length()
112 key = gdbm_nextkey(dp->di_dbm,okey)) { in dbm_length()
152 if (dp->di_dbm == NULL) { in dbm_subscript()
157 drec = gdbm_fetch(dp->di_dbm, krec); in dbm_subscript()
[all …]