X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/ad3c9f2af814c84582fdd1649e49ec4f68572c5a..refs/heads/master:/xcodescripts/patch_headers_variants.pl?ds=inline diff --git a/xcodescripts/patch_headers_variants.pl b/xcodescripts/patch_headers_variants.pl index b404cbc..a71d758 100644 --- a/xcodescripts/patch_headers_variants.pl +++ b/xcodescripts/patch_headers_variants.pl @@ -55,6 +55,11 @@ sub process { } } + my($fname, $dirs, $suffix) = File::Basename::fileparse($file, ".h"); + if ($suffix ne ".h") { + return; + } + my $p = IO::File->new($path, 'r'); die "$MyName: Can't open $path: $!\n" unless defined($p); my $f = IO::File->new($file, 'w'); @@ -66,6 +71,9 @@ sub process { my $sym; if($n > 0) { my($sym) = ($save[$n - 1] =~ /__DARWIN_(?:10\d+|ALIAS|EXTSN|INODE64)[^(]*\(([^)]*)\)/); + if($save[$n - 1] =~ /__DARWIN_ALIAS_STARTING/) { + undef $sym; + } if(defined($sym)) { if(defined($path)) { print " $path\n";