From a0667e11ae2c92850919a1568ca47fa83d29af6f Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 16 Feb 2005 11:09:10 +0000 Subject: r5417: Add wrapper function for typedefs hash rather then using the "our" keyword, move pointer parsing to seperate function. (This used to be commit ea872b9a2b9a51ba9f6c2842303d067e9e85d11a) --- source4/build/pidl/header.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/build/pidl/header.pm') diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm index c49f60ce8b..00321fef93 100644 --- a/source4/build/pidl/header.pm +++ b/source4/build/pidl/header.pm @@ -185,7 +185,10 @@ sub HeaderType($$$) return; } - my $dt = $NdrParser::typedefs{$e->{TYPE}}->{DATA}; + my $dt; + if (my $t = NdrParser::get_typedef($e->{TYPE})) { + $dt = $t->{DATA}; + } if ($data =~ "string") { pidl "const char *"; -- cgit