On Monday 08 March 2004 11:15 am, Jeff Urlwin wrote: > > On Monday 08 March 2004 12:41 am, Tim Bunce wrote: > > > On Sun, Mar 07, 2004 at 08:25:17PM -1000, [EMAIL PROTECTED] wrote: > > > > The followint patch implements PERL_NO_GET_CONTEXT for DBI (cvs > > > > version #200). > > > > > > Beau, am I right in thinking that if the DBI was built with > > > PERL_NO_GET_CONTEXT then drivers would have to be built with > > > PERL_NO_GET_CONTEXT *only if* the perl was threaded? > > > > Yep. > > I may be getting a bit ahead of myself, but: if DBI is built with > PERL_NO_GET_CONTEXT, does that mean that drivers will automatically build > with that option??? (Please! -- or am I missing something...I guess I'll > have to look at the diffs.) >
Jeff - Yes. The DBI defines PERL_NO_GET_CONTEXT in DBIXS.h and the drivers include this file. When DBI v2 (and my experimental DBI with PNGX) plan to use PERL_NO_GET_CONTEXT. That means that the interface between DBI and the DBDs will differ - for ithread - and that the DBDs must be recoded to handle PERL_NO_GET_CONTEXT. This means all .xs (and other c files like dbdimp.c) must declare routines with pTHX_ as the first parameter, and must be called with aTHX as the first parameter (in a nutshell). Aloha => Beau;
