Skip to content

Commit

Permalink
Tweak PERL_BCDVERSION for ps->compcv
Browse files Browse the repository at this point in the history
  • Loading branch information
timbunce committed Oct 11, 2012
1 parent ac73bb5 commit f4739c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SizeMe.xs
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,7 @@ parser_size(pTHX_ struct state *const st, pPATH, yy_parser *parser)
/*warn("foo: %u", parser->ps - parser->stack); */
ADD_SIZE(st, "stack_frames", parser->stack_size * sizeof(yy_stack_frame));
for (ps = parser->stack; ps <= parser->ps; ps++) {
#if (PERL_BCDVERSION >= 0x5011001) /* roughly */
#if (PERL_BCDVERSION >= 0x5011002) /* roughly */
if (sv_size(aTHX_ st, NPathLink("compcv"), (SV*)ps->compcv, TOTAL_SIZE_RECURSION))
ADD_LINK_ATTR(st, NPattr_NOTE, "i", ps - parser->ps);
#else /* prior to perl 8c63ea58 Dec 8 2009 */
Expand Down

0 comments on commit f4739c3

Please sign in to comment.