diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-26 17:26:17 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-05-26 17:26:17 +0000 |
commit | 35ff78560a01016ce2a3dffe29f18ce851bc0b90 (patch) | |
tree | 5b818a7ace6d9cdecf985b25efc5b20376ed15a5 /sv.c | |
parent | 873ef191be9d12eed8116e23926efe319c6ed859 (diff) | |
download | perl-35ff78560a01016ce2a3dffe29f18ce851bc0b90.tar.gz |
[asperl] more changes to satisfy non-debug VC build (C-API doesn't
build, and the testsuite still won't run)
p4raw-id: //depot/asperl@1035
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 19 |
1 files changed, 6 insertions, 13 deletions
@@ -919,10 +919,10 @@ sv_upgrade(register SV *sv, U32 mt) return TRUE; } -#ifdef DEBUGGING char * sv_peek(SV *sv) { +#ifdef DEBUGGING SV *t = sv_newmortal(); STRLEN prevlen; int unref = 0; @@ -1064,8 +1064,10 @@ sv_peek(SV *sv) sv_catpv(t, ")"); } return SvPV(t, na); +#else /* DEBUGGING */ + return ""; +#endif /* DEBUGGING */ } -#endif int sv_backoff(register SV *sv) @@ -4820,10 +4822,10 @@ sv_vcatpvfn(SV *sv, const char *pat, STRLEN patlen, va_list *args, SV **svargs, } } -#ifdef DEBUGGING void sv_dump(SV *sv) { +#ifdef DEBUGGING SV *d = sv_newmortal(); char *s; U32 flags; @@ -5087,14 +5089,5 @@ sv_dump(SV *sv) PerlIO_printf(Perl_debug_log, " FLAGS = 0x%lx\n", (long)IoFLAGS(sv)); break; } +#endif /* DEBUGGING */ } -#else -void -sv_dump(SV *sv) -{ -} -#endif - - - - |