Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2012-05-17 17:47:04 +0400
committerValentin Bartenev <vbart@nginx.com>2012-05-17 17:47:04 +0400
commit1c168c78757bc7f6d13000efa04311db6d30e953 (patch)
tree78e527e2ea2551562aa3a07c155b551f0d1e1a40 /src/core/ngx_regex.h
parent1b4397443fa707bbfcafb86bb1b0bb326f6d3adf (diff)
Fixed the ngx_regex.h header file compatibility with C++.
Diffstat (limited to 'src/core/ngx_regex.h')
-rw-r--r--src/core/ngx_regex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_regex.h b/src/core/ngx_regex.h
index 55bd331bb..680486c81 100644
--- a/src/core/ngx_regex.h
+++ b/src/core/ngx_regex.h
@@ -21,7 +21,7 @@
typedef struct {
- pcre *pcre;
+ pcre *code;
pcre_extra *extra;
} ngx_regex_t;
@@ -50,7 +50,7 @@ void ngx_regex_init(void);
ngx_int_t ngx_regex_compile(ngx_regex_compile_t *rc);
#define ngx_regex_exec(re, s, captures, size) \
- pcre_exec(re->pcre, re->extra, (const char *) (s)->data, (s)->len, 0, 0, \
+ pcre_exec(re->code, re->extra, (const char *) (s)->data, (s)->len, 0, 0, \
captures, size)
#define ngx_regex_exec_n "pcre_exec()"