14 Label str2label(
char* s) {
15 return hashfn(s,strlen(s));
18 void _labelSet(
LabelTable *table,Label l,
int *path){
25 HASH_ADD_INT(*table,label,e);
30 HASH_FIND_INT( *table, &l, e );
35 void labelSet(
LabelTable *table,
char *s,
int *path) {
36 _labelSet(table,str2label(s),path);
40 return _labelGet(table, str2label(s));
51 HASH_ITER(hh, *table, cur, tmp) {
int _t_path_depth(int *p)
semantic trees header file
int path_s
first int of the path to the labeled item in the Receptor tree
void _t_pathcpy(int *dst_p, int *src_p)
Label tables map human readable text strings to parts of semantic trees.