浏览代码

* some more minor fixes to the debug info

git-svn-id: trunk@11887 -
marco 17 年之前
父节点
当前提交
925c119911
共有 2 个文件被更改,包括 9 次插入10 次删除
  1. 8 9
      ide/wchmhwrap.pas
  2. 1 1
      ide/whtmlhlp.pas

+ 8 - 9
ide/wchmhwrap.pas

@@ -45,7 +45,7 @@ function combinepaths(relpath,basepath:String):String;
 
 begin
   {$ifdef combinedebug}
-    debugmessage({$i %file%},'combine in "'+relpath+'" and "'+basepath+'"'+{$i %line%},1,1);
+    debugmessageS({$i %file%},'combine in "'+relpath+'" and "'+basepath+'"',{$i %line%},'1');
   {$endif}
 
   if relpath='' then exit;
@@ -58,7 +58,7 @@ begin
      end;
        
    {$ifdef combinedebug}
-    debugmessage({$i %file%},'combine out "'+relpath+'" and "'+basepath+'"'+{$i %line%},1,1);
+    debugmessageS({$i %file%},'combine out "'+relpath+'" and "'+basepath+'"',{$i %line%},'1');
   {$endif}
   
   result:=basepath+relpath;
@@ -78,12 +78,12 @@ begin
       exit;  
     end;      
   {$ifdef wdebug}
-    debugmessage({$i %file%},'TCHMWrapper: before sitemap creation '+{$i %line%},1,1);
+    debugmessageS({$i %file%},'TCHMWrapper: before sitemap creation ',{$i %line%},'1');
   {$endif}
   findex:=TChmSiteMap.create(stindex);
   ftopic:=TChmSiteMap.create(sttoc);
   {$ifdef wdebug}
-    debugmessage({$i %file%},'TCHMWrapper: after sitemap creation '+{$i %line%}+inttostr(ptrint(findex)),1,1);
+    debugmessageS({$i %file%},'TCHMWrapper: after sitemap creation ',{$i %line%},'1');
   {$endif}
   floaded:=false;
 end;
@@ -111,15 +111,14 @@ begin
   m:=fchmr.getobject(fchmr.indexfile);
   try
   {$ifdef wdebug}
-     debugmessage({$i %file%},'TCHMWrapper: before loadfromstream '+{$i %line%},1,1);
-     debugmessage({$i %file%},'TCHMWrapper: stream size loaded'+inttostr(m.size),1,1); 
+     debugmessageS({$i %file%},'TCHMWrapper: stream size loaded :'+inttostr(m.size),{$i %line%},'1'); 
   {$endif}
     findex.loadfromStream(m);
   finally
     freeandnil(m);
     end;
    {$ifdef wdebug}
-     debugmessage({$i %file%},'TCHMWrapper: loadindex after final '+{$i %line%},1,1); 
+     debugmessageS({$i %file%},'TCHMWrapper: loadindex after final ',{$i %line%},'1'); 
   {$endif}
   
   tli:=TopicLinks^.AddItem(fchmr.defaultpage); 
@@ -133,7 +132,7 @@ begin
       IndexEntries^.Insert(NewIndexEntry(  FormatAlias(item.text),ID,TLI));
     end;
    {$ifdef wdebug}
-     debugmessage({$i %file%},'TCHMWrapper: endloadindex '+{$i %line%},1,1); 
+     debugmessageS({$i %file%},'TCHMWrapper: endloadindex ',{$i %line%},'1'); 
   {$endif}
   floaded:=true;
   result:=true;
@@ -154,7 +153,7 @@ begin
   linedata:=Classes.TStringList.create;
   try
     {$ifdef wdebug}
-     debugmessage({$i %file%},'TCHMWrapper: Getting file '+name+' '+{$i %line%},1,1); 
+     debugmessageS({$i %file%},'TCHMWrapper: Getting file '+name,{$i %line%},'1'); 
     {$endif}
 //    if uppercase(name)='TABLE OF CONTENTS' Then
   //    m:=fchmr.getobject(fchmr.tocfile)

+ 1 - 1
ide/whtmlhlp.pas

@@ -635,7 +635,7 @@ begin
         begin
           Topic^.NamedMarks^.InsertStr(Name);
 {$IFDEF WDEBUG}
-          DebugMessage('',' Adding Name "'+Name+'"',1,1);
+          DebugMessageS({$i %file%},' Adding Name "'+Name+'"',{$i %line%},'1');
 {$endif WDEBUG}
           AddChar(hscNamedMark);
         end;