This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] line_edit return value


On Sat, Nov 30, 2002 at 05:26:03PM -0500, Christopher Faylor wrote:
> P.S.  Btw, did you notice that the return value for accept_input
> is not being used, AFAICT?  I had always wanted to do something
> with that but it never seemed to be necessary.

Yep, about 5 or 6 patches from now, I am thinking of using 
the return value to signal that accept_input didn't work. 

Here's the next patch.  It shouldn't change the code behavior at all
but lays some ground work for having line_edit return an error condition.

Thanks,
-steve

ChangeLog entry
2002-11-30 Steve Osborn <bub@io.com>
	* fhandler.h (fhandler_termios::line_edit): Changed return
	  from an int to an enum to allow the function to return an
	  error.
	* fhandler_console.cc (fhandler_console::read): Updated the
	  line_edit call to use the new enum.
	* fhandler_termios.cc (fhandler_termios::line_edit): Changed 
	  return from an int to an enum to allow the function to return an
          error.  Put put_readahead call before doecho for future patch. 
	* fhandler_tty.cc (fhandler_pty_master::write): Changed to 
	  call line_edit one character at a time, and stop if an error
	  occurs.

Attachment: tty_patch.2
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]