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

[PATCH] make Copy On Write work once again

Thread Next
Nicholas Clark
January 24, 2003 16:29
[PATCH] make Copy On Write work once again
Message ID:
There's been a patch recently which reduces the number of functions with
externally visible macros to add Perl_
I missed it at the time, but it happens to remove the externally visible
definition of sv_release_IVX, which breaks ExtUtils/t/Constant.t for
copy on write.

This patch fixes it. Seems to work fine on threaded and unthreaded builds.

Nicholas Clark

--- sv.h.orig	Wed Jan 22 13:43:40 2003
+++ sv.h	Fri Jan 24 23:35:47 2003
@@ -1055,7 +1055,7 @@ otherwise.
 #  define SvRELEASE_IVX(sv)   ((void)((SvFLAGS(sv) & (SVf_OOK|SVf_READONLY|SVf_FAKE)) \
-				&& sv_release_IVX(sv)))
+				&& Perl_sv_release_IVX(aTHX_ sv)))
 #  define SvIsCOW_normal(sv)	(SvIsCOW(sv) && SvLEN(sv))
 #  define SvRELEASE_IVX(sv)   ((void)SvOOK_off(sv))

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About