Searched refs:drec (Results 1 – 2 of 2) sorted by relevance
/third_party/python/Modules/ |
D | _dbmmodule.c | 130 datum drec, krec; in dbm_subscript() local 140 drec = dbm_fetch(dp->di_dbm, krec); in dbm_subscript() 141 if ( drec.dptr == 0 ) { in dbm_subscript() 150 return PyBytes_FromStringAndSize(drec.dptr, drec.dsize); in dbm_subscript() 156 datum krec, drec; in dbm_ass_sub() local 186 if ( !PyArg_Parse(w, "s#", &drec.dptr, &tmp_size) ) { in dbm_ass_sub() 191 drec.dsize = tmp_size; in dbm_ass_sub() 192 if ( dbm_store(dp->di_dbm, krec, drec, DBM_REPLACE) < 0 ) { in dbm_ass_sub()
|
D | _gdbmmodule.c | 189 datum drec, krec; in gdbm_subscript() local 200 drec = gdbm_fetch(dp->di_dbm, krec); in gdbm_subscript() 201 if (drec.dptr == 0) { in gdbm_subscript() 205 v = PyBytes_FromStringAndSize(drec.dptr, drec.dsize); in gdbm_subscript() 206 free(drec.dptr); in gdbm_subscript() 238 datum krec, drec; in gdbm_ass_sub() local 263 if (!parse_datum(w, &drec, failmsg)) { in gdbm_ass_sub() 267 if (gdbm_store(dp->di_dbm, krec, drec, GDBM_REPLACE) < 0) { in gdbm_ass_sub()
|