develooper Front page | perl.ponie.dev | Postings from July 2005

Re: Ponie development snapshot 4

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
July 12, 2005 05:33
Subject:
Re: Ponie development snapshot 4
Message ID:
20050712123321.GR15833@plum.flirble.org
On Mon, Jul 11, 2005 at 07:27:27PM +0100, Nicholas Clark wrote:
> On Mon, Jul 11, 2005 at 11:57:22AM +0100, Nicholas Clark wrote:
> 
> > gcc agreed when it was forced to try to compile that bit.
> > Could you try the following, which gcc is happy with:
> 
> I think you'll then hit a problem in regexec.c, something like this:

> #define SvCUR_set(sv, val) \
> 	STMT_START { assert(SvTYPE(sv) >= SVt_PV); \
> 		(*(STRLEN *)Parrot_PMC_get_pointer_intkey(PL_Parrot,MUMBLE(sv), Ponie_P_CUR) = (val)); } STMT_END

Should be solved with change 330

The solution is to realise that *calling into a function* means that it's
possible to do the assert() (and a heck of a lot more) in there.

Nicholas Clark

Thread Previous | 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