diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-13 09:23:58 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-13 09:23:58 +0000 |
commit | ff02537261e53b4ec60e5dcad32bf4207065b028 (patch) | |
tree | a310cee110d554fbc5139e4c4eb52f518c7a7e48 /source4/build/pidl/header.pm | |
parent | 6714815f014ae1b31d0675214d023e3afe2389f0 (diff) | |
download | samba-ff02537261e53b4ec60e5dcad32bf4207065b028.tar.gz samba-ff02537261e53b4ec60e5dcad32bf4207065b028.tar.bz2 samba-ff02537261e53b4ec60e5dcad32bf4207065b028.zip |
I think we now handle conformant arrays in structures correctly - the
test cases pass
(This used to be commit 22e15023509f8f1682865d72765e79f41ab7d149)
Diffstat (limited to 'source4/build/pidl/header.pm')
-rw-r--r-- | source4/build/pidl/header.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/build/pidl/header.pm b/source4/build/pidl/header.pm index 6e8842b1d7..53e495883d 100644 --- a/source4/build/pidl/header.pm +++ b/source4/build/pidl/header.pm @@ -59,13 +59,13 @@ sub HeaderElement($) $res .= "*"; } } - if (defined $element->{ARRAY_LEN} && - $element->{ARRAY_LEN} eq "*") { + if (defined $element->{ARRAY_LEN} && $element->{ARRAY_LEN} eq "*") { + # conformant arrays are ugly! I choose to implement them with + # pointers instead of the [1] method $res .= "*"; } $res .= "$element->{NAME}"; - if (defined $element->{ARRAY_LEN} && - $element->{ARRAY_LEN} ne "*") { + if (defined $element->{ARRAY_LEN} && $element->{ARRAY_LEN} ne "*") { $res .= "[$element->{ARRAY_LEN}]"; } $res .= ";\n"; |