comparison src/http/ngx_http.h @ 178:a8ff48d26cca

nginx-0.0.1-2003-11-11-00:09:22 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 10 Nov 2003 21:09:22 +0000
parents c0552e5ab567
children 02a715e85df1
comparison
equal deleted inserted replaced
177:4db54fdbcbe7 178:a8ff48d26cca
19 char *url; 19 char *url;
20 } ngx_http_log_ctx_t; 20 } ngx_http_log_ctx_t;
21 21
22 22
23 #define ngx_http_get_module_ctx(r, module) r->ctx[module.ctx_index] 23 #define ngx_http_get_module_ctx(r, module) r->ctx[module.ctx_index]
24 #define ngx_http_get_module_err_ctx(r, module) \
25 (r->err_ctx ? r->err_ctx[module.ctx_index] : r->ctx[module.ctx_index])
24 26
25 #define ngx_http_create_ctx(r, cx, module, size, error) \ 27 #define ngx_http_create_ctx(r, cx, module, size, error) \
26 do { \ 28 do { \
27 ngx_test_null(cx, ngx_pcalloc(r->pool, size), error); \ 29 ngx_test_null(cx, ngx_pcalloc(r->pool, size), error); \
28 r->ctx[module.ctx_index] = cx; \ 30 r->ctx[module.ctx_index] = cx; \