Lines Matching refs:m

40 substr(MENU *m, char *s1, char *s2)  in substr()  argument
42 if (IgnoreCase(m)) { in substr()
62 _match(MENU *m, char c, ITEM **current) in _match() argument
77 if (Pindex(m)+1 > MaxName(m)) { in _match()
80 IthPattern(m, Pindex(m)) = c; in _match()
81 IthPattern(m, ++Pindex(m)) = '\0'; in _match()
83 i = Nitems(m)-1; in _match()
94 i = Nitems(m)-1; in _match()
97 if (++i >= Nitems(m)) { in _match()
101 if (substr(m, Pattern(m), Name(IthItem(m, i)))) { in _match()
112 *current = IthItem(m, i); in _match()
115 Pindex(m) -= 1; in _match()
116 IthPattern(m, Pindex(m)) = '\0'; in _match()
124 menu_pattern(MENU *m) in menu_pattern() argument
126 if (m) { in menu_pattern()
127 if (Pattern(m)) { in menu_pattern()
128 return (Pattern(m)); in menu_pattern()
138 set_menu_pattern(MENU *m, char *s) in set_menu_pattern() argument
143 if (!m || !s) { in set_menu_pattern()
146 if (!Items(m)) { in set_menu_pattern()
149 if (Indriver(m)) { in set_menu_pattern()
153 IthPattern(m, 0) = '\0'; in set_menu_pattern()
154 Pindex(m) = 0; in set_menu_pattern()
157 _position_cursor(m); in set_menu_pattern()
160 if (LinkNeeded(m)) { in set_menu_pattern()
161 _link_items(m); in set_menu_pattern()
164 top = Top(m); in set_menu_pattern()
165 current = Current(m); in set_menu_pattern()
168 if (_match(m, *s, &current) != E_OK) { in set_menu_pattern()
169 IthPattern(m, 0) = '\0'; in set_menu_pattern()
170 Pindex(m) = 0; in set_menu_pattern()
171 _position_cursor(m); in set_menu_pattern()
175 _chk_current(m, &top, current); in set_menu_pattern()
176 _affect_change(m, top, current); in set_menu_pattern()