Lines Matching defs:dp
151 char *dp = null;
156 dp = *XPptrv(w);
158 return (dp);
209 char *dp; /* destination */
239 Xinit(ds, dp, 128, ATEMP);
254 Xcheck(ds, dp);
285 *dp++ = '$';
287 *dp++ = '{';
288 *dp++ = ' ';
290 *dp++ = '(';
292 Xcheck(ds, dp);
293 *dp++ = *sp++;
296 *dp++ = ';';
297 *dp++ = '}';
299 *dp++ = ')';
312 *dp++ = '$'; *dp++ = '('; *dp++ = '(';
314 Xcheck(ds, dp);
315 *dp++ = *sp++;
317 *dp++ = ')'; *dp++ = ')';
330 Xcheck(ds, dp);
331 *dp++ = *p++;
380 st->base = Xsavepos(ds, dp);
634 *dp++ = MAGIC;
635 *dp++ = '@' | 0x80;
684 *dp = '\0';
694 *dp++ = MAGIC;
695 *dp++ = ')';
697 *dp = '\0';
698 dp = Xrestpos(ds, dp, st->base);
705 dp, st->stype);
721 dp = Xrestpos(ds, dp, st->base);
736 len = strlen(dp) + 1;
739 dp, len), KSH_UNWIND_ERROR);
747 char *s = Xrestpos(ds, dp, st->base);
750 dp == s ?
758 dp = Xrestpos(ds, dp, st->base);
804 if (dp == Xstring(ds, dp))
900 *dp++ = '\0';
901 p = Xclose(ds, dp);
905 p + Xlength(ds, (dp - 1)),
918 Xinit(ds, dp, 128, ATEMP);
922 !ctype(c, C_IFSWS) && Xlength(ds, dp) == 0) {
934 Xlength(ds, dp) == 0) {
961 *dp++ = MAGIC;
968 *dp++ = MAGIC;
977 *dp++ = MAGIC;
1008 dp_x = dp;
1013 if (dp != dp_x)
1015 dp = dp_x;
1029 *dp++ = MAGIC;
1032 *dp++ = MAGIC;
1035 *dp++ = c;
1608 debunk(char *dp, const char *sp, size_t dlen)
1615 return (dp);
1616 memmove(dp, sp, s - sp);
1617 for (d = dp + (s - sp); *s && (d - dp < (ssize_t)dlen); s++)
1625 if (d - dp < (ssize_t)dlen)
1629 } else if (dp != sp)
1630 strlcpy(dp, sp, dlen);
1631 return (dp);
1636 * puts the expanded version in *dcp,dp and returns a pointer in p just
1643 char *dp = *dpp;
1661 Xcheck(*dsp, dp);
1663 *dp++ = MAGIC;
1664 *dp++ = *r++;
1666 *dpp = dp;
1681 char *dp = null;
1684 dp = str_val(global("HOME"));
1686 dp = str_val(global("PWD"));
1688 dp = str_val(global("OLDPWD"));
1691 dp = homedir(cp);
1694 return (dp == null ? NULL : dp);