Commit e7694ea9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp
parents 9857918c 4e9bf8c8
...@@ -139,7 +139,7 @@ VRT_regsub(const struct sess *sp, int all, const char *str, void *re, ...@@ -139,7 +139,7 @@ VRT_regsub(const struct sess *sp, int all, const char *str, void *re,
if (!all) if (!all)
break; break;
memset(&ovector, 0, sizeof(ovector)); memset(&ovector, 0, sizeof(ovector));
options |= VRE_NOTEMPTY_ATSTART; options |= VRE_NOTEMPTY;
i = VRE_exec(t, str, len, 0, options, ovector, 30, i = VRE_exec(t, str, len, 0, options, ovector, 30,
&cache_param->vre_limits); &cache_param->vre_limits);
if (i < VRE_ERROR_NOMATCH ) { if (i < VRE_ERROR_NOMATCH ) {
......
varnishtest "Test VCL regsuball()" varnishtest "Test VCL regsuball()"
feature VRE_NOTEMPTY_ATSTART
server s1 { server s1 {
rxreq rxreq
txresp \ txresp \
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#include "vtc.h" #include "vtc.h"
#include "vav.h" #include "vav.h"
#include "vre.h"
#include "vtim.h" #include "vtim.h"
...@@ -495,9 +494,6 @@ cmd_feature(CMD_ARGS) ...@@ -495,9 +494,6 @@ cmd_feature(CMD_ARGS)
continue; continue;
#endif #endif
} }
if (!strcmp(av[i], "VRE_NOTEMPTY_ATSTART") &&
VRE_NOTEMPTY_ATSTART)
continue;
vtc_log(vl, 1, "SKIPPING test, missing feature: %s", av[i]); vtc_log(vl, 1, "SKIPPING test, missing feature: %s", av[i]);
vtc_stop = 1; vtc_stop = 1;
......
...@@ -976,10 +976,10 @@ based on the request URL::: ...@@ -976,10 +976,10 @@ based on the request URL:::
} }
} }
The following snippet demonstrates how to force a minimum TTL for The following snippet demonstrates how to force a minimum TTL for
all documents. Note that this is not the same as setting the all documents. Note that this is not the same as setting the
default_ttl run-time parameter, as that only affects document for default_ttl run-time parameter, as that only affects document for
which the backend did not specify a TTL::: which the backend did not specify a TTL:::
import std; # needed for std.log import std; # needed for std.log
......
...@@ -49,7 +49,7 @@ typedef struct vre vre_t; ...@@ -49,7 +49,7 @@ typedef struct vre vre_t;
/* And those to PCRE options */ /* And those to PCRE options */
extern const unsigned VRE_CASELESS; extern const unsigned VRE_CASELESS;
extern const unsigned VRE_NOTEMPTY_ATSTART; extern const unsigned VRE_NOTEMPTY;
vre_t *VRE_compile(const char *, int, const char **, int *); vre_t *VRE_compile(const char *, int, const char **, int *);
int VRE_exec(const vre_t *code, const char *subject, int length, int VRE_exec(const vre_t *code, const char *subject, int length,
......
...@@ -49,12 +49,7 @@ struct vre { ...@@ -49,12 +49,7 @@ struct vre {
* here. * here.
*/ */
const unsigned VRE_CASELESS = PCRE_CASELESS; const unsigned VRE_CASELESS = PCRE_CASELESS;
const unsigned VRE_NOTEMPTY_ATSTART = const unsigned VRE_NOTEMPTY = PCRE_NOTEMPTY;
#ifdef PCRE_NOTEMPTY_ATSTART
PCRE_NOTEMPTY_ATSTART;
#else
0;
#endif
vre_t * vre_t *
VRE_compile(const char *pattern, int options, VRE_compile(const char *pattern, int options,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment