git.samba.org
/
anatoliy
/
anatoliy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4677438
)
pidl/Typelist: let typeIs() do TYPEDEF dereference in the HASH case
author
Stefan Metzmacher
<metze@samba.org>
Mon, 20 Sep 2010 23:40:56 +0000
(
01:40
+0200)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 28 Sep 2010 21:06:40 +0000
(23:06 +0200)
metze
pidl/lib/Parse/Pidl/Typelist.pm
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Typelist.pm
b/pidl/lib/Parse/Pidl/Typelist.pm
index b00f0e4bed2d4806b51771209eb777053b601eb9..3b3920a92e229b1f3406143cd890c47e6ab63fa0 100644
(file)
--- a/
pidl/lib/Parse/Pidl/Typelist.pm
+++ b/
pidl/lib/Parse/Pidl/Typelist.pm
@@
-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;
}