mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 13:29:27 +02:00
* in ISO mode, f^ is undefined after Rewrite
git-svn-id: trunk@41429 -
This commit is contained in:
parent
38a7f7c975
commit
74275a9173
@ -1858,6 +1858,8 @@ procedure fpc_Read_Text_Char_intern(var f : Text; out c: char); iocheck; [extern
|
||||
function fpc_GetBuf_Text(var f : Text) : pchar; iocheck; compilerproc;
|
||||
Begin
|
||||
Result:=@TextRec(f).Bufptr^[TextRec(f).BufEnd];
|
||||
if TextRec(f).mode=fmOutput then
|
||||
exit;
|
||||
If not CheckRead(f) then
|
||||
exit;
|
||||
If TextRec(f).BufPos>=TextRec(f).BufEnd Then
|
||||
|
Loading…
Reference in New Issue
Block a user