Home
last modified time | relevance | path

Searched refs:drec (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Modules/
Dbsddbmodule.c248 DBT krec, drec; in bsddb_length() local
253 &krec, &drec,R_FIRST); in bsddb_length()
256 &krec, &drec, R_NEXT)) in bsddb_length()
272 DBT krec, drec; in bsddb_subscript() local
300 status = (dp->di_bsddb->get)(dp->di_bsddb, &krec, &drec, 0); in bsddb_subscript()
302 if (drec.size > sizeof(buf)) data = malloc(drec.size); in bsddb_subscript()
304 if (data!=NULL) memcpy(data,drec.data,drec.size); in bsddb_subscript()
316 result = PyString_FromStringAndSize(data, (int)drec.size); in bsddb_subscript()
325 DBT krec, drec; in bsddb_ass_sub() local
361 drec.data = data; in bsddb_ass_sub()
[all …]
Dgdbmmodule.c118 datum drec, krec; in dbm_subscript() local
128 drec = gdbm_fetch(dp->di_dbm, krec); in dbm_subscript()
129 if (drec.dptr == 0) { in dbm_subscript()
134 v = PyString_FromStringAndSize(drec.dptr, drec.dsize); in dbm_subscript()
135 free(drec.dptr); in dbm_subscript()
142 datum krec, drec; in dbm_ass_sub() local
163 if (!PyArg_Parse(w, "s#", &drec.dptr, &drec.dsize)) { in dbm_ass_sub()
169 if (gdbm_store(dp->di_dbm, krec, drec, GDBM_REPLACE) < 0) { in dbm_ass_sub()
Ddbmmodule.c99 datum drec, krec; in dbm_subscript() local
107 drec = dbm_fetch(dp->di_dbm, krec); in dbm_subscript()
108 if ( drec.dptr == 0 ) { in dbm_subscript()
118 return PyString_FromStringAndSize(drec.dptr, drec.dsize); in dbm_subscript()
124 datum krec, drec; in dbm_ass_sub() local
146 if ( !PyArg_Parse(w, "s#", &drec.dptr, &tmp_size) ) { in dbm_ass_sub()
151 drec.dsize = tmp_size; in dbm_ass_sub()
152 if ( dbm_store(dp->di_dbm, krec, drec, DBM_REPLACE) < 0 ) { in dbm_ass_sub()