Lines Matching full:looking

165     int     looking;		/* what we are looking for		*/  in tenematch()  local
228 looking = starting_a_command(qline.s + word - 1, qline.s) ? in tenematch()
237 xprintf(CGETS(30, 1, "starting_a_command %d\n"), looking); in tenematch()
252 if ((looking == TW_COMMAND || looking == TW_ZERO) && in tenematch()
258 xprintf(CGETS(30, 2, "complete %d "), looking); in tenematch()
261 looking = tw_complete(qline.s + cmd_start, &p, &pat, looking, &suf); in tenematch()
264 xprintf(CGETS(30, 3, "complete %d %S\n"), looking, pat); in tenematch()
300 search_ret = t_search(&wordbuf, command, looking, 1, pat, suf); in tenematch()
318 search_ret = spell_me(&wordbuf, looking, pat, suf); in tenematch()
323 search_ret = t_search(&wordbuf, command, looking, 1, pat, suf); in tenematch()
358 if ((looking == TW_COMMAND) && Strchr(wordbuf.s, '/') != NULL) { in tenematch()
366 search_ret = spell_me(&wordbuf, looking, pat, suf); in tenematch()
389 count = (looking == TW_COMMAND && Strchr(qline.s + wordp, '/') == 0) ? in tenematch()
391 t_glob(&ptr, looking == TW_COMMAND); in tenematch()
472 search_ret = t_search(&wordbuf, LIST, looking, 1, pat, suf); in tenematch()
818 * count is our state machine: 0 looking for anything 1 found white-space in starting_a_command()
819 * looking for non-ws in starting_a_command()
926 tw_collect_items(COMMAND command, int looking, struct Strbuf *exp_dir, in tw_collect_items() argument
967 if (looking == TW_COMMAND in tw_collect_items()
982 tw_next_entry[looking](&item, exp_dir, &flags) != 0)) { in tw_collect_items()
987 switch (looking) { in tw_collect_items()
1131 if (looking == TW_COMMAND || looking == TW_LOGNAME in tw_collect_items()
1132 || looking == TW_USER || command == LIST) { in tw_collect_items()
1135 switch (looking) { in tw_collect_items()
1152 if ((looking == TW_COMMAND || looking == TW_USER in tw_collect_items()
1153 || looking == TW_LOGNAME) && tw_item_find(buf.s)) in tw_collect_items()
1236 tw_suffix(int looking, struct Strbuf *word, const Char *exp_dir, Char *exp_name) in tw_suffix() argument
1244 switch (looking) { in tw_suffix()
1300 tw_fixword(int looking, struct Strbuf *word, Char *dir, Char *exp_name) in tw_fixword() argument
1304 switch (looking) { in tw_fixword()
1345 tw_collect(COMMAND command, int looking, struct Strbuf *exp_dir, in tw_collect() argument
1360 (*tw_start_entry[looking])(dir_fd, pat); in tw_collect()
1371 ni = tw_collect_items(command, looking, exp_dir, exp_name, target, pat, in tw_collect()
1381 if ((looking == TW_LOGNAME) || (looking == TW_USER)) in tw_collect()
1383 else if (looking == TW_GRPNAME) in tw_collect()
1388 (*tw_end_entry[looking])(); in tw_collect()
1397 * NOTE instead of looking at numerical vars listmax and listmaxrows
1403 tw_list_items(int looking, int numitems, int list_max) in tw_list_items() argument
1436 if (max_rows != 0 && looking != TW_JOB) in tw_list_items()
1478 if (looking != TW_SIGNAL) in tw_list_items()
1480 if (looking != TW_JOB) in tw_list_items()
1510 t_search(struct Strbuf *word, COMMAND command, int looking, int list_max, in t_search() argument
1543 looking = TW_LOGNAME; in t_search()
1552 looking = TW_VARIABLE; in t_search()
1559 * Try to figure out what we should be looking for in t_search()
1561 if (looking & TW_PATH) { in t_search()
1571 switch (looking & ~TW_PATH) { in t_search()
1577 looking = TW_FILE; in t_search()
1581 if (Strchr(word->s, '/') || (looking & TW_PATH)) { in t_search()
1582 looking = TW_FILE; in t_search()
1588 if (looking == TW_COMMAND && word->len == 0) { in t_search()
1621 xprintf(CGETS(30, 8, "looking = %d\n"), looking); in t_search()
1624 switch (looking) { in t_search()
1711 looking &= ~TW_PATH; in t_search()
1713 switch (looking) { in t_search()
1767 "\n%s internal error: I don't know what I'm looking for!\n"), in t_search()
1775 numitems = tw_collect(command, looking, &exp_dir, &exp_name, target, pat, in t_search()
1788 tw_fixword(looking, word, dir.s, exp_name.s); in t_search()
1794 tw_suffix(looking, word, exp_dir.s, exp_name.s)); in t_search()
1809 tw_list_items(looking, numitems, list_max); in t_search()
1815 tw_fixword(looking, word, dir.s, exp_name.s); in t_search()