Lines Matching refs:d
306 char *s, *d, *p, *ret = strdup(str); in strdup_esc() local
311 d = strchr(ret, '\\'); in strdup_esc()
312 if (!d) in strdup_esc()
315 s = d + 1; in strdup_esc()
318 *d = '\0'; in strdup_esc()
323 memmove(d, s, p - s); in strdup_esc()
324 d += p - s; in strdup_esc()
327 memmove(d, s, strlen(s) + 1); in strdup_esc()
356 char *d, *ret; in strdup_esq() local
359 d = strpbrk_esc((char *)str, "\"'"); in strdup_esq()
360 if (!d) in strdup_esq()
367 d = ret; in strdup_esq()
369 d = strpbrk(d, "\\\"\'"); in strdup_esq()
370 if (!d) in strdup_esq()
373 if (*d == '"' || *d == '\'') { in strdup_esq()
375 int quote = *d; in strdup_esq()
376 int len = strlen(d + 1) + 1; in strdup_esq()
383 memmove(d, d + 1, len); in strdup_esq()
384 d = remove_consumed_esc(d, len, quote); in strdup_esq()
385 if (!d) in strdup_esq()
387 memmove(d, d + 1, strlen(d + 1) + 1); in strdup_esq()
389 if (*d == '\\') { in strdup_esq()
390 memmove(d, d + 1, strlen(d + 1) + 1); in strdup_esq()
391 if (*d == '\\') { in strdup_esq()
393 d++; in strdup_esq()
396 } while (*d != '\0'); in strdup_esq()