Lines Matching refs:dptr
33 #define GDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
74 if(dba->nextkey.dptr) free(dba->nextkey.dptr); in DBA_CLOSE_FUNC()
87 if(gval.dptr) { in DBA_FETCH_FUNC()
89 new = estrndup(gval.dptr, gval.dsize); in DBA_FETCH_FUNC()
90 free(gval.dptr); in DBA_FETCH_FUNC()
101 gval.dptr = (char *) val; in DBA_UPDATE_FUNC()
140 if(dba->nextkey.dptr) { in DBA_FIRSTKEY_FUNC()
141 free(dba->nextkey.dptr); in DBA_FIRSTKEY_FUNC()
145 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC()
146 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
150 dba->nextkey.dptr = NULL; in DBA_FIRSTKEY_FUNC()
161 if(!dba->nextkey.dptr) return NULL; in DBA_NEXTKEY_FUNC()
164 free(dba->nextkey.dptr); in DBA_NEXTKEY_FUNC()
165 if(gkey.dptr) { in DBA_NEXTKEY_FUNC()
166 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
170 dba->nextkey.dptr = NULL; in DBA_NEXTKEY_FUNC()