You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-commits@perl.apache.org by jo...@apache.org on 2006/02/07 14:04:09 UTC
svn commit: r375591 - /perl/Apache-Test/trunk/lib/Apache/TestConfigC.pm
Author: jorton
Date: Tue Feb 7 05:04:06 2006
New Revision: 375591
URL: http://svn.apache.org/viewcvs?rev=375591&view=rev
Log:
- allow a user-defined function to be called from register_hooks
Modified:
perl/Apache-Test/trunk/lib/Apache/TestConfigC.pm
Modified: perl/Apache-Test/trunk/lib/Apache/TestConfigC.pm
URL: http://svn.apache.org/viewcvs/perl/Apache-Test/trunk/lib/Apache/TestConfigC.pm?rev=375591&r1=375590&r2=375591&view=diff
==============================================================================
--- perl/Apache-Test/trunk/lib/Apache/TestConfigC.pm (original)
+++ perl/Apache-Test/trunk/lib/Apache/TestConfigC.pm Tue Feb 7 05:04:06 2006
@@ -347,6 +347,11 @@
cmodule_define($_);
} @cmodule_config_names;
+my $cmodule_config_extra =
+ "#ifndef APACHE_HTTPD_TEST_EXTRA_HOOKS\n".
+ "#define APACHE_HTTPD_TEST_EXTRA_HOOKS(p) do { } while (0)\n".
+ "#endif\n";
+
my $cmodule_config_hooks = join ",\n ", map {
cmodule_define_name($_);
} @cmodule_config_names;
@@ -397,6 +402,7 @@
static void name ## _register_hooks(apr_pool_t *p)
{
@cmodule_hooks
+ APACHE_HTTPD_TEST_EXTRA_HOOKS(p);
}
module AP_MODULE_DECLARE_DATA name ## _module = {
@@ -435,6 +441,8 @@
}
print $fh @cmodule_hook_defines, @cmodule_config_defines;
+
+ print $fh $cmodule_config_extra;
print $fh $self->cmodules_module_template;