comparison src/http/ngx_http_config.h @ 395:f8f0f1834266

nginx-0.0.7-2004-07-16-21:11:43 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 16 Jul 2004 17:11:43 +0000
parents 5659d773cfa8
children 6f3b20c1ac50
comparison
equal deleted inserted replaced
394:e7a68e14ccd3 395:f8f0f1834266
43 #define ngx_http_get_module_srv_conf(r, module) r->srv_conf[module.ctx_index] 43 #define ngx_http_get_module_srv_conf(r, module) r->srv_conf[module.ctx_index]
44 #define ngx_http_get_module_loc_conf(r, module) r->loc_conf[module.ctx_index] 44 #define ngx_http_get_module_loc_conf(r, module) r->loc_conf[module.ctx_index]
45 45
46 #define ngx_http_conf_get_module_main_conf(cf, module) \ 46 #define ngx_http_conf_get_module_main_conf(cf, module) \
47 ((ngx_http_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index] 47 ((ngx_http_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index]
48 #define ngx_http_conf_get_module_srv_conf(cf, module) \ 48 /*
49 ngx_http_conf_get_module_srv_conf_could_not_be_implemented() 49 * ngx_http_conf_get_module_srv_conf() and ngx_http_conf_get_module_loc_conf()
50 * could not be correctly implemented because at the merge phase cf->ctx
51 * points to http{}'s ctx
52 */
50 53
51 #define ngx_http_cycle_get_module_main_conf(cycle, module) \ 54 #define ngx_http_cycle_get_module_main_conf(cycle, module) \
52 ((ngx_http_conf_ctx_t *) \ 55 ((ngx_http_conf_ctx_t *) \
53 cycle->conf_ctx[ngx_http_module.index])->main_conf[module.ctx_index] 56 cycle->conf_ctx[ngx_http_module.index])->main_conf[module.ctx_index]
54 57