mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
8dfb2a1186
This is another major source of unexplained 'void *' parameters throughout the code. In particular, the currently unused testback.c actually gave the wrong pointer type to its internal store of the frontend handle - it cast the input void * to a Terminal *, from which it got implicitly cast back again when calling from_backend, and nobody noticed. Now it uses the right type internally as well as externally.
26 lines
580 B
C
26 lines
580 B
C
/*
|
|
* ldisc.h: defines the Ldisc data structure used by ldisc.c and
|
|
* ldiscucs.c. (Unfortunately it was necessary to split the ldisc
|
|
* module in two, to avoid unnecessarily linking in the Unicode
|
|
* stuff in tools that don't require it.)
|
|
*/
|
|
|
|
#ifndef PUTTY_LDISC_H
|
|
#define PUTTY_LDISC_H
|
|
|
|
struct Ldisc_tag {
|
|
Terminal *term;
|
|
Backend *backend;
|
|
Frontend *frontend;
|
|
|
|
/*
|
|
* Values cached out of conf.
|
|
*/
|
|
int telnet_keyboard, telnet_newline, protocol, localecho, localedit;
|
|
|
|
char *buf;
|
|
int buflen, bufsiz, quotenext;
|
|
};
|
|
|
|
#endif /* PUTTY_LDISC_H */
|