Robert Shearman : ole: Improve typelib traces.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Dec 26 11:46:21 CST 2005
Module: wine
Branch: refs/heads/master
Commit: 088fc70ede7ee8ff2dc8990bbd6e86dfcaa9cb7d
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=088fc70ede7ee8ff2dc8990bbd6e86dfcaa9cb7d
Author: Robert Shearman <rob at codeweavers.com>
Date: Mon Dec 26 13:02:47 2005 +0100
ole: Improve typelib traces.
Move the debug channel check from dump_TLBFuncDesc[One] to its callers
for more flexibility in which channel controls the output.
---
dlls/oleaut32/typelib.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 29585a3..965342c 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -1145,8 +1145,6 @@ static const char * typekind_desc[] =
static void dump_TLBFuncDescOne(const TLBFuncDesc * pfd)
{
int i;
- if (!TRACE_ON(typelib))
- return;
MESSAGE("%s(%u)\n", debugstr_w(pfd->Name), pfd->funcdesc.cParams);
for (i=0;i<pfd->funcdesc.cParams;i++)
MESSAGE("\tparm%d: %s\n",i,debugstr_w(pfd->pParamDesc[i].Name));
@@ -1282,14 +1280,16 @@ static void dump_DispParms(const DISPPAR
static void dump_TypeInfo(const ITypeInfoImpl * pty)
{
TRACE("%p ref=%lu\n", pty, pty->ref);
+ TRACE("%s %s\n", debugstr_w(pty->Name), debugstr_w(pty->DocString));
TRACE("attr:%s\n", debugstr_guid(&(pty->TypeAttr.guid)));
TRACE("kind:%s\n", typekind_desc[pty->TypeAttr.typekind]);
TRACE("fct:%u var:%u impl:%u\n",
pty->TypeAttr.cFuncs, pty->TypeAttr.cVars, pty->TypeAttr.cImplTypes);
+ TRACE("wTypeFlags: 0x%04x\n", pty->TypeAttr.wTypeFlags);
TRACE("parent tlb:%p index in TLB:%u\n",pty->pTypeLib, pty->index);
- TRACE("%s %s\n", debugstr_w(pty->Name), debugstr_w(pty->DocString));
if (pty->TypeAttr.typekind == TKIND_MODULE) TRACE("dllname:%s\n", debugstr_w(pty->DllName));
- dump_TLBFuncDesc(pty->funclist);
+ if (TRACE_ON(ole))
+ dump_TLBFuncDesc(pty->funclist);
dump_TLBVarDesc(pty->varlist);
dump_TLBImplType(pty->impltypelist);
}
@@ -2968,7 +2968,8 @@ static SLTG_TypeInfoTail *SLTG_ProcessIn
if(pFunc->next == 0xffff) break;
}
pTI->TypeAttr.cFuncs = num;
- dump_TLBFuncDesc(pTI->funclist);
+ if (TRACE_ON(typelib))
+ dump_TLBFuncDesc(pTI->funclist);
return (SLTG_TypeInfoTail*)(pFirstItem + pMemHeader->cbExtra);
}
@@ -5593,7 +5594,8 @@ static HRESULT WINAPI ITypeInfo_fnGetDll
for(pFDesc=This->funclist; pFDesc; pFDesc=pFDesc->next)
if(pFDesc->funcdesc.memid==memid){
dump_TypeInfo(This);
- dump_TLBFuncDescOne(pFDesc);
+ if (TRACE_ON(ole))
+ dump_TLBFuncDescOne(pFDesc);
if (pBstrDllName)
*pBstrDllName = SysAllocString(This->DllName);
More information about the wine-cvs
mailing list