Lines Matching refs:dptr
88 for ( key=dbm_firstkey(dp->di_dbm); key.dptr; in dbm_length()
102 if (!PyArg_Parse(key, "s#", &krec.dptr, &tmp_size) ) in dbm_subscript()
108 if ( drec.dptr == 0 ) { in dbm_subscript()
118 return PyString_FromStringAndSize(drec.dptr, drec.dsize); in dbm_subscript()
127 if ( !PyArg_Parse(v, "s#", &krec.dptr, &tmp_size) ) { in dbm_ass_sub()
146 if ( !PyArg_Parse(w, "s#", &drec.dptr, &tmp_size) ) { in dbm_ass_sub()
176 key.dptr = ptr; in dbm_contains()
185 return val.dptr != NULL; in dbm_contains()
228 for (key = dbm_firstkey(dp->di_dbm); key.dptr; in dbm_keys()
230 item = PyString_FromStringAndSize(key.dptr, key.dsize); in dbm_keys()
254 key.dptr = tmp_ptr; in dbm_has_key()
258 return PyInt_FromLong(val.dptr != NULL); in dbm_has_key()
272 key.dptr = tmp_ptr; in dbm_get()
276 if (val.dptr != NULL) in dbm_get()
277 return PyString_FromStringAndSize(val.dptr, val.dsize); in dbm_get()
295 key.dptr = tmp_ptr; in dbm_setdefault()
299 if (val.dptr != NULL) in dbm_setdefault()
300 return PyString_FromStringAndSize(val.dptr, val.dsize); in dbm_setdefault()
308 val.dptr = PyString_AS_STRING(defvalue); in dbm_setdefault()