mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 19:10:14 +02:00
* more safe put implementation
git-svn-id: trunk@24263 -
This commit is contained in:
parent
9dc5b07a68
commit
f97cd6997c
@ -132,8 +132,12 @@ unit iso7185;
|
|||||||
|
|
||||||
|
|
||||||
Procedure Put(var t : Text);
|
Procedure Put(var t : Text);
|
||||||
|
type
|
||||||
|
FileFunc = Procedure(var t : TextRec);
|
||||||
begin
|
begin
|
||||||
inc(TextRec(t).BufPos);
|
inc(TextRec(t).BufPos);
|
||||||
|
If TextRec(t).BufPos>=TextRec(t).BufSize Then
|
||||||
|
FileFunc(TextRec(t).InOutFunc)(TextRec(t));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user