rewrite 37 remote.c struct rewrite **rewrite; rewrite 75 remote.c if (!r->rewrite[i]) rewrite 77 remote.c for (j = 0; j < r->rewrite[i]->instead_of_nr; j++) { rewrite 78 remote.c if (starts_with(url, r->rewrite[i]->instead_of[j].s) && rewrite 80 remote.c longest->len < r->rewrite[i]->instead_of[j].len)) { rewrite 81 remote.c longest = &(r->rewrite[i]->instead_of[j]); rewrite 89 remote.c ret = xmalloc(r->rewrite[longest_i]->baselen + rewrite 91 remote.c strcpy(ret, r->rewrite[longest_i]->base); rewrite 92 remote.c strcpy(ret + r->rewrite[longest_i]->baselen, url + longest->len); rewrite 216 remote.c static struct rewrite *make_rewrite(struct rewrites *r, const char *base, int len) rewrite 218 remote.c struct rewrite *ret; rewrite 223 remote.c ? (len == r->rewrite[i]->baselen && rewrite 224 remote.c !strncmp(base, r->rewrite[i]->base, len)) rewrite 225 remote.c : !strcmp(base, r->rewrite[i]->base)) rewrite 226 remote.c return r->rewrite[i]; rewrite 229 remote.c ALLOC_GROW(r->rewrite, r->rewrite_nr + 1, r->rewrite_alloc); rewrite 230 remote.c ret = xcalloc(1, sizeof(struct rewrite)); rewrite 231 remote.c r->rewrite[r->rewrite_nr++] = ret; rewrite 243 remote.c static void add_instead_of(struct rewrite *rewrite, const char *instead_of) rewrite 245 remote.c ALLOC_GROW(rewrite->instead_of, rewrite->instead_of_nr + 1, rewrite->instead_of_alloc); rewrite 246 remote.c rewrite->instead_of[rewrite->instead_of_nr].s = instead_of; rewrite 247 remote.c rewrite->instead_of[rewrite->instead_of_nr].len = strlen(instead_of); rewrite 248 remote.c rewrite->instead_of_nr++; rewrite 378 remote.c struct rewrite *rewrite; rewrite 384 remote.c rewrite = make_rewrite(&rewrites, name, subkey - name); rewrite 387 remote.c add_instead_of(rewrite, xstrdup(value)); rewrite 389 remote.c rewrite = make_rewrite(&rewrites_push, name, subkey - name); rewrite 392 remote.c add_instead_of(rewrite, xstrdup(value));