Mercurial > hg > nginx
comparison src/core/ngx_regex.c @ 208:0b67be7d4489
nginx-0.0.1-2003-12-08-23:48:12 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 08 Dec 2003 20:48:12 +0000 |
parents | 8dee38ea9117 |
children | f1d0e5f09c1e |
comparison
equal
deleted
inserted
replaced
207:6e0fef527732 | 208:0b67be7d4489 |
---|---|
28 ngx_pcre_pool = pool; | 28 ngx_pcre_pool = pool; |
29 | 29 |
30 re = pcre_compile(pattern->data, (int) options, &errstr, &erroff, NULL); | 30 re = pcre_compile(pattern->data, (int) options, &errstr, &erroff, NULL); |
31 | 31 |
32 if (re == NULL) { | 32 if (re == NULL) { |
33 if ((size_t) erroff == pattern->len) { | 33 if ((size_t) erroff == pattern->len) { |
34 ngx_snprintf(err->data, err->len - 1, | 34 ngx_snprintf(err->data, err->len - 1, |
35 "pcre_compile() failed: %s in \"%s\"", | 35 "pcre_compile() failed: %s in \"%s\"", |
36 errstr, pattern->data); | 36 errstr, pattern->data); |
37 } else { | 37 } else { |
38 ngx_snprintf(err->data, err->len - 1, | 38 ngx_snprintf(err->data, err->len - 1, |