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

Re: [PATCH] mark cannot be const because MEXTEND() modifies it, andtkGlue.c uses MEXTEND()

Thread Previous
From:
Rafael Garcia-Suarez
Date:
September 27, 2005 02:03
Subject:
Re: [PATCH] mark cannot be const because MEXTEND() modifies it, andtkGlue.c uses MEXTEND()
Message ID:
20050927110306.53dcf0ee@grubert.mandrakesoft.com
Jan Dubois wrote:
> 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.

Thanks, applied as change #25613 to bleadperl.

> --- 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++
>  

Thread Previous


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