diff --git a/Parser.xs b/Parser.xs index c9776b7..84a4ec9 100644 --- a/Parser.xs +++ b/Parser.xs @@ -5,7 +5,7 @@ #include "perl.h" #include "XSUB.h" -#define NEED_PL_parser +#define NEED_PL_parser_GLOBAL #include "ppport.h" #include "hook_parser.h" diff --git a/stolen_chunk_of_toke.c b/stolen_chunk_of_toke.c index 9daafa8..f3b3ede 100644 --- a/stolen_chunk_of_toke.c +++ b/stolen_chunk_of_toke.c @@ -19,7 +19,7 @@ #include "EXTERN.h" #include "perl.h" -#define NEED_PL_parser +#define NEED_sv_2pv_flags #include "ppport.h" /* the following #defines are stolen from assorted headers, not toke.c (mst) */ @@ -128,7 +128,7 @@ static const char c_in_subst[] = /* Invoke the idxth filter function for the current rsfp. */ /* maxlen 0 = read one text line */ I32 -Perl_filter_read(pTHX_ int idx, SV *buf_sv, int maxlen) +filter_read(pTHX_ int idx, SV *buf_sv, int maxlen) { filter_t funcp; SV *datasv = NULL;