mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 03:29:33 +02:00
* CrtOpen, CrtClose, CrtRead, CrtWrite and CrtReturn changed to procedures, instead of functions
git-svn-id: trunk@25442 -
This commit is contained in:
parent
4f96e8a20d
commit
5ffca2e66f
@ -637,7 +637,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
Function CrtWrite(var f : textrec):integer;
|
Procedure CrtWrite(var f : textrec);
|
||||||
var
|
var
|
||||||
i : longint;
|
i : longint;
|
||||||
begin
|
begin
|
||||||
@ -646,11 +646,10 @@ begin
|
|||||||
WriteChar(f.buffer[i]);
|
WriteChar(f.buffer[i]);
|
||||||
SetScreenCursor(CurrX,CurrY);
|
SetScreenCursor(CurrX,CurrY);
|
||||||
f.bufpos:=0;
|
f.bufpos:=0;
|
||||||
CrtWrite:=0;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
Function CrtRead(Var F: TextRec): Integer;
|
Procedure CrtRead(Var F: TextRec);
|
||||||
|
|
||||||
procedure BackSpace;
|
procedure BackSpace;
|
||||||
begin
|
begin
|
||||||
@ -736,24 +735,21 @@ Begin
|
|||||||
until false;
|
until false;
|
||||||
f.bufpos:=0;
|
f.bufpos:=0;
|
||||||
SetScreenCursor(CurrX,CurrY);
|
SetScreenCursor(CurrX,CurrY);
|
||||||
CrtRead:=0;
|
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
Function CrtReturn(Var F: TextRec): Integer;
|
Procedure CrtReturn(Var F: TextRec);
|
||||||
Begin
|
Begin
|
||||||
CrtReturn:=0;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
Function CrtClose(Var F: TextRec): Integer;
|
Procedure CrtClose(Var F: TextRec);
|
||||||
Begin
|
Begin
|
||||||
F.Mode:=fmClosed;
|
F.Mode:=fmClosed;
|
||||||
CrtClose:=0;
|
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
Function CrtOpen(Var F: TextRec): Integer;
|
Procedure CrtOpen(Var F: TextRec);
|
||||||
Begin
|
Begin
|
||||||
If F.Mode=fmOutput Then
|
If F.Mode=fmOutput Then
|
||||||
begin
|
begin
|
||||||
@ -767,7 +763,6 @@ Begin
|
|||||||
TextRec(F).FlushFunc:=@CrtReturn;
|
TextRec(F).FlushFunc:=@CrtReturn;
|
||||||
end;
|
end;
|
||||||
TextRec(F).CloseFunc:=@CrtClose;
|
TextRec(F).CloseFunc:=@CrtClose;
|
||||||
CrtOpen:=0;
|
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user