From 97b4e6ff751b00ede17fbc8aa94dcdaa5de11cf5 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Wed, 19 Feb 2003 03:38:07 +0000 Subject: [PATCH] "Implemented" IID_BS_* macros. --- include/rpcproxy.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/rpcproxy.h b/include/rpcproxy.h index d29a7dab956..5ba378d0c5f 100644 --- a/include/rpcproxy.h +++ b/include/rpcproxy.h @@ -195,6 +195,20 @@ ULONG WINAPI CStdStubBuffer_Release(IRpcStubBuffer *This) \ #define IID_GENERIC_CHECK_IID(name,pIID,index) memcmp(pIID, name##_ProxyVtblList[index]->header.piid, sizeof(IID)) +/* + * In these macros, BS stands for Binary Search. MIDL uses these to + * "unroll" a binary search into the module's IID_Lookup function. + * However, I haven't bothered to reimplement that stuff yet; + * I've just implemented a linear search for now. + */ +#define IID_BS_LOOKUP_SETUP \ + int c; +#define IID_BS_LOOKUP_INITIAL_TEST(name, sz, split) +#define IID_BS_LOOKUP_NEXT_TEST(name, split) +#define IID_BS_LOOKUP_RETURN_RESULT(name, sz, index) \ + for (c=0; c