diff options
author | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-09-17 11:17:29 +0000 |
---|---|---|
committer | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-09-17 11:17:29 +0000 |
commit | 6797b96bff5082a3207848a9fc1325f88cfe4b21 (patch) | |
tree | 29137b803548b45f979dbb723d7d9a9c6181a961 /rtl/watcom | |
parent | 4aa4bbc5b51fad9c52998f36d6895c13f0ce9015 (diff) | |
download | fpc-6797b96bff5082a3207848a9fc1325f88cfe4b21.tar.gz |
* CrtOpen, CrtClose, CrtRead, CrtWrite and CrtReturn changed to procedures, instead of functions
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@25506 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/watcom')
-rw-r--r-- | rtl/watcom/crt.pp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/rtl/watcom/crt.pp b/rtl/watcom/crt.pp index 5ec122d199..2cb0da934f 100644 --- a/rtl/watcom/crt.pp +++ b/rtl/watcom/crt.pp @@ -580,7 +580,7 @@ begin end; -Function CrtWrite(var f : textrec):integer; +Procedure CrtWrite(var f : textrec); var i : longint; begin @@ -589,11 +589,10 @@ begin WriteChar(f.buffer[i]); SetScreenCursor(CurrX,CurrY); f.bufpos:=0; - CrtWrite:=0; end; -Function CrtRead(Var F: TextRec): Integer; +Procedure CrtRead(Var F: TextRec); procedure BackSpace; begin @@ -676,24 +675,21 @@ Begin until false; f.bufpos:=0; SetScreenCursor(CurrX,CurrY); - CrtRead:=0; End; -Function CrtReturn(Var F: TextRec): Integer; +Procedure CrtReturn(Var F: TextRec); Begin - CrtReturn:=0; end; -Function CrtClose(Var F: TextRec): Integer; +Procedure CrtClose(Var F: TextRec); Begin F.Mode:=fmClosed; - CrtClose:=0; End; -Function CrtOpen(Var F: TextRec): Integer; +Procedure CrtOpen(Var F: TextRec); Begin If F.Mode=fmOutput Then begin @@ -707,7 +703,6 @@ Begin TextRec(F).FlushFunc:=@CrtReturn; end; TextRec(F).CloseFunc:=@CrtClose; - CrtOpen:=0; End; |