Commit 974cc032 authored by Geoff Simmons's avatar Geoff Simmons

Give the internal match function some const/restrict hints.

parent b05e49ce
Pipeline #245 skipped
...@@ -553,8 +553,10 @@ compile(VRT_CTX, pcre2_compile_context * restrict const cctx, ...@@ -553,8 +553,10 @@ compile(VRT_CTX, pcre2_compile_context * restrict const cctx,
} }
static inline VCL_BOOL static inline VCL_BOOL
match(VRT_CTX, pcre2_code *code, VCL_STRING subject, VCL_INT len, match(VRT_CTX, pcre2_code * restrict const code,
uint32_t options, pcre2_match_data *mdata, pcre2_match_context *mctx, VCL_STRING restrict const subject, VCL_INT len, const uint32_t options,
pcre2_match_data * restrict const mdata,
pcre2_match_context * restrict const mctx,
const char * restrict const context, const char * restrict const caller) const char * restrict const context, const char * restrict const caller)
{ {
PCRE2_SPTR safe_subject; PCRE2_SPTR safe_subject;
......
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