X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=deb.c;h=b6456e648511fd072330ba0c16c82bd217d297d5;hb=52a043e6cc1df667f590107cf208184857a066bd;hp=ad26cd6e18f87b8fb94881670d8fc494a463ff75;hpb=4eb8286e4c6ac94fdae21a64c54a936bc836983e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/deb.c b/deb.c index ad26cd6..b6456e6 100644 --- a/deb.c +++ b/deb.c @@ -13,14 +13,39 @@ */ #include "EXTERN.h" +#define PERL_IN_DEB_C #include "perl.h" +#if defined(PERL_IMPLICIT_CONTEXT) void -deb(const char *pat, ...) +Perl_deb_nocontext(const char *pat, ...) +{ +#ifdef DEBUGGING + dTHX; + va_list args; + va_start(args, pat); + vdeb(pat, &args); + va_end(args); +#endif /* DEBUGGING */ +} +#endif + +void +Perl_deb(pTHX_ const char *pat, ...) { #ifdef DEBUGGING - dTHR; va_list args; + va_start(args, pat); + vdeb(pat, &args); + va_end(args); +#endif /* DEBUGGING */ +} + +void +Perl_vdeb(pTHX_ const char *pat, va_list *args) +{ +#ifdef DEBUGGING + dTHR; register I32 i; GV* gv = PL_curcop->cop_filegv; @@ -36,15 +61,12 @@ deb(const char *pat, ...) #endif /* USE_THREADS */ for (i=0; i