version 1.31, 2020/06/10 21:05:02 |
version 1.32, 2020/06/26 15:57:39 |
|
|
i++; |
i++; |
} |
} |
*bp = 0; |
*bp = 0; |
DPRINTF( ("cclenter: in = |%s|, out = |%s|\n", op, buf) ); |
DPRINTF("cclenter: in = |%s|, out = |%s|\n", op, buf); |
xfree(op); |
xfree(op); |
return (char *) tostring((char *) buf); |
return (char *) tostring((char *) buf); |
} |
} |
|
|
{ /* uses relex() to scan regular expression */ |
{ /* uses relex() to scan regular expression */ |
Node *np; |
Node *np; |
|
|
DPRINTF( ("reparse <%s>\n", p) ); |
DPRINTF("reparse <%s>\n", p); |
lastre = prestr = (const uschar *) p; /* prestr points to string to be parsed */ |
lastre = prestr = (const uschar *) p; /* prestr points to string to be parsed */ |
rtok = relex(); |
rtok = relex(); |
/* GNU compatibility: an empty regexp matches anything */ |
/* GNU compatibility: an empty regexp matches anything */ |
|
|
if (!adjbuf((char **) &buf, &bufsz, bp-buf+1, 100, (char **) &bp, "relex2")) |
if (!adjbuf((char **) &buf, &bufsz, bp-buf+1, 100, (char **) &bp, "relex2")) |
FATAL("out of space for reg expr %.10s...", lastre); |
FATAL("out of space for reg expr %.10s...", lastre); |
if (cc->cc_func(i)) { |
if (cc->cc_func(i)) { |
|
/* escape backslash */ |
|
if (i == '\\') { |
|
*bp++ = '\\'; |
|
n++; |
|
} |
|
|
*bp++ = i; |
*bp++ = i; |
n++; |
n++; |
} |
} |