X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=stolen_chunk_of_toke.c;h=f0498cbf8e0b06e37d22f6da066c0fb131c84d1d;hb=4e0c5494567f8799cd16984299fee819f9d1d553;hp=5a39ef8cd3a7b684e698a65033b4efef845fd927;hpb=781600856f70d4e3e5f82c6ff49449de22cf28b8;p=p5sagit%2FDevel-Declare.git diff --git a/stolen_chunk_of_toke.c b/stolen_chunk_of_toke.c index 5a39ef8..f0498cb 100644 --- a/stolen_chunk_of_toke.c +++ b/stolen_chunk_of_toke.c @@ -140,11 +140,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 -#define NEWSV(x,len) newSV(len) -#endif /* when ccflags include -DDEBUGGING we need this for earlier 5.8 perls */ #ifndef SvPV_nolen_const @@ -311,16 +306,20 @@ S_skipspace(pTHX_ register char *s) PL_bufend = SvPVX(PL_linestr) + SvCUR(PL_linestr); PL_last_lop = PL_last_uni = Nullch; - /* Close the filehandle. Could be from -P preprocessor, + /* In perl versions previous to p4-rawid: //depot/perl@32954 -P + * preprocessors were supported here. We don't support -P at all, even + * on perls that support it, and use the following chunk from blead + * perl. (rafl) + */ + + /* Close the filehandle. Could be from * STDIN, or a regular file. If we were reading code from * STDIN (because the commandline held no -e or filename) * then we don't close it, we reset it so the code can * read from STDIN too. */ - if (PL_preprocess && !PL_in_eval) - (void)PerlProc_pclose(PL_rsfp); - else if ((PerlIO*)PL_rsfp == PerlIO_stdin()) + if ((PerlIO*)PL_rsfp == PerlIO_stdin()) PerlIO_clearerr(PL_rsfp); else (void)PerlIO_close(PL_rsfp);