aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-11-16 12:19:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-11-16 12:19:02 +0000
commitc05f20ec2eace8239c53f680294c9a2154b39e7d (patch)
treefba2dd2e0c4f7a36f4b396b759645ced61c3c709 /src/http/ngx_http_core_module.h
parentc0ae4716ece5e48c4e82863959d3ae9ff6693e65 (diff)
downloadnginx-c05f20ec2eace8239c53f680294c9a2154b39e7d.tar.gz
nginx-c05f20ec2eace8239c53f680294c9a2154b39e7d.zip
regex named captures
Diffstat (limited to 'src/http/ngx_http_core_module.h')
-rw-r--r--src/http/ngx_http_core_module.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h
index 2b8d8bb31..c240f252c 100644
--- a/src/http/ngx_http_core_module.h
+++ b/src/http/ngx_http_core_module.h
@@ -126,6 +126,7 @@ typedef struct {
ngx_hash_t variables_hash;
ngx_array_t variables; /* ngx_http_variable_t */
+ ngx_uint_t ncaptures;
ngx_uint_t server_names_hash_max_size;
ngx_uint_t server_names_hash_bucket_size;
@@ -238,7 +239,7 @@ typedef struct {
struct ngx_http_server_name_s {
#if (NGX_PCRE)
- ngx_regex_t *regex;
+ ngx_http_regex_t *regex;
#endif
ngx_http_core_srv_conf_t *server; /* virtual name server conf */
ngx_str_t name;
@@ -267,9 +268,7 @@ struct ngx_http_core_loc_conf_s {
ngx_str_t name; /* location name */
#if (NGX_PCRE)
- ngx_regex_t *regex;
-
- unsigned captures:1;
+ ngx_http_regex_t *regex;
#endif
unsigned noname:1; /* "if () {}" block or limit_except */