Lines Matching refs:ptrs
25 if (db->ptrs[n]) in handle_db_destroy()
26 ptr_destructor(db->ptrs[n]); in handle_db_destroy()
28 free(db->ptrs); in handle_db_destroy()
29 db->ptrs = NULL; in handle_db_destroy()
40 if (db->ptrs[n]) in handle_db_is_empty()
58 if (!db->ptrs[n]) { in handle_get()
59 db->ptrs[n] = ptr; in handle_get()
69 p = realloc(db->ptrs, new_max_ptrs * sizeof(void *)); in handle_get()
72 db->ptrs = p; in handle_get()
73 memset(db->ptrs + db->max_ptrs, 0, in handle_get()
78 db->ptrs[n] = ptr; in handle_get()
89 p = db->ptrs[handle]; in handle_put()
90 db->ptrs[handle] = NULL; in handle_put()
99 return db->ptrs[handle]; in handle_lookup()