Don't define PERL_NO_GET_CONTEXT.
[p5sagit/Devel-Declare.git] / stolen_chunk_of_toke.c
index 54f67e9..ab1a384 100644 (file)
@@ -83,11 +83,7 @@ STATIC char*    S_scan_word(pTHX_ char *s, char *dest, STRLEN destlen, int allow
 #define PERL_5_8_8_PLUS
 #endif
 
-#if PERL_REVISION == 5 && PERL_VERSION > 8
-#define PERL_5_9_PLUS
-#endif
-
-#ifdef PERL_5_9_PLUS
+#ifdef PL_parser
 /* 5.9+ moves a bunch of things to a PL_parser struct so we need to
    declare the backcompat macros for things to still work (mst) */
 
@@ -140,11 +136,6 @@ STATIC char*    S_scan_word(pTHX_ char *s, char *dest, STRLEN destlen, int allow
 #  define PL_nextval            (PL_parser->nextval)
 /* end of backcompat macros form 5.9 toke.c (mst) */
 #endif
-/* we also need this because we define PERL_CORE so handy.h doesn't provide
-   it for us (mst) */
-#ifndef NEWSV
-#define NEWSV(x,len)    newSV(len)
-#endif
 
 /* when ccflags include -DDEBUGGING we need this for earlier 5.8 perls */
 #ifndef SvPV_nolen_const