mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
d93f7113d1
of PuTTY (terminal, backend, logctx etc) take a `void *' handle passed to them from the frontend, and used as a context for all their callbacks. Most of these point at the frontend structure itself (on platforms where this is meaningful), except that the handle passed to the backend has always pointed at the terminal because from_backend() was implemented in terminal.c. This has finally bitten Unix PuTTY, because both backend and logctx have been passing their respective and very different frontend handles to logevent(), so I've fixed it. from_backend() is now a function supplied by the _frontend_ itself, in all cases, and the frontend handle passed to backends must be the same as that passed to everything else. What was from_backend() in terminal.c is now called term_data(), and the typical implementation of from_backend() in a GUI frontend will just extract the terminal handle from the frontend structure and delegate to that. This appears to work on Unix and Windows, but has most likely broken the Mac build. [originally from svn r3100] |
||
---|---|---|
.. | ||
.cvsignore | ||
gtkcols.c | ||
gtkcols.h | ||
gtkdlg.c | ||
gtkpanel.c | ||
gtkpanel.h | ||
plink.1 | ||
pterm.1 | ||
pterm.c | ||
ptermm.c | ||
pty.c | ||
signal.c | ||
unix.h | ||
ux_x11.c | ||
uxagentc.c | ||
uxcfg.c | ||
uxcons.c | ||
uxmisc.c | ||
uxnet.c | ||
uxnoise.c | ||
uxplink.c | ||
uxprint.c | ||
uxputty.c | ||
uxsel.c | ||
uxstore.c | ||
uxucs.c |