[fpc-devel] Output flush on pipes

Michael Van Canneyt michael at freepascal.org
Sun May 14 11:13:43 CEST 2006



On Sun, 14 May 2006, Daniƫl Mantione wrote:

> 
> 
> Op Sun, 14 May 2006, schreef Martin Schreiber:
> 
> > Since some time FPC doesn't  flush output on pipes after writeln.
> > On linux I can use a pseudo terminal, what can I do on win32 to get flushed 
> > output from FPC into the message window of MSEide?
> 
> It is strongly recommended against to parse the compiler output, as it is 
> designed for humans, not computers. The formatting of the compiler output 
> can therefore change in time and can also be configured by the user in any 
> language. Some people are doing it anyway, like Lazarus.
> 
> The compiler has an interface designed for computers and that is through 
> the compiler and comphook units. This allows you to retrieve the messages 
> neatly. If you want process separation, please write a wrapper that puts 
> the messages in a computer friendly way, and we'll include it in FPC.

We could do this ourselves by assigning a unique number to each error.
(and keeping these numbers)

Michael.


More information about the fpc-devel mailing list