RICHED20: debug levels
Krzysztof Foltman
wdev at foltman.com
Fri Oct 7 09:05:21 CDT 2005
ChangeLog:
* Send verbose info to different debug channels (richedit_check for
output from offset checker, richedit_lists for the document list dumps)
Krzysztof
-------------- next part --------------
Index: run.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/run.c,v
retrieving revision 1.12
diff -u -r1.12 run.c
--- run.c 22 Jul 2005 18:27:26 -0000 1.12
+++ run.c 7 Oct 2005 12:06:05 -0000
@@ -23,6 +23,8 @@
#include "editor.h"
WINE_DEFAULT_DEBUG_CHANNEL(richedit);
+WINE_DECLARE_DEBUG_CHANNEL(richedit_check);
+WINE_DECLARE_DEBUG_CHANNEL(richedit_lists);
int ME_CanJoinRuns(ME_Run *run1, ME_Run *run2)
{
@@ -72,26 +74,26 @@
{
ME_DisplayItem *p = editor->pBuffer->pFirst;
int ofs = 0, ofsp = 0;
- if(TRACE_ON(richedit))
+ if(TRACE_ON(richedit_lists))
{
- TRACE("---\n");
+ TRACE_(richedit_lists)("---\n");
ME_DumpDocument(editor->pBuffer);
}
do {
p = ME_FindItemFwd(p, diRunOrParagraphOrEnd);
switch(p->type) {
case diTextEnd:
- TRACE("tend, real ofsp = %d, counted = %d\n", p->member.para.nCharOfs, ofsp+ofs);
+ TRACE_(richedit_check)("tend, real ofsp = %d, counted = %d\n", p->member.para.nCharOfs, ofsp+ofs);
assert(ofsp+ofs == p->member.para.nCharOfs);
return;
case diParagraph:
- TRACE("para, real ofsp = %d, counted = %d\n", p->member.para.nCharOfs, ofsp+ofs);
+ TRACE_(richedit_check)("para, real ofsp = %d, counted = %d\n", p->member.para.nCharOfs, ofsp+ofs);
assert(ofsp+ofs == p->member.para.nCharOfs);
ofsp = p->member.para.nCharOfs;
ofs = 0;
break;
case diRun:
- TRACE("run, real ofs = %d (+ofsp = %d), counted = %d, len = %d, txt = \"%s\", flags=%08x, fx&mask = %08lx\n",
+ TRACE_(richedit_check)("run, real ofs = %d (+ofsp = %d), counted = %d, len = %d, txt = \"%s\", flags=%08x, fx&mask = %08lx\n",
p->member.run.nCharOfs, p->member.run.nCharOfs+ofsp, ofsp+ofs,
p->member.run.strText->nLen, debugstr_w(p->member.run.strText->szData),
p->member.run.nFlags,
Index: list.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/list.c,v
retrieving revision 1.2
diff -u -r1.2 list.c
--- list.c 9 Mar 2005 11:48:59 -0000 1.2
+++ list.c 7 Oct 2005 12:06:05 -0000
@@ -21,7 +21,7 @@
#include "editor.h"
-WINE_DEFAULT_DEBUG_CHANNEL(riched20);
+WINE_DEFAULT_DEBUG_CHANNEL(richedit_lists);
void ME_InsertBefore(ME_DisplayItem *diWhere, ME_DisplayItem *diWhat)
{
More information about the wine-patches
mailing list