On Wed, Sep 12, 2001 at 09:44:33AM -0700, Doug MacEachern wrote:
> On Tue, 11 Sep 2001, Philippe M . Chiasson wrote:
>
> > -apr_table_vdo
> > + PREFIX=apr_table_
>
> you shouldn't need to add that PREFIX, it is already taken care of.
Yup, realized that recently looking at the parsing code...
> > + ~apr_table_do
> >
> > And that should be it, right ?
> >
> > My problem is that the only way I could figure out to get the code generated in
>WrapXS/APR/Table/Table.xs
> > to include the right wrapping for my new ->do method looked more like this:
>
> > -apr_table_vdo
> > + mpxs_APR__Table_do
>
> see the comments in apache_functions.map:
> #format of entries:
> # C function name | dispatch function name | argspec | Perl alias
>
> so you should be able to do this:
> apr_table_do | mpxs_
>
> then mpxs_apr_table_do will be the called function.
>
> see apr_uuid_* for examples.
>
> the only time you should need to do something like:
>
> mpxs_Apache__Foo_bar
>
> is when there is not a matching apache/apr function.
Thanks, every one of your mails helps me a lot by clarifying "the right way"
of using the code parsing/generation stuff. Pretty neat stuff.
>
--
Philippe M. Chiasson <[EMAIL PROTECTED]>
Extropia's Resident System Guru
http://www.eXtropia.com/
Had to create %s unexpectedly : A routine asked for a
symbol from a symbol table that ought to have existed
already, but for some reason it didn't, and had to be
created on an emergency basis to prevent a core dump.
-- perldiag(1)
perl -e '$$=\${gozer};{$_=unpack(P26,pack(L,$$));/^Just Another Perl
Hacker!\n$/&&print||$$++&&redo}'
PGP signature