From: Florian Ragwitz Date: Fri, 24 Oct 2008 07:17:20 +0000 (+0000) Subject: Don't mix declarations and code when declaring the stack pointer. X-Git-Tag: 0.005000~51 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=19b7ec0f0850bc54417324d3a200b3e876c5e332;p=p5sagit%2FDevel-Declare.git Don't mix declarations and code when declaring the stack pointer. --- diff --git a/Declare.xs b/Declare.xs index af640e9..ea72a80 100644 --- a/Declare.xs +++ b/Declare.xs @@ -194,6 +194,7 @@ int dd_toke_skipspace(pTHX_ int offset) { /* replacement PL_check rv2cv entry */ STATIC OP *dd_ck_rv2cv(pTHX_ OP *o, void *user_data) { + dSP; OP* kid; int dd_flags; @@ -206,13 +207,11 @@ STATIC OP *dd_ck_rv2cv(pTHX_ OP *o, void *user_data) { printf("linestr len: %i\n", PL_bufend - SvPVX(PL_linestr)); } - dSP; - ENTER; SAVETMPS; - + PUSHMARK(SP); - + call_pv("Devel::Declare::done_declare", G_VOID|G_DISCARD); FREETMPS;