Adam Naumowicz wrote:
[...] I noticed that the compiler knows nothing about SetTextBuf declared in BP system unit I suppose.
Indeed. GPC's I/O system is different than BP's one. Imitating BP's low-level structures is not what we'd consider compatibility. Since you cannot rely on the contents of the assigned buffer variable anyway, better just drop those calls to `SetTextBuf'.
Having said that, you can write a `SetTextBuf' procedure by yourself: Since you have access to the GPC Run Time System (RTS) you can examine how text file I/O works in GPC and write your own `SetTextBuf'. If it works well, be welcome to send it to us for integration into GPC. :-)
Or maybe the job to make GPC with -fBorlanf-Pascal switch to act like BP on basic stage is not completed ?
The switch does not turn on anything; it just switches off (warns about) GPC features not present in BP and switches off warnings about the use of certain BP misfeatures.
Hope this helps,
Peter