From 631aa1f0efa75924c4d8ba639de80527fb8da7b5 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 5 Mar 2005 18:34:18 +0000 Subject: r5661: Be a little stricter on syntax regarding arrays. A pointer to an array can now only be : type *name[]; rather then : type *name; which was supported in the past. Warnings will be given when the first syntax is used. Reasons for this change in behaviour include improved readability and the fact that the second format makes dealing with multiple levels of pointers harder. (This used to be commit a416de5825c540fd3741731c4be05e9a659a6fdb) --- 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 34bb686ba5..d418b8b546 100644 --- a/source4/librpc/idl/dfs.idl +++ b/source4/librpc/idl/dfs.idl @@ -64,7 +64,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 { @@ -74,7 +74,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 { @@ -122,32 +122,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