Re: Ponie development snapshot 4

[email protected] (Nicholas Clark) Tue, 12 Jul 2005 13:33:21 +0100
Newsgroups perl.ponie.dev
Message-ID <[email protected]>
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