1 /* $XConsortium: trieplk.c /main/3 1995/11/08 09:56:28 rswiston $ */
3 Copyright 1986, 1987, 1988, 1989 Hewlett-Packard Co.
6 /* Trie.c contains procedures for maintaining the tree structure
7 used to store element names, delimiter strings, short reference strings,
15 extern M_CHARTYPE m_ctarray[M_CHARSETLEN] ;
24 /* Look for the string NAME in the packed trie PTRIE */
25 int m_packedlook(xptrie, name)
33 for ( ; TRUE ; name++)
35 c = m_ctupper(*name) ;
37 (int) ((xptrie + i)->symbol) < c && (xptrie + i)->more ;
39 if ((int) ((xptrie + i)->symbol) == c)
41 if (! c) return((xptrie + i)->index) ;
42 current = (xptrie + i)->index ;