summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-31 13:12:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-31 13:12:51 +0000
commitf355267cae69288cbad383cfc3cf2811969d730e (patch)
treee80a2dd536fd9fd7dc700af3a1268eedc51da68a /toke.c
parent11676840748f5f7ca2c49139b3da8352772177ee (diff)
downloadperl-f355267cae69288cbad383cfc3cf2811969d730e.tar.gz
NetWare update from Ananth Kesari.
p4raw-id: //depot/perl@16922
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 7e9efdc768..7cd0983666 100644
--- a/toke.c
+++ b/toke.c
@@ -7577,15 +7577,33 @@ Perl_yyerror(pTHX_ char *s)
where = "at EOF";
else if (PL_bufptr > PL_oldoldbufptr && PL_bufptr - PL_oldoldbufptr < 200 &&
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_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
while (isSPACE(*PL_oldbufptr))
PL_oldbufptr++;
+#endif
context = PL_oldbufptr;
contlen = PL_bufptr - PL_oldbufptr;
}