瀏覽代碼

* avoid a lot of useless calls in readline method

pierre 23 年之前
父節點
當前提交
7590ebeae3
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      ide/wutils.pas

+ 6 - 2
ide/wutils.pas

@@ -905,7 +905,8 @@ procedure TFastBufStream.Readline(var s:string;var linecomplete,hasCR : boolean)
     else
     else
       CharsInS:=false;
       CharsInS:=false;
 
 
-    while (not (getpos>=getsize)) and (c<>#10) and (i<High(S)) do
+    while (CharsInS or not (getpos>=getsize)) and
+          (c<>#10) and (i<High(S)) do
      begin
      begin
        if CharsInS then
        if CharsInS then
          c:=s[i+1]
          c:=s[i+1]
@@ -1362,7 +1363,10 @@ BEGIN
 END.
 END.
 {
 {
   $Log$
   $Log$
-  Revision 1.14  2002-09-10 12:19:14  pierre
+  Revision 1.15  2002-09-11 08:30:38  pierre
+   * avoid a lot of useless calls in readline method
+
+  Revision 1.14  2002/09/10 12:19:14  pierre
    * use faster method for loading files by default
    * use faster method for loading files by default
 
 
   Revision 1.13  2002/09/09 06:58:27  pierre
   Revision 1.13  2002/09/09 06:58:27  pierre