pidl/Typelist: let typeIs() do TYPEDEF dereference in the HASH case
authorStefan Metzmacher <metze@samba.org>
Mon, 20 Sep 2010 23:40:56 +0000 (01:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 28 Sep 2010 21:06:40 +0000 (23:06 +0200)
metze

pidl/lib/Parse/Pidl/Typelist.pm

index b00f0e4bed2d4806b51771209eb777053b601eb9..3b3920a92e229b1f3406143cd890c47e6ab63fa0 100644 (file)
@@ -130,6 +130,7 @@ sub typeIs($$)
        my ($t,$tt) = @_;
        
        if (ref($t) eq "HASH") {
+               return 1 if ($t->{TYPE} eq "TYPEDEF" and $t->{DATA}->{TYPE} eq $tt);
                return 1 if ($t->{TYPE} eq $tt);
                return 0;
        }