Home | History | Annotate | Download | only in ksh

Lines Matching defs:words

454 x_print_expansions(nwords, words, is_command)
456 char *const *words;
469 && (prefix_len = x_longest_prefix(nwords, words)) > 0)
475 prefix_len = x_basename(words[0], (char *) 0);
478 if (x_basename(words[i] + prefix_len, (char *) 0)
484 && !ISDIRSEP(words[0][prefix_len - 1]))
489 XPput(l, words[i] + prefix_len);
499 pr_list(use_copy ? (char **) XPptrv(l) : words);
520 char **words;
545 * Convert "foo*" (toglob) to an array of strings (words)
560 words = (char **) XPclose(w);
562 for (nwords = 0; words[nwords]; nwords++)
574 if ((strcmp(words[0], toglob) == 0
575 && stat(words[0], &statb) < 0)
576 || words[0][0] == '\0')
578 x_free_words(nwords, words);
579 words = NULL;
586 *wordsp = words;
587 } else if (words) {
588 x_free_words(nwords, words);
665 char **words = (char **) XPptrv(w);
672 info[i].word = words[i];
673 info[i].base = x_basename(words[i], (char *) 0);
675 || FILENCMP(words[i],
686 words[i] = info[i].word;
690 char **words = (char **) XPptrv(w);
696 if (strcmp(words[i], words[i + 1]))
697 words[j++] = words[i];
699 afree(words[i], ATEMP);
701 words[j++] = words[i];
703 w.cur = (void **) &words[j];
785 char **words;
799 buf + *startp, len, &words);
807 *wordsp = words;
858 x_longest_prefix(nwords, words)
860 char *const *words;
869 prefix_len = strlen(words[0]);
871 for (j = 0, p = words[i]; j < prefix_len; j++)
873 != FILECHCONV((unsigned char)words[0][j])) {
881 x_free_words(nwords, words)
883 char **words;
888 if (words[i])
889 afree(words[i], ATEMP);
890 afree(words, ATEMP);
960 char **words;
995 words = (char **) XPptrv(*wp);
998 if ((search_access(words[i], X_OK, &staterr) >= 0)
1000 words[j] = words[i];
1002 memmove(words[j], words[j] + pathlen,
1003 strlen(words[j] + pathlen) + 1);
1006 afree(words[i], ATEMP);
1008 wp->cur = (void **) &words[j];