25 s->key_source = key_source;
26 s->data_source = data_source;
34 HASH_ITER(hh, *i, cur, tmp) {
44 scapedataFree(&s->
data);
61 HASH_FIND_INT( *data, &h, e );
63 raise_error(
"allready there!");
69 HASH_ADD_INT(*data,key,e);
88 HASH_FIND_INT( *data, &h, e );
89 if (e)
return e->
value;
Scape * _s_new(Symbol key_source, Symbol data_source)
Xaddr _s_get(Scape *s, TreeHash h)
TreeHash key
has of the key tree that maps to a given data value
ScapeData data
the scape data store (hash table)
Xaddr value
instance of data_source pointed to by the key
void _s_add(Scape *s, TreeHash h, Xaddr x)