From 50d2bf00660c8c2c12cd1ea40b2212aa8250e611 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 27 May 2005 15:49:15 +0000 Subject: r7029: Make array support in pidl similar to that in other IDL compilers. We should now able to use constructions like these: [size_is(20)] int *x; -> Pointer to array of 20 ints [size_is(20)] int x[]; -> Array of 20 ints [size_is(20)] int *x[]; -> Array of 20 pointers to ints [size_is(20,)] int *x[] -> Array of 20 pointers to ints [size_is(,20)] int *x[]; -> Pointer to array of 20 ints [size_is(,20)] int **x; -> Pointer to pointer to array of 20 ints [size_is(20)] int x[][30]; -> 20 blocks of 30 ints (This used to be commit ecf583da71c2f80be124c17fccdcb284b47e0695) --- source4/librpc/idl/dfs.idl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source4/librpc/idl/dfs.idl') diff --git a/source4/librpc/idl/dfs.idl b/source4/librpc/idl/dfs.idl index 8bbb3e02ff..085bed4f4e 100644 --- a/source4/librpc/idl/dfs.idl +++ b/source4/librpc/idl/dfs.idl @@ -65,7 +65,7 @@ unistr *comment; uint32 state; uint32 num_stores; - [size_is(num_stores)] dfs_StorageInfo *stores[]; + [size_is(num_stores)] dfs_StorageInfo *stores; } dfs_Info3; typedef struct { @@ -75,7 +75,7 @@ uint32 timeout; GUID guid; uint32 num_stores; - [size_is(num_stores)] dfs_StorageInfo *stores[]; + [size_is(num_stores)] dfs_StorageInfo *stores; } dfs_Info4; typedef struct { @@ -123,32 +123,32 @@ typedef struct { uint32 count; - [size_is(count)] dfs_Info1 *s[]; + [size_is(count)] dfs_Info1 *s; } dfs_EnumArray1; typedef struct { uint32 count; - [size_is(count)] dfs_Info2 *s[]; + [size_is(count)] dfs_Info2 *s; } dfs_EnumArray2; typedef struct { uint32 count; - [size_is(count)] dfs_Info3 *s[]; + [size_is(count)] dfs_Info3 *s; } dfs_EnumArray3; typedef struct { uint32 count; - [size_is(count)] dfs_Info4 *s[]; + [size_is(count)] dfs_Info4 *s; } dfs_EnumArray4; typedef struct { uint32 count; - [size_is(count)] dfs_Info200 *s[]; + [size_is(count)] dfs_Info200 *s; } dfs_EnumArray200; typedef struct { uint32 count; - [size_is(count)] dfs_Info300 *s[]; + [size_is(count)] dfs_Info300 *s; } dfs_EnumArray300; -- cgit