Mercurial > hg > nginx
diff src/core/ngx_regex.c @ 503:b1648294f693 release-0.1.26
nginx-0.1.26-RELEASE import
*) Change: the invalid client header lines are now ignored and logged
at the info level.
*) Change: the server name is also logged in error log.
*) Feature: the ngx_http_auth_basic_module module and the auth_basic
and auth_basic_user_file directives.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 22 Mar 2005 16:02:46 +0000 |
parents | d4ea69372b94 |
children | 7d313324d874 |
line wrap: on
line diff
--- a/src/core/ngx_regex.c Sat Mar 19 12:38:37 2005 +0000 +++ b/src/core/ngx_regex.c Tue Mar 22 16:02:46 2005 +0000 @@ -8,22 +8,24 @@ #include <ngx_core.h> -static void *ngx_regex_malloc(size_t size); -static void ngx_regex_free(void *p); +static void * ngx_libc_cdecl ngx_regex_malloc(size_t size); +static void ngx_libc_cdecl ngx_regex_free(void *p); static ngx_pool_t *ngx_pcre_pool; -void ngx_regex_init(void) +void +ngx_regex_init(void) { pcre_malloc = ngx_regex_malloc; pcre_free = ngx_regex_free; } -ngx_regex_t *ngx_regex_compile(ngx_str_t *pattern, ngx_int_t options, - ngx_pool_t *pool, ngx_str_t *err) +ngx_regex_t * +ngx_regex_compile(ngx_str_t *pattern, ngx_int_t options, ngx_pool_t *pool, + ngx_str_t *err) { int erroff; const char *errstr; @@ -79,7 +81,8 @@ } -ngx_int_t ngx_regex_capture_count(ngx_regex_t *re) +ngx_int_t +ngx_regex_capture_count(ngx_regex_t *re) { int rc, n; @@ -95,8 +98,8 @@ } -ngx_int_t ngx_regex_exec(ngx_regex_t *re, ngx_str_t *s, - int *captures, ngx_int_t size) +ngx_int_t +ngx_regex_exec(ngx_regex_t *re, ngx_str_t *s, int *captures, ngx_int_t size) { int rc; @@ -111,7 +114,8 @@ } -static void *ngx_regex_malloc(size_t size) +static void * ngx_libc_cdecl +ngx_regex_malloc(size_t size) { ngx_pool_t *pool; #if (NGX_THREADS) @@ -135,7 +139,8 @@ } -static void ngx_regex_free(void *p) +static void ngx_libc_cdecl +ngx_regex_free(void *p) { return; }