• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/tcsh/

Lines Matching defs:looking

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