mirror of
https://github.com/urbit/shrub.git
synced 2024-12-18 07:42:20 +03:00
35 lines
714 B
C
35 lines
714 B
C
|
/* include/g/h.h
|
||
|
**
|
||
|
** This file is in the public domain.
|
||
|
*/
|
||
|
|
||
|
/** Functions.
|
||
|
***
|
||
|
*** Needs: delete and merge functions; clock reclamation function.
|
||
|
**/
|
||
|
|
||
|
/* u2_ch_new(): create hashtable.
|
||
|
*/
|
||
|
u2_ch_root*
|
||
|
u2_ch_new(void);
|
||
|
|
||
|
/* u2_ch_put(): insert in hashtable.
|
||
|
**
|
||
|
** `key` is RETAINED; `val` is transferred.
|
||
|
*/
|
||
|
void
|
||
|
u2_ch_put(u2_ch_root* har_u, u2_noun key, u2_noun val);
|
||
|
|
||
|
/* u2_ch_get(): read from hashtable.
|
||
|
**
|
||
|
** `key` is RETAINED.
|
||
|
*/
|
||
|
u2_weak
|
||
|
u2_ch_get(u2_ch_root* har_u, u2_noun key);
|
||
|
|
||
|
/* u2_ch_free(): free hashtable.
|
||
|
*/
|
||
|
void
|
||
|
u2_ch_free(u2_ch_root* har_u);
|
||
|
|