* fhandler.cc (fhandler_base::read): Remove special handling of CTRL-Z.

This commit is contained in:
Christopher Faylor 2001-03-31 21:24:48 +00:00
parent aa38a0227c
commit 0cec322603
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Sat Mar 31 16:23:32 2001 Christopher Faylor <cgf@cygnus.com>
* fhandler.cc (fhandler_base::read): Remove special handling of CTRL-Z.
Sat Mar 31 11:09:00 2001 Corinna Vinschen <corinna@vinschen.de>
* fhandler.h (class fhandler_console): Add members `insert_mode'.

View File

@ -443,7 +443,6 @@ int
fhandler_base::read (void *in_ptr, size_t in_len)
{
int len = (int) in_len;
char *ctrlzpos;
char *ptr = (char *) in_ptr;
int c;
@ -475,6 +474,8 @@ fhandler_base::read (void *in_ptr, size_t in_len)
return copied_chars;
}
#if 0
char *ctrlzpos;
/* Scan buffer for a control-z and shorten the buffer to that length */
ctrlzpos = (char *) memchr ((char *) ptr, 0x1a, copied_chars);
@ -489,6 +490,7 @@ fhandler_base::read (void *in_ptr, size_t in_len)
debug_printf ("returning 0 chars, text mode, CTRL-Z found");
return 0;
}
#endif
/* Scan buffer and turn \r\n into \n */
register char *src = (char *) ptr;