Lines Matching refs:wl
403 tw_dollar(const Char *str, Char **wl, size_t nwl, Char **result, Char sep, in tw_dollar() argument
423 Strbuf_append(&buf, wl[num]); in tw_dollar()
455 Char *buf, **vec, **wl; in tw_complete() local
464 wl = xmalloc(((Strlen(line) + 1) / 2 + 2) * sizeof (*wl)); in tw_complete()
465 cleanup_push(wl, xfree); in tw_complete()
468 if ((wl[0] = tw_tok(buf)) == NULL || wl[0] == INVPTR) { in tw_complete()
477 if ((vec = tw_find(wl[0], &completions, (looking == TW_COMMAND))) in tw_complete()
484 for (wordno = 1; (wl[wordno] = tw_tok(NULL)) != NULL && in tw_complete()
485 wl[wordno] != INVPTR; wordno++) in tw_complete()
488 if (wl[wordno] == INVPTR) { /* Found a meta character */ in tw_complete()
496 xprintf("'%s' ", short2str(wl[i])); in tw_complete()
503 wl[wordno] = *word; in tw_complete()
506 wl[wordno] = NULL; in tw_complete()
513 xprintf(" cmd: %s\n", short2str(wl[0])); in tw_complete()
515 xprintf("last: %s\n", wordno >= 2 ? short2str(wl[wordno-2]) : "n/a"); in tw_complete()
516 xprintf("this: %s\n", wordno >= 1 ? short2str(wl[wordno-1]) : "n/a"); in tw_complete()
536 pos = (wordno < 3) ? nomatch : wl[wordno - 3]; in tw_complete()
539 pos = (wordno < 2) ? nomatch : wl[wordno - 2]; in tw_complete()
543 pos = (wordno < 1) ? nomatch : wl[wordno - 1]; in tw_complete()
559 ptr = tw_dollar(&ptr[2], wl, wordno, &ran, sep, in tw_complete()
569 ptr = tw_dollar(ptr, wl, wordno, &com, sep, in tw_complete()