On Sun, 27 May 2001, Gerald Richter wrote:
 
> I tried this already. Addtionaly to add the dav_ prefix, I had to add the
> mod_dav.h to the include files (because it's not in the include directory).
> 
> I parses the function correctly, but not the callbacks. As far as I seen,
> you don't create the callbacks automaticly, is this right ?

right.
 
> The implementation of a mod_dav Perl backend will be about 50% callbacks
> into Perl, so I like to generate them also automaticly.

oh wow, didn't know there's so many callbacks.
 
> > more work would be involved to get the current tools in shape to
> > generate the client front end to neon.
> >
> 
> My quick and dirty script does this at the moment for neon. It generates all
> function call and callbacks (there is no handwritten code in HTTP::Webdav
> :-). Now I like to bring these both together (at least parts of it, other
> parts will stay divided, because my time is limited) and I like to create
> also the mod_dav 1.x backend with these scripts.
> 
> I just will play a little bit around (together with Philippe) and we will
> get back to you as soon as we have any results. I think we start to make a
> base class for ModPerl/Apache::PasrseSource, which also is able to parser
> typedefs, and give mode detailed information about callbacks (i.e. splitting
> out the args of the callback function).

ok, sounds good.
 
> Gerald
> 
> P.S. To get uitl/source_scan.pl working I had to add a
> 
> use ModPerl::WarpXS ;

right, i've been meaning to fix that.
 
> and the ModPerl::ParseSource->write_functions_pm dies. See the output from
> the Perl debugger below. I currently use Perl 5.6.1.
> 
> main::(util/source_scan.pl:22): $p = ModPerl::ParseSource->new(@ARGV);
>   DB<1> n
> main::(util/source_scan.pl:24): $p->parse;
>   DB<1> n
> main::(util/source_scan.pl:26): $p->write_functions_pm;
>   DB<1> n
> In file included from .apache_includes:4,
>                  from :1:
> xs/modperl_xs_sv_convert.h:288: warning:
> p_xs_sv2_r' redefined
> xs/modperl_xs_util.h:6: warning: this is the location of the previous
> definition
> In file included from .apache_includes:4,
>                  from :1:
> xs/modperl_xs_sv_convert.h:288: warning:
> p_xs_sv2_r' redefined
> xs/modperl_xs_util.h:6: warning: this is the location of the previous
> definition
> panic: multiple types without intervening comma in
>          regexp*( *regcomp_t  ) (register PerlInterpreter *my_perl ,  char*
> exp, char* xend, PMOP* pm)
> whited-out as
>          regexp*( *regcomp_t  )
> (                                                                    )

this looks like one of the problems the hacked version of C::Scan (at 
perl.apache.org/~dougm/) fixes.



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

Reply via email to