groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Re: grohtml 1.19.2/Win32--troff 'o' Option


From: MARSHALL Keith
Subject: [Groff] Re: grohtml 1.19.2/Win32--troff 'o' Option
Date: Wed, 18 Feb 2004 09:08:44 +0000

>> Thus, we should, perhaps, implement something like
>>
>>    #if defined(_WIN32) && !defined(__CYGWIN__)
>>      if( ! isatty( STDIN_FILENO ) )
>>      {
>>        int drain;
>>        while( read( STDIN_FILENO, &drain, 1 ) == 1 )
>>          ;
>>      }
>>    #endif
>
> This won't work in general since input files can be stacked (.so or
> .mso).  Using input_stack::get() takes care of this.

Ah -- as I said, I hadn't had time to study the existing code, so didn't
appreciate this.  The above was merely an idea, to stimulate the design
discussion.

Just a further thought, however;  since we are principally concerned
with draining input from a pipe, do we need to bother with processing
further stacked input files, after we reach the cleanup_and_exit()
phase in troff?

Best regards,
Keith.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]