Lines Matching defs:cp
96 const char *cp = s;
99 cp += utf_ptradj(cp);
100 *lp = cp - s;
105 substitute(const char *cp, int f)
111 s->start = s->str = cp;
117 return (evalstr(yylval.cp, f));
147 evalstr(const char *cp, int f)
153 expand(cp, &w, f);
165 evalonestr(const char *cp, int f)
171 expand(cp, &w, f);
180 rv = evalstr(cp, f&~DOGLOB);
200 expand(const char *cp, /* input word */
223 if (cp == NULL)
226 if ((f & DOVACHECK) && is_wdvarassign(cp)) {
240 sp = cp;
1223 comsub(Expand *xp, const char *cp)
1231 s->start = s->str = cp;
1345 /* XXX cp not const 'cause slashes are temporarily replaced with NULs... */
1347 glob(char *cp, XPtrV *wp, int markdirs)
1351 if (glob_str(cp, wp, markdirs) == 0)
1352 XPput(*wp, debunk(cp, cp, strlen(cp) + 1));
1364 * Apply file globbing to cp and store the matching files in wp. Returns
1368 glob_str(char *cp, XPtrV *wp, int markdirs)
1375 globit(&xs, &xp, cp, wp, markdirs ? GF_MARKDIR : GF_NONE);
1588 tilde(char *cp)
1592 if (cp[0] == '\0')
1594 else if (cp[0] == '+' && cp[1] == '\0')
1596 else if (cp[0] == '-' && cp[1] == '\0')
1600 dp = homedir(cp);