mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 13:02:47 -05:00
terminal.c's from_backend() no longer calls term_out(), because
term_out() can in turn call ldisc_send() which calls back to from_backend() when local echo is enabled. This was giving rise to crazy re-entrancy stuff and stack overflows. Instead from_backend() deposits its data in a bufchain which term_out() empties the next time it's called. [originally from svn r1276]
This commit is contained in:
9
putty.h
9
putty.h
@ -93,15 +93,6 @@ typedef HDC Context;
|
||||
|
||||
GLOBAL int rows, cols, savelines;
|
||||
|
||||
#define INBUF_SIZE 2048
|
||||
GLOBAL unsigned char inbuf[INBUF_SIZE];
|
||||
GLOBAL int inbuf_head;
|
||||
|
||||
#define OUTBUF_SIZE 2048
|
||||
#define OUTBUF_MASK (OUTBUF_SIZE-1)
|
||||
GLOBAL unsigned char outbuf[OUTBUF_SIZE];
|
||||
GLOBAL int outbuf_head, outbuf_reap;
|
||||
|
||||
GLOBAL int has_focus;
|
||||
|
||||
GLOBAL int in_vbell;
|
||||
|
Reference in New Issue
Block a user