X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perly.y;h=88eee99f3e5c85b1ae5de0ece6905fa4f4f8cbad;hb=ee4d903cc41711efc019efd25339b39970bad65c;hp=2c246fc22823a747984738d27155370c3344a3ea;hpb=092bebab2f702b0ac392b3259fc90294ab403f4b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perly.y b/perly.y index 2c246fc..88eee99 100644 --- a/perly.y +++ b/perly.y @@ -27,7 +27,8 @@ dep(void) %start prog %{ -#if !defined(OEMVS) && !defined(__OPEN_VM) +/* I sense a Big Blue pattern here... */ +#if !defined(OEMVS) && !defined(__OPEN_VM) && !defined(POSIX_BC) %} %union { @@ -38,7 +39,11 @@ dep(void) } %{ -#endif /* !OEMVS && !__OPEN_VM*/ +#endif /* !OEMVS && !__OPEN_VM && !POSIX_BC */ + +#ifdef USE_PURE_BISON +#define YYLEX_PARAM (&yychar) +#endif %} %token '{' ')' @@ -299,7 +304,7 @@ startformsub: /* NULL */ /* start a format subroutine scope */ { $$ = start_subparse(TRUE, 0); } ; -subname : WORD { char *name = SvPV(((SVOP*)$1)->op_sv, PL_na); +subname : WORD { STRLEN n_a; char *name = SvPV(((SVOP*)$1)->op_sv,n_a); if (strEQ(name, "BEGIN") || strEQ(name, "END") || strEQ(name, "INIT")) CvUNIQUE_on(PL_compcv);