CopFILESV points to *{"_<filename"}, which can be modified
from perl space. CopFILE points to the third character of
*{"_<filename"}{NAME}.
Ithreads were already using CopFILE. Make non-threaded builds do the
same. This makes things a little more robust.
CvFILE is not actually used anywhere as far as I can tell, so I cannot
easily test this.
{
dVAR;
CV* cv;
-#ifdef USE_ITHREADS
const char *const file = CopFILE(PL_curcop);
-#else
- SV *const temp_sv = CopFILESV(PL_curcop);
- const char *const file = temp_sv ? SvPV_nolen_const(temp_sv) : NULL;
-#endif
ENTER;