struct word_entry {
const char *norm_str;
int termno;
+ char *ccl_field;
struct word_entry *next;
};
{
char **words;
int numwords;
+ char *ccl_field;
int i;
switch (n->kind)
for (i = 0; i < numwords; i++)
{
const char *norm_str;
+
+ ccl_field = nmem_strdup_null(res->nmem, n->u.t.qual);
pp2_charset_token_first(res->prt, words[i], 0);
while ((norm_str = pp2_charset_token_next(res->prt)))
e = &(*e)->next;
*e = nmem_malloc(res->nmem, sizeof(**e));
(*e)->norm_str = nmem_strdup(res->nmem, norm_str);
+ (*e)->ccl_field = ccl_field;
(*e)->termno = res->vec_len++;
(*e)->next = 0;
}