378 |
{ |
{ |
379 |
register struct kwset *kwset; |
register struct kwset *kwset; |
380 |
register int i; |
register int i; |
381 |
register struct trie *curr, *fail; |
register struct trie *curr; |
382 |
register char const *trans; |
register char const *trans; |
383 |
unsigned char delta[NCHAR]; |
unsigned char delta[NCHAR]; |
|
struct trie *last, *next[NCHAR]; |
|
384 |
|
|
385 |
kwset = (struct kwset *) kws; |
kwset = (struct kwset *) kws; |
386 |
|
|
412 |
} |
} |
413 |
else |
else |
414 |
{ |
{ |
415 |
|
register struct trie *fail; |
416 |
|
struct trie *last, *next[NCHAR]; |
417 |
|
|
418 |
/* Traverse the nodes of the trie in level order, simultaneously |
/* Traverse the nodes of the trie in level order, simultaneously |
419 |
computing the delta table, failure function, and shift function. */ |
computing the delta table, failure function, and shift function. */ |
420 |
for (curr = last = kwset->trie; curr; curr = curr->next) |
for (curr = last = kwset->trie; curr; curr = curr->next) |