From: Rafael Garcia-Suarez Date: Mon, 13 Jun 2005 11:28:43 +0000 (+0000) Subject: Make some variables global, to avoid some "will not stay X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a8adbc995c8b3526402e47f3b93617cf228128c3;p=p5sagit%2Fp5-mst-13.2.git Make some variables global, to avoid some "will not stay shared" warnings at compile time p4raw-id: //depot/perl@24820 --- diff --git a/lib/ExtUtils/ParseXS.pm b/lib/ExtUtils/ParseXS.pm index 2af2f74..3e6e873 100644 --- a/lib/ExtUtils/ParseXS.pm +++ b/lib/ExtUtils/ParseXS.pm @@ -196,8 +196,8 @@ sub process_file { $input_expr{$key} =~ s/;*\s+\z//; } - my ($bal, $cast, $size); - $bal = qr[(?:(?>[^()]+)|\((??{ $bal })\))*]; # ()-balanced + my ($cast, $size); + our $bal = qr[(?:(?>[^()]+)|\((??{ $bal })\))*]; # ()-balanced $cast = qr[(?:\(\s*SV\s*\*\s*\)\s*)?]; # Optional (SV*) cast $size = qr[,\s* (??{ $bal }) ]x; # Third arg (to setpvn) @@ -225,7 +225,7 @@ sub process_file { )) . "|$END)\\s*:"; - my ($C_group_rex, $C_arg); + our ($C_group_rex, $C_arg); # Group in C (no support for comments or literals) $C_group_rex = qr/ [({\[] (?: (?> [^()\[\]{}]+ ) | (??{ $C_group_rex }) )*