summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-06-05 14:20:51 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-06-05 14:20:51 +0000
commite858de61083066071eb1526df39bdaa094032c61 (patch)
treea59a60b162edf35b5557f553d4812553b75a996d /perly.y
parent5196be3eab7cb5c37d1fce858e95874c8439e54f (diff)
downloadperl-e858de61083066071eb1526df39bdaa094032c61.tar.gz
More fixups for thrperl integration.
p4raw-id: //depot/perl@27
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/perly.y b/perly.y
index be6fe98f20..be3d0c7763 100644
--- a/perly.y
+++ b/perly.y
@@ -288,8 +288,9 @@ startformsub: /* NULL */ /* start a format subroutine scope */
{ $$ = start_subparse(TRUE, 0); }
;
-subname : WORD { char *name = SvPVx(((SVOP*)$1)->op_sv, na);
- if (strEQ(name, "BEGIN") || strEQ(name, "END"))
+subname : WORD { char *name = SvPV(((SVOP*)$1)->op_sv, na);
+ if (strEQ(name, "BEGIN") || strEQ(name, "END")
+ || strEQ(name, "RESTART"))
CvUNIQUE_on(compcv);
$$ = $1; }
;