diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2020-07-06 16:30:53 +0100 |
---|---|---|
committer | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2021-10-08 19:21:33 +0100 |
commit | 2eb109a4d326f05244e37f956ca8cd8b0db22b19 (patch) | |
tree | a8298fe2c529c6d6438fd75c144d91b18823824d /toke.c | |
parent | 07a6208729c01c230010594c3e08a946ab0ccbef (diff) | |
download | perl-2eb109a4d326f05244e37f956ca8cd8b0db22b19.tar.gz |
Remove NetWare support
The build has been broken since 2009.
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 31 |
1 files changed, 3 insertions, 28 deletions
@@ -6789,12 +6789,6 @@ yyl_backslash(pTHX_ char *s) OPERATOR(REFGEN); } -#ifdef NETWARE -#define RSFP_FILENO (PL_rsfp) -#else -#define RSFP_FILENO (PerlIO_fileno(PL_rsfp)) -#endif - static void yyl_data_handle(pTHX) { @@ -6830,7 +6824,7 @@ yyl_data_handle(pTHX) loc = PerlIO_tell(PL_rsfp); (void)PerlIO_seek(PL_rsfp, 0L, 0); } - if (PerlLIO_setmode(RSFP_FILENO, O_TEXT) != -1) { + if (PerlLIO_setmode(PerlIO_fileno(PL_rsfp), O_TEXT) != -1) { if (loc > 0) PerlIO_seek(PL_rsfp, loc, 0); } @@ -12421,37 +12415,18 @@ Perl_yyerror_pvn(pTHX_ const char *const s, STRLEN len, U32 flags) && PL_oldoldbufptr != PL_oldbufptr && PL_oldbufptr != PL_bufptr) { - /* - Only for NetWare: - The code below is removed for NetWare because it - abends/crashes on NetWare when the script has error such as - not having the closing quotes like: - if ($var eq "value) - Checking of white spaces is anyway done in NetWare code. - */ -#ifndef NETWARE while (isSPACE(*PL_oldoldbufptr)) PL_oldoldbufptr++; -#endif context = PL_oldoldbufptr; contlen = PL_bufptr - PL_oldoldbufptr; } else if ( PL_oldbufptr && PL_bufptr > PL_oldbufptr && PL_bufptr - PL_oldbufptr < 200 - && PL_oldbufptr != PL_bufptr) { - /* - Only for NetWare: - The code below is removed for NetWare because it - abends/crashes on NetWare when the script has error such as - not having the closing quotes like: - if ($var eq "value) - Checking of white spaces is anyway done in NetWare code. - */ -#ifndef NETWARE + && PL_oldbufptr != PL_bufptr) + { while (isSPACE(*PL_oldbufptr)) PL_oldbufptr++; -#endif context = PL_oldbufptr; contlen = PL_bufptr - PL_oldbufptr; } |