Confused by "#if &__GNUC_PREREQ (2,97)"
Michael G. Schwern [Sat, 21 Apr 2001 09:48:00 +0000 (10:48 +0100)]
Message-ID: <20010421094759.B19736@blackrider.blackstar.co.uk>

p4raw-id: //depot/perl@9769

utils/h2ph.PL

index ab6cad9..d852fc2 100644 (file)
@@ -370,8 +370,8 @@ sub expr {
                $new .= '->' if /^[\[\{]/;
            } elsif ($id eq 'defined') {
                $new .= 'defined';
-           } elsif (/^\(/) {
-               s/^\((\w),/("$1",/ if $id =~ /^_IO[WR]*$/i;     # cheat
+           } elsif (/^\s*\(/) {
+               s/^\s*\((\w),/("$1",/ if $id =~ /^_IO[WR]*$/i;  # cheat
                $new .= " &$id";
            } elsif ($isatype{$id}) {
                if ($new =~ /{\s*$/) {