develooper Front page | perl.perl5.porters | Postings from September 2005

[PATCH] mark cannot be const because MEXTEND() modifies it, and tkGlue.c uses MEXTEND()

Thread Next
From:
Jan Dubois
Date:
September 26, 2005 21:20
Subject:
[PATCH] mark cannot be const because MEXTEND() modifies it, and tkGlue.c uses MEXTEND()
Message ID:
200509270419.j8R4JtVw026876@smtp3.ActiveState.com
At least for the maint-5.8 branch the consting of MARK in dAXMARK should
be reverted to prevent breaking Tk.  tkGlue.c from Tk 804.027 uses
MEXTEND() to assign to it.

Cheers,
-Jan

--- XSUB.h.~1~	Mon Sep 26 20:55:02 2005
+++ XSUB.h	Mon Sep 26 20:55:02 2005
@@ -102,7 +102,7 @@
 
 #define dAXMARK				\
 	I32 ax = POPMARK;	\
-	register SV ** const mark = PL_stack_base + ax++
+	register SV **mark = PL_stack_base + ax++
 
 #define dITEMS I32 items = SP - MARK
 
End of Patch.




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