[fpc-devel] StdOut capture for FPC RTL

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Thu Nov 25 10:24:42 CET 2010



On Thu, 25 Nov 2010, Thaddy wrote:

> On 25-11-2010 9:49, Marco van de Voort wrote:
>> solid solution. *without* the rewrites :)
>> IIRC there is a pointer in the filetype that points into the buffer.
>> (bufptr). Just copying that means they still point into the same pointer.
>> _______________________________________________
> Yes, They (input, output err) are vars, not threadvars in system. So whatever 
> thread, they point to the same.

They are threadvars in trunk:

ThreadVar
   ThreadID    : TThreadID;
   { Standard In- and Output }
   ErrOutput,
   Output,
   Input,
   StdOut,
   StdErr      : Text;

Michael.



More information about the fpc-devel mailing list