Lines Matching refs:wl
406 tw_dollar(const Char *str, Char **wl, size_t nwl, Char **result, Char sep,
426 Strbuf_append(&buf, wl[num]);
458 Char *buf, **vec, **wl;
467 wl = xmalloc(((Strlen(line) + 1) / 2 + 2) * sizeof (*wl));
468 cleanup_push(wl, xfree);
471 if ((wl[0] = tw_tok(buf)) == NULL || wl[0] == INVPTR) {
480 if ((vec = tw_find(wl[0], &completions, (looking == TW_COMMAND)))
487 for (wordno = 1; (wl[wordno] = tw_tok(NULL)) != NULL &&
488 wl[wordno] != INVPTR; wordno++)
491 if (wl[wordno] == INVPTR) { /* Found a meta character */
499 xprintf("'%s' ", short2str(wl[i]));
506 wl[wordno] = *word;
509 wl[wordno] = NULL;
516 xprintf(" cmd: %s\n", short2str(wl[0]));
518 xprintf("last: %s\n", wordno >= 2 ? short2str(wl[wordno-2]) : "n/a");
519 xprintf("this: %s\n", wordno >= 1 ? short2str(wl[wordno-1]) : "n/a");
538 pos = (wordno < 3) ? nomatch : wl[wordno - 3];
541 pos = (wordno < 2) ? nomatch : wl[wordno - 2];
545 pos = (wordno < 1) ? nomatch : wl[wordno - 1];
561 ptr = tw_dollar(&ptr[2], wl, wordno, &ran, sep,
571 ptr = tw_dollar(ptr, wl, wordno, &com, sep,