diff options
Diffstat (limited to 'source4/build/pidl/header.pm')
-rw-r--r-- | source4/build/pidl/header.pm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm index ec8b8451ad..25f0fecd47 100644 --- a/source4/build/pidl/header.pm +++ b/source4/build/pidl/header.pm @@ -49,7 +49,8 @@ sub HeaderElement($) $res .= tabs(); HeaderType($element, $element->{TYPE}, ""); $res .= " "; - if ($element->{POINTERS}) { + if ($element->{POINTERS} && + $element->{TYPE} ne "string") { my($n) = $element->{POINTERS}; for (my($i)=$n; $i > 0; $i--) { $res .= "*"; @@ -125,11 +126,7 @@ sub HeaderType($$$) HeaderUnion($data, $name); return; } - if ($data =~ "unistr" || - $data =~ "ascstr") { - $res .= "const char"; - } elsif ($data =~ "nstring" || - $data =~ "lstring") { + if ($data =~ "string") { $res .= "const char *"; } elsif (util::is_scalar_type($data)) { $res .= "$data"; |