On Fri, 30 Mar 2001, Ken Williams wrote:
> The thing I can't figure out from the XS code is how/where
> Apache->request calls sv2request_rec(), which actually does the
> extraction work. Somehow it's automatically converted, because I see no
> manual conversion in the Apache->request code below:
>
> void
> request(self, r=NULL)
> SV *self
> Apache r
>
> PPCODE:
> self = self;
> if(items > 1) perl_request_rec(r);
> XPUSHs(perl_bless_request_rec(perl_request_rec(NULL)));
>
> Any pointers?
It's done in the typemap.
> The reason I'm asking is that the current behavior of
> Apache->request($r) makes it really hard to subclass Apache::Registry
> and the like, because lots of code (like CGI.pm) call Apache->request to
> get the current request object.
Yeah I have this same "bug" in AxKit. It's a real pain.
--
<Matt/>
/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
|