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

Lines Matching defs:exp_name

869  *	On subsequent matches, shorten exp_name to the first
870 * character mismatch between exp_name and item.
874 recognize(struct Strbuf *exp_name, const Char *item, size_t name_length,
883 exp_name->len = 0;
884 Strbuf_append(exp_name, item);
885 Strbuf_terminate(exp_name);
889 for (x = exp_name->s, ent = item; *x && (*x & TRIM) == (*ent & TRIM);
893 for (x = exp_name->s, ent = item; *x; x++, ent++) {
908 exp_name->len = x - exp_name->s;
927 struct Strbuf *exp_name, Char *target, const Char *pat,
1046 exp_name->len = 0; /* (not trying is important for ~) */
1047 Strbuf_terminate(exp_name);
1061 exp_name->len = 0;
1062 Strbuf_append(exp_name, item.s);
1063 Strbuf_terminate(exp_name);
1070 if (spdir(exp_name, exp_dir->s, item.s, target)) {
1072 !executable(exp_dir->s, exp_name->s, dir_ok))
1176 exp_name->len = 0;
1177 Strbuf_append(exp_name, item.s);
1178 Strbuf_terminate(exp_name);
1185 if (recognize(exp_name, item.s, name_length, ++numitems,
1189 if (enhanced && exp_name->len < name_length) {
1190 exp_name->len = 0;
1191 Strbuf_append(exp_name, target);
1192 Strbuf_terminate(exp_name);
1214 choose_scroll_tab(exp_name, cnt);
1236 tw_suffix(int looking, struct Strbuf *word, const Char *exp_dir, Char *exp_name)
1242 (void) strip(exp_name);
1253 if ((vp = adrof(exp_name)) != NULL && vp->vec != NULL) {
1258 else if ((ptr = tgetenv(exp_name)) == NULL || *ptr == '\0')
1273 return isadirectory(exp_dir, exp_name) ? '/' : ' ';
1300 tw_fixword(int looking, struct Strbuf *word, Char *dir, Char *exp_name)
1330 (void) quote(exp_name);
1331 Strbuf_append(word, exp_name); /* add extended name */
1346 struct Strbuf *exp_name, Char *target, Char *pat, int flags,
1371 ni = tw_collect_items(command, looking, exp_dir, exp_name, target, pat,
1519 struct Strbuf exp_name = Strbuf_INIT;/* the recognized (extended) */
1774 cleanup_push(&exp_name, Strbuf_cleanup);
1775 numitems = tw_collect(command, looking, &exp_dir, &exp_name, target, pat,
1787 Strbuf_terminate(&exp_name);
1788 tw_fixword(looking, word, dir.s, exp_name.s);
1794 tw_suffix(looking, word, exp_dir.s, exp_name.s));
1814 Strbuf_terminate(&exp_name);
1815 tw_fixword(looking, word, dir.s, exp_name.s);
2344 choose_scroll_tab(struct Strbuf *exp_name, int cnt)
2358 exp_name->len = 0;
2359 Strbuf_append(exp_name, ptr[curchoice]);
2360 Strbuf_terminate(exp_name);