Fix problem with `&' prototype
authorDaniel Chetlin <daniel@chetlin.com>
Wed, 27 Dec 2000 15:55:32 +0000 (07:55 -0800)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 28 Dec 2000 22:19:21 +0000 (22:19 +0000)
Message-ID: <20001227155532.D9573@darkstar>

p4raw-id: //depot/perl@8237

op.c
t/comp/proto.t

diff --git a/op.c b/op.c
index e40d334..215b85c 100644 (file)
--- a/op.c
+++ b/op.c
@@ -2421,6 +2421,8 @@ Perl_prepend_elem(pTHX_ I32 type, OP *first, OP *last)
        if (type == OP_LIST) {  /* already a PUSHMARK there */
            first->op_sibling = ((LISTOP*)last)->op_first->op_sibling;
            ((LISTOP*)last)->op_first->op_sibling = first;
+            if (!(first->op_flags & OPf_PARENS))
+                last->op_flags &= ~OPf_PARENS;
        }
        else {
            if (!(last->op_flags & OPf_KIDS)) {
index 845843a..874ab44 100755 (executable)
@@ -19,7 +19,7 @@ BEGIN {
 
 use strict;
 
-print "1..123\n";
+print "1..124\n";
 
 my $i = 1;
 
@@ -343,6 +343,7 @@ sub sub_array (&@) {
 
 @array = (qw(O K)," ", $i++);
 sub_array { lc shift } @array;
+sub_array { lc shift } ('O', 'K', ' ', $i++);
 print "\n";
 
 ##