develooper Front page | perl.perl5.porters | Postings from November 2003

Re: need your help to do some (simple?) patching (was: Re: [perl #24463] DBI tests fail with perl 5.8. 2 and -Duseithreads -Dusemultiplicity -Duse64bitint)

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
November 17, 2003 00:49
Subject:
Re: need your help to do some (simple?) patching (was: Re: [perl #24463] DBI tests fail with perl 5.8. 2 and -Duseithreads -Dusemultiplicity -Duse64bitint)
Message ID:
20031117084345.2893.3@llama.elixent.com
Casey West <casey@geeknest.com> writes:
>It was Friday, November 14, 2003 when Stas Bekman took the soap box, saying:
>: Can someone with some spare time on they hands help us to introduce the new 
>: APIs which accept pTHX_ instead of declaring dTHX, and deploy them in the 
>: core, that would be a very noble conribution.
>: 
>
>--- perl-current-orig/deb.c     Wed Apr 16 14:25:36 2003
>+++ perl-current/deb.c  Sat Nov 15 15:04:36 2003
>@@ -19,10 +19,9 @@
> 
> #if defined(PERL_IMPLICIT_CONTEXT)
> void
>-Perl_deb_nocontext(const char *pat, ...)
>+Perl_deb_nocontext(pTHX_ const char *pat, ...)
> {
> #ifdef DEBUGGING
>-    dTHX;
>     va_list args;
>     va_start(args, pat);
>     vdeb(pat, &args);

I _think_ that Perl_xxx_nocontext are explicit extra API points
for Perl_xxx() where a pTHX is not available.
e.g. there is already Perl_deb(pTHX_,...) 

In such cases Stas's request becomes one to _use_ Perl_deb() rather than 
Perl_deb_nocontext() in the core.




Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About