Lines Matching defs:cp
687 char *cp;
696 cp = uri + scheme;
699 if (cp[-1] == '/') {
701 while (*cp && *cp != '/') {
702 ++cp;
706 if (!*cp || !*++cp) {
711 scheme = cp - uri;
723 token[0] = cp = apr_pstrdup(p, cp);
724 while (*cp && c < 4) {
725 if (*cp == '?') {
726 token[++c] = cp + 1;
727 *cp = '\0';
729 ++cp;
748 ap_escape_uri(p, cp), NULL);
808 char *cp;
811 cp = (char *)ap_http_scheme(r);
812 l = strlen(cp);
814 && strncasecmp(r->filename, cp, l) == 0
825 cp = host = scratch + l + 3; /* 3 == strlen("://") */
826 while (*cp && *cp != '/' && *cp != ':') {
827 ++cp;
830 if (*cp == ':') { /* additional port given */
831 *cp++ = '\0';
832 portp = cp;
833 while (*cp && *cp != '/') {
834 ++cp;
836 *cp = '\0';
839 url = r->filename + (cp - scratch);
844 else if (*cp == '/') { /* default port */
845 *cp = '\0';
848 url = r->filename + (cp - scratch);
3485 data_item *cp = cfg->cookie;
3487 if (!cp) {
3488 cp = cfg->cookie = apr_palloc(p, sizeof(*cp));
3491 while (cp->next) {
3492 cp = cp->next;
3494 cp->next = apr_palloc(p, sizeof(*cp));
3495 cp = cp->next;
3498 cp->next = NULL;
3499 cp->data = val;
3514 data_item *cp = cfg->env;
3516 if (!cp) {
3517 cp = cfg->env = apr_palloc(p, sizeof(*cp));
3520 while (cp->next) {
3521 cp = cp->next;
3523 cp->next = apr_palloc(p, sizeof(*cp));
3524 cp = cp->next;
3527 cp->next = NULL;
3528 cp->data = val;
4817 char *cp;
4955 cp = r->filename + skip;
4957 if ((cp = ap_strchr(cp, '/')) != NULL && *(++cp)) {
4982 * (note that cp was already increased to the right value)
4984 cp2 = subst_prefix_path(r, cp, (*dconf->directory == '/')
4988 if (strcmp(cp2, cp) != 0) {
4989 *cp = '\0';