Lines Matching refs:cnt
24 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname()
25 cmds->names[cmds->cnt++] = ent; in add_cmdname()
32 for (i = 0; i < cmds->cnt; ++i) in clean_cmdnames()
35 cmds->cnt = 0; in clean_cmdnames()
50 if (!cmds->cnt) in uniq()
53 for (i = j = 1; i < cmds->cnt; i++) in uniq()
57 cmds->cnt = j; in uniq()
66 while (ci < cmds->cnt && ei < excludes->cnt) { in exclude_cmds()
78 while (ci < cmds->cnt) in exclude_cmds()
81 cmds->cnt = cj; in exclude_cmds()
119 rows = (cmds->cnt + cols - 1) / cols; in pretty_print_string_list()
128 if (n >= cmds->cnt) in pretty_print_string_list()
130 if (j == cols-1 || n + rows >= cmds->cnt) in pretty_print_string_list()
203 qsort(main_cmds->names, main_cmds->cnt, in load_command_list()
223 qsort(other_cmds->names, other_cmds->cnt, in load_command_list()
236 for (i = 0; i < main_cmds->cnt; i++) in list_commands()
239 for (i = 0; i < other_cmds->cnt; i++) in list_commands()
243 if (main_cmds->cnt) { in list_commands()
254 if (other_cmds->cnt) { in list_commands()
268 for (i = 0; i < c->cnt; i++) in is_in_cmdlist()