Perl_newTOKEN(pTHX_ I32 optype, YYSTYPE lval, MADPROP* madprop)
{
TOKEN *tk;
- Newz(1101, tk, 1, TOKEN);
+ Newxz(tk, 1, TOKEN);
tk->tk_type = (OPCODE)optype;
tk->tk_type = 12345;
tk->tk_lval = lval;
}
}
else {
- PerlIO_printf(PerlIO_stderr(), "DESTROYING op = %0x\n", from);
+ PerlIO_printf(PerlIO_stderr(),
+ "DESTROYING op = %0"UVxf"\n", PTR2UV(from));
op_free(from);
}
}
Perl_newMADPROP(pTHX_ char key, char type, void* val, I32 vlen)
{
MADPROP *mp;
- Newz(1101, mp, 1, MADPROP);
+ Newxz(mp, 1, MADPROP);
mp->mad_next = 0;
mp->mad_key = key;
mp->mad_vlen = vlen;
#endif
Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
{
-#ifdef PERL_MAD
- /* FIXME for MAD - shouldn't this be done at the return statement? And
- given that the return statement is never reached, surely this currently
- is a leak? */
+#if 0
+ /* This would be the return value, but the return cannot be reached. */
OP* pegop = newOP(OP_NULL, 0);
#endif
SAVEFREEOP(block);
Perl_croak(aTHX_ "\"my sub\" not yet implemented");
#ifdef PERL_MAD
- return pegop;
+ NORETURN_FUNCTION_END;
#endif
}
/* Need to do a C<use attributes $stash_of_cv,\&cv,@attrs>
* before we clobber PL_compcv.
*/
- if (cv && !(block
+ if (cv && (!block
#ifdef PERL_MAD
|| block->op_type == OP_NULL
#endif
int yylen;
#ifdef PERL_MAD
- if (PL_madskills)
- return madparse();
+ /*if (PL_madskills)
+ return madparse();*/
#endif
YYDPRINTF ((Perl_debug_log, "Starting parse\n"));
if (yychar == YYEMPTY) {
YYDPRINTF ((Perl_debug_log, "Reading a token: "));
#ifdef PERL_MAD
- yychar = PL_madskills ? madlex() : yylex();
+ yychar = /*PL_madskills ? madlex() :*/ yylex();
#else
yychar = yylex();
#endif