diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-10 11:33:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-10 11:33:21 +0000 |
commit | db7012397ff2295f64821703035607085a7344d8 (patch) | |
tree | 27b1962350216defded0c53ed69f82d28d72e27c /source4/build/pidl/header.pm | |
parent | e69987090fa1368dcb3d4025ae45e30bca4333c9 (diff) | |
download | samba-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.pm | 9 |
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"; } |