diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-05-27 14:01:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:07 -0500 |
commit | aba7014e41b120e8c4bac5d5dab91655b46a2175 (patch) | |
tree | 0475f32f8cd5ee498f9863ac1687864048fbd0a7 /source4/build/pidl/ndr_header.pm | |
parent | 49791818610cecd877eb5b865cb6cefa90e92ba0 (diff) | |
download | samba-aba7014e41b120e8c4bac5d5dab91655b46a2175.tar.gz samba-aba7014e41b120e8c4bac5d5dab91655b46a2175.tar.bz2 samba-aba7014e41b120e8c4bac5d5dab91655b46a2175.zip |
r7022: Add support for parsing definitions of multi-dimension arrays.
This will also be required for supporting
parsing pointers to arrays and arrays of pointers simultaneously.
(This used to be commit a34f848b02a6e8284d62532a792a5136e846fe8f)
Diffstat (limited to 'source4/build/pidl/ndr_header.pm')
-rw-r--r-- | source4/build/pidl/ndr_header.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/build/pidl/ndr_header.pm b/source4/build/pidl/ndr_header.pm index bebf6937ae..05c2f1f55c 100644 --- a/source4/build/pidl/ndr_header.pm +++ b/source4/build/pidl/ndr_header.pm @@ -77,8 +77,8 @@ sub HeaderElement($) } } - if (defined $element->{ARRAY_LEN} && util::is_constant($element->{ARRAY_LEN})) { - pidl "[$element->{ARRAY_LEN}]"; + if (defined $element->{ARRAY_LEN}[0] && util::is_constant($element->{ARRAY_LEN}[0])) { + pidl "[$element->{ARRAY_LEN}[0]]"; } pidl ";\n"; } @@ -230,7 +230,7 @@ sub HeaderTypedefProto($) sub HeaderConst($) { my($const) = shift; - if (!defined($const->{ARRAY_LEN})) { + if (!defined($const->{ARRAY_LEN}[0])) { pidl "#define $const->{NAME}\t( $const->{VALUE} )\n"; } else { pidl "#define $const->{NAME}\t $const->{VALUE}\n"; |