summaryrefslogtreecommitdiff
path: root/source4/build/pidl/header.pm
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-10 11:33:21 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-10 11:33:21 +0000
commitdb7012397ff2295f64821703035607085a7344d8 (patch)
tree27b1962350216defded0c53ed69f82d28d72e27c /source4/build/pidl/header.pm
parente69987090fa1368dcb3d4025ae45e30bca4333c9 (diff)
downloadsamba-db7012397ff2295f64821703035607085a7344d8.tar.gz
samba-db7012397ff2295f64821703035607085a7344d8.tar.bz2
samba-db7012397ff2295f64821703035607085a7344d8.zip
much cleaner handling of the different types of variables
(This used to be commit 4df59bcff56a00e413fbde1a40ffebcb16763d3c)
Diffstat (limited to 'source4/build/pidl/header.pm')
-rw-r--r--source4/build/pidl/header.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm
index 5068bdd1b3..561a16a1e2 100644
--- a/source4/build/pidl/header.pm
+++ b/source4/build/pidl/header.pm
@@ -59,8 +59,15 @@ sub DumpElement($)
$res .= "*";
}
}
+ if (defined $element->{ARRAY_LEN} &&
+ $element->{ARRAY_LEN} eq "*") {
+ $res .= "*";
+ }
$res .= "$element->{NAME}";
- (defined $element->{ARRAY_LEN}) && ($res .= "[$element->{ARRAY_LEN}]");
+ if (defined $element->{ARRAY_LEN} &&
+ $element->{ARRAY_LEN} ne "*") {
+ $res .= "[$element->{ARRAY_LEN}]";
+ }
$res .= ";\n";
}