On Wed, 5 Sep 2001, Doug MacEachern wrote:

> On Thu, 6 Sep 2001, Stas Bekman wrote:
>
> > Can we at least add the configuration bits support and leave the actual
> > env setting for the later on? I want to do that, because my patch
> > introduces new TAKE wrappers which are re-used for other new directives.
> > So we can parse these vars, populate the tables, do the merge, but keep
> > the env setting empty for now.
>
> just add the new TAKE wrappers then.  would rather see that as its own
> separate patch anyhow.

the take wrappers and a new declare wrapper for 'directive key val'

Index: src/modules/perl/modperl_cmd.h
===================================================================
RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_cmd.h,v
retrieving revision 1.5
diff -u -r1.5 modperl_cmd.h
--- src/modules/perl/modperl_cmd.h      2001/08/08 07:02:41     1.5
+++ src/modules/perl/modperl_cmd.h      2001/09/06 05:45:30
@@ -8,6 +8,9 @@
 #define MP_CMD_SRV_DECLARE(item) \
 const char *modperl_cmd_##item(cmd_parms *parms, \
                                void *dummy, const char *arg)
+#define MP_CMD_SRV_DECLARE2(item) \
+const char *modperl_cmd_##item(cmd_parms *parms, \
+                               void *dummy, const char *arg1, const char *arg2)
 MP_CMD_SRV_DECLARE(trace);
 MP_CMD_SRV_DECLARE(switches);
 MP_CMD_SRV_DECLARE(modules);
@@ -43,12 +46,20 @@
     AP_INIT_TAKE1( name, modperl_cmd_##item, NULL, \
       RSRC_CONF, desc )

+#define MP_CMD_SRV_TAKE2(name, item, desc) \
+    AP_INIT_TAKE2( name, modperl_cmd_##item, NULL, \
+      RSRC_CONF, desc )
+
 #define MP_CMD_SRV_ITERATE(name, item, desc) \
    AP_INIT_ITERATE( name, modperl_cmd_##item, NULL, \
       RSRC_CONF, desc )

 #define MP_CMD_DIR_TAKE1(name, item, desc) \
     AP_INIT_TAKE1( name, modperl_cmd_##item, NULL, \
+      OR_ALL, desc )
+
+#define MP_CMD_DIR_TAKE2(name, item, desc) \
+    AP_INIT_TAKE2( name, modperl_cmd_##item, NULL, \
       OR_ALL, desc )

 #define MP_CMD_DIR_ITERATE(name, item, desc) \

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to