X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=indirect.xs;h=4f7ac3a9721c19e5abd772d107920c3eb52fa419;hp=1bd3ffa662c923708e18167f4f2de0d1069a8257;hb=47795ecd50880244edb1da0a9253bf228d9e9293;hpb=d34f50c40cce04c745a116755c566e4c4e3a516d diff --git a/indirect.xs b/indirect.xs index 1bd3ffa..4f7ac3a 100644 --- a/indirect.xs +++ b/indirect.xs @@ -182,10 +182,10 @@ typedef SV indirect_hint_t; * thread cleanup. */ typedef struct { + char *buf; STRLEN pos; STRLEN size; STRLEN len; - char *buf; line_t line; } indirect_op_info_t; @@ -394,6 +394,11 @@ STATIC SV *indirect_hint(pTHX) { if (IN_PERL_RUNTIME) return NULL; +#if I_HAS_PERL(5, 10, 0) || defined(PL_parser) + if (!PL_parser) + return NULL; +#endif + #ifdef cop_hints_fetch_pvn hint = cop_hints_fetch_pvn(PL_curcop, __PACKAGE__, __PACKAGE_LEN__, indirect_hash, 0);