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/dcom.idl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source4/librpc/idl/dcom.idl') diff --git a/source4/librpc/idl/dcom.idl b/source4/librpc/idl/dcom.idl index 7c3f181f0e..70a56c2ec5 100644 --- a/source4/librpc/idl/dcom.idl +++ b/source4/librpc/idl/dcom.idl @@ -88,8 +88,8 @@ interface IRemUnknown : IUnknown [in] GUID *ripid, /* interface to QI on */ [in] uint32 cRefs, /* count of AddRefs requested */ [in] uint16 cIids, /* count of IIDs that follow */ - [in, size_is(cIids)] GUID* iids, /* IIDs to QI for */ - [out, size_is(cIids)] MInterfacePointer *ip + [in, size_is(cIids)] GUID *iids[], /* IIDs to QI for */ + [out, size_is(cIids)] MInterfacePointer *ip[] ); typedef struct @@ -102,7 +102,7 @@ interface IRemUnknown : IUnknown [call_as(AddRef)] WERROR RemAddRef ( [in] uint16 cInterfaceRefs, [in, size_is(cInterfaceRefs)] REMINTERFACEREF InterfaceRefs[], - [out, size_is(cInterfaceRefs)] WERROR* pResults + [out, size_is(cInterfaceRefs)] WERROR *pResults[] ); [call_as(Release)] WERROR RemRelease ( @@ -181,9 +181,9 @@ interface IRemUnknown2 : IRemUnknown [call_as(QueryInterface2)] WERROR RemQueryInterface2 ( [in] GUID *ripid, [in] uint16 cIids, - [in, size_is(cIids)] GUID*iids, - [out, size_is(cIids)] WERROR *phr, - [out, size_is(cIids)] MInterfacePointer *ppMIF + [in, size_is(cIids)] GUID *iids[], + [out, size_is(cIids)] WERROR *phr[], + [out, size_is(cIids)] MInterfacePointer *ppMIF[] ); } @@ -224,7 +224,7 @@ object, /*FIXME[in,size_is(cNames)] OLESTR *rgszNames[], */ [in] uint16 cNames, [in] uint32 lcid, - [out,size_is(cNames)] uint32 *rgDispId); + [out,size_is(cNames)] uint32 *rgDispId[]); typedef struct { uint16 vartype; @@ -297,7 +297,7 @@ interface IStream : IUnknown ); WERROR Write( - [in,size_is(num_requested)] uint8 *data, + [in,size_is(num_requested)] uint8 *data[], [in] uint32 num_requested, [out] uint32 num_written); } -- cgit