Welcome! Log In Create A New Profile

Advanced

ngx_conf_handler

nn hust
December 31, 2010 03:48AM
I am confused by the multi dimensions pointer of the module configure
structure

if (cmd->type & NGX_DIRECT_CONF) {
conf = ((void **) cf->ctx)[ngx_modules[i]->index];

} else if (cmd->type & NGX_MAIN_CONF) {
conf = &(((void **) cf->ctx)[ngx_modules[i]->index]);

} else if (cf->ctx) {
confp = *(void **) ((char *) cf->ctx + cmd->conf);

if (confp) {
conf = confp[ngx_modules[i]->ctx_index];
}
}

rv = cmd->set(cf, cmd, conf);
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

ngx_conf_handler

nn hust 1703 December 31, 2010 03:48AM

Re: ngx_conf_handler Attachments

eagle sbc 539 December 31, 2010 06:46AM

Re: ngx_conf_handler

nn hust 712 January 01, 2011 11:34PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready