mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 06:50:18 +02:00
* cleaned up FreeLocalVerbosity usage
git-svn-id: trunk@18997 -
This commit is contained in:
parent
117a874ba5
commit
431da61f3a
@ -522,7 +522,6 @@ implementation
|
|||||||
set_current_module(olddata^.old_current_module);
|
set_current_module(olddata^.old_current_module);
|
||||||
|
|
||||||
FreeLocalVerbosity(current_settings.pmessage);
|
FreeLocalVerbosity(current_settings.pmessage);
|
||||||
current_settings.pmessage:=nil;
|
|
||||||
|
|
||||||
dispose(olddata);
|
dispose(olddata);
|
||||||
end;
|
end;
|
||||||
|
@ -82,7 +82,7 @@ interface
|
|||||||
function CheckVerbosity(v:longint):boolean;
|
function CheckVerbosity(v:longint):boolean;
|
||||||
function SetMessageVerbosity(v:longint;state:tmsgstate):boolean;
|
function SetMessageVerbosity(v:longint;state:tmsgstate):boolean;
|
||||||
procedure RestoreLocalVerbosity(pstate : pmessagestaterecord);
|
procedure RestoreLocalVerbosity(pstate : pmessagestaterecord);
|
||||||
procedure FreeLocalVerbosity(fstate : pmessagestaterecord);
|
procedure FreeLocalVerbosity(var fstate : pmessagestaterecord);
|
||||||
|
|
||||||
function ChangeMessageVerbosity(s: string; var i: integer;state:tmsgstate): boolean;
|
function ChangeMessageVerbosity(s: string; var i: integer;state:tmsgstate): boolean;
|
||||||
procedure ShowStatus;
|
procedure ShowStatus;
|
||||||
@ -191,10 +191,10 @@ implementation
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure FreeLocalVerbosity(fstate : pmessagestaterecord);
|
procedure FreeLocalVerbosity(var fstate : pmessagestaterecord);
|
||||||
var pstate : pmessagestaterecord;
|
var pstate : pmessagestaterecord;
|
||||||
begin
|
begin
|
||||||
pstate:=fstate;
|
pstate:=unaligned(fstate);
|
||||||
while assigned(pstate) do
|
while assigned(pstate) do
|
||||||
begin
|
begin
|
||||||
fstate:=pstate^.next;
|
fstate:=pstate^.next;
|
||||||
|
Loading…
Reference in New Issue
Block a user