- Depend on B::Hooks::OP::Check version 0.19, which fixes a serious bug in
how it interacts with other modules that hook ops.
+ - Detect and croak if unwanted reallocation occurs during toke_scan_str.
- Add MYMETA.{json,yml} to MANIFEST.SKIP and .gitignore.
0.006006 - 23 Aug 2011
}
int dd_toke_scan_str(pTHX_ int offset) {
+ char* old_pvx = SvPVX(PL_linestr);
STRLEN remaining = sv_len(PL_linestr) - offset;
SV* line_copy = newSVsv(PL_linestr);
char* base_s = SvPVX(PL_linestr) + offset;
char* s = scan_str(base_s, FALSE, FALSE);
+ if(SvPVX(PL_linestr) != old_pvx)
+ croak("PL_linestr reallocated during scan_str, "
+ "Devel::Declare can't continue");
if (s != base_s && sv_len(PL_lex_stuff) > remaining) {
int ret = (s - SvPVX(PL_linestr)) + remaining;
sv_catsv(line_copy, PL_linestr);