Procházet zdrojové kódy

* Print unit name, flush output in status messages

Michaël Van Canneyt před 6 měsíci
rodič
revize
1ef1481488
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      compiler/comphook.pas

+ 2 - 1
compiler/comphook.pas

@@ -250,9 +250,10 @@ begin
         (status.currentline mod 100=0) then
         (status.currentline mod 100=0) then
        begin
        begin
          if status.currentline>0 then
          if status.currentline>0 then
-           Write(status.currentline,' ');
+           Write(status.currentmodule,':',status.currentline,' ');
          hstatus:=GetFPCHeapStatus;
          hstatus:=GetFPCHeapStatus;
          WriteLn(DStr(hstatus.CurrHeapUsed shr 10),'/',DStr(hstatus.CurrHeapSize shr 10),' Kb Used');
          WriteLn(DStr(hstatus.CurrHeapUsed shr 10),'/',DStr(hstatus.CurrHeapSize shr 10),' Kb Used');
+         flush(output);
        end;
        end;
    end;
    end;
 {$ifdef macos}
 {$ifdef macos}