summaryrefslogtreecommitdiff
path: root/source4/build/pidl/header.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-02-16 11:09:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:44 -0500
commita0667e11ae2c92850919a1568ca47fa83d29af6f (patch)
tree58fea153339373c6f629a0380a00690a17d6270a /source4/build/pidl/header.pm
parent97dcee677e4fda03bed2ace3151e329e340ca313 (diff)
downloadsamba-a0667e11ae2c92850919a1568ca47fa83d29af6f.tar.gz
samba-a0667e11ae2c92850919a1568ca47fa83d29af6f.tar.bz2
samba-a0667e11ae2c92850919a1568ca47fa83d29af6f.zip
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)
Diffstat (limited to 'source4/build/pidl/header.pm')
-rw-r--r--source4/build/pidl/header.pm5
1 files changed, 4 insertions, 1 deletions
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 *";