pidl/Samba4::NDR::Parser: correctly get the name of an array element
authorStefan Metzmacher <metze@samba.org>
Thu, 31 Jan 2008 13:57:35 +0000 (14:57 +0100)
committerStefan Metzmacher <metze@samba.org>
Sat, 2 Feb 2008 10:16:09 +0000 (11:16 +0100)
commitec0ee2aa5f4bef32f09a426d91c28c985f843038
treec45a7b52f107c7da3cadea9d96f0eef802890dfb
parent7c7acae817cd00ab5c915742338b019af79e9193
pidl/Samba4::NDR::Parser: correctly get the name of an array element

When we have "*r->out.ous"
(char ***ous, a pointer to a pointer to an array of pointers).
we need to use "(*r->out.ous)[3]" to access the 3rd
element of the array "*r->out.ous[3]" was generated before,
but that's the same as "*(r->out.ous[3])" which would mean
the array would apply to a different level.

This patch prepares support for:

[out,ref,size_is(,num)] [string,charset(UTF16)] uint16 ***names;

It means a [ref] pointer to a [unique] pointer to an array
of [unique] pointers which point to an UTF16 string.

metze
source/pidl/lib/Parse/Pidl/CUtil.pm
source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm