Mercurial > hg > nginx-mail
annotate src/core/ngx_regex.h @ 609:be4f34123024 NGINX_0_8_35
nginx 0.8.35
*) Change: now the charset filter runs before the SSI filter.
*) Feature: the "chunked_transfer_encoding" directive.
*) Bugfix: an "&" character was not escaped when it was copied in
arguments part in a rewrite rule.
*) Bugfix: nginx might be terminated abnormally while a signal
processing or if the directive "timer_resolution" was used on
platforms which do not support kqueue or eventport notification
methods.
Thanks to George Xie and Maxim Dounin.
*) Bugfix: if temporary files and permanent storage area resided at
different file systems, then permanent file modification times were
incorrect.
Thanks to Maxim Dounin.
*) Bugfix: ngx_http_memcached_module might issue the error message
"memcached sent invalid trailer".
Thanks to Maxim Dounin.
*) Bugfix: nginx could not built zlib-1.2.4 library using the library
sources.
Thanks to Maxim Dounin.
*) Bugfix: a segmentation fault occurred in a worker process, if there
was large stderr output before FastCGI response; the bug had
appeared in 0.8.34.
Thanks to Maxim Dounin.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 29 Mar 2010 00:00:00 +0400 |
parents | e19e5f542878 |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_REGEX_H_INCLUDED_ | |
8 #define _NGX_REGEX_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 #include <pcre.h> | |
15 | |
16 | |
589 | 17 #define NGX_REGEX_NO_MATCHED PCRE_ERROR_NOMATCH /* -1 */ |
30 | 18 |
19 #define NGX_REGEX_CASELESS PCRE_CASELESS | |
0 | 20 |
21 typedef pcre ngx_regex_t; | |
22 | |
589 | 23 |
358 | 24 typedef struct { |
589 | 25 ngx_str_t pattern; |
26 ngx_pool_t *pool; | |
27 ngx_int_t options; | |
28 | |
29 ngx_regex_t *regex; | |
30 int captures; | |
31 int named_captures; | |
32 int name_size; | |
33 u_char *names; | |
34 ngx_str_t err; | |
35 } ngx_regex_compile_t; | |
36 | |
37 | |
38 typedef struct { | |
39 ngx_regex_t *regex; | |
40 u_char *name; | |
358 | 41 } ngx_regex_elt_t; |
42 | |
43 | |
48 | 44 void ngx_regex_init(void); |
589 | 45 ngx_int_t ngx_regex_compile(ngx_regex_compile_t *rc); |
46 | |
47 #define ngx_regex_exec(re, s, captures, size) \ | |
48 pcre_exec(re, NULL, (const char *) (s)->data, (s)->len, 0, 0, \ | |
49 captures, size) | |
50 #define ngx_regex_exec_n "pcre_exec()" | |
51 | |
358 | 52 ngx_int_t ngx_regex_exec_array(ngx_array_t *a, ngx_str_t *s, ngx_log_t *log); |
53 | |
0 | 54 |
55 #endif /* _NGX_REGEX_H_INCLUDED_ */ |