You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Torsten Förtsch <to...@gmx.net> on 2011/04/17 20:20:28 UTC
modperl_module_insert
Hi,
modperl_module_insert() reads:
static void modperl_module_insert(module *modp)
{
module *m;
/*
* insert after mod_perl, rather the top of the list.
* (see ap_add_module; does not insert into ap_top_module list if
* m->next != NULL)
* this way, modperl config merging happens before this module.
*/
for (m = ap_top_module; m; m=m->next) {
if (m == &perl_module) {
module *next = m->next;
m->next = modp;
modp->next = next;
break;
}
}
}
Isn't that just the same as
modp->next = perl_module.next;
perl_module.next = modp;
without the need to search for perl_module?
Torsten Förtsch
--
Need professional modperl support? Hire me! (http://foertsch.name)
Like fantasy? http://kabatinte.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org