-/* $Id: zebramap.c,v 1.56 2007-01-22 18:15:04 adam Exp $
+/* $Id: zebramap.c,v 1.58 2007-03-21 13:47:12 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
chrmaptab_destroy(zm->maptab);
zm = zm->next;
}
- wrbuf_free(zms->wrbuf_1, 1);
+ wrbuf_destroy(zms->wrbuf_1);
nmem_destroy(zms->nmem);
xfree(zms);
}
AttrType use;
int completeness_value;
int structure_value;
+ const char *structure_str = 0;
int relation_value;
int sort_relation_value;
int weight_value;
attr_init_APT(&use, zapt, 1);
completeness_value = attr_find(&completeness, NULL);
- structure_value = attr_find(&structure, NULL);
+ structure_value = attr_find_ex(&structure, NULL, &structure_str);
relation_value = attr_find(&relation, NULL);
sort_relation_value = attr_find(&sort_relation, NULL);
weight_value = attr_find(&weight, NULL);
*reg_id = 'd';
*search_type = "phrase";
break;
+ case -2:
+ if (structure_str && *structure_str)
+ *reg_id = *structure_str;
+ else
+ return -1;
+ break;
default:
return -1;
}