1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/unix
Simon Tatham a1f3b7a358 Post-release destabilisation! Completely remove the struct type
'Config' in putty.h, which stores all PuTTY's settings and includes an
arbitrary length limit on every single one of those settings which is
stored in string form. In place of it is 'Conf', an opaque data type
everywhere outside the new file conf.c, which stores a list of (key,
value) pairs in which every key contains an integer identifying a
configuration setting, and for some of those integers the key also
contains extra parts (so that, for instance, CONF_environmt is a
string-to-string mapping). Everywhere that a Config was previously
used, a Conf is now; everywhere there was a Config structure copy,
conf_copy() is called; every lookup, adjustment, load and save
operation on a Config has been rewritten; and there's a mechanism for
serialising a Conf into a binary blob and back for use with Duplicate
Session.

User-visible effects of this change _should_ be minimal, though I
don't doubt I've introduced one or two bugs here and there which will
eventually be found. The _intended_ visible effects of this change are
that all arbitrary limits on configuration strings and lists (e.g.
limit on number of port forwardings) should now disappear; that list
boxes in the configuration will now be displayed in a sorted order
rather than the arbitrary order in which they were added to the list
(since the underlying data structure is now a sorted tree234 rather
than an ad-hoc comma-separated string); and one more specific change,
which is that local and dynamic port forwardings on the same port
number are now mutually exclusive in the configuration (putting 'D' in
the key rather than the value was a mistake in the first place).

One other reorganisation as a result of this is that I've moved all
the dialog.c standard handlers (dlg_stdeditbox_handler and friends)
out into config.c, because I can't really justify calling them generic
any more. When they took a pointer to an arbitrary structure type and
the offset of a field within that structure, they were independent of
whether that structure was a Config or something completely different,
but now they really do expect to talk to a Conf, which can _only_ be
used for PuTTY configuration, so I've renamed them all things like
conf_editbox_handler and moved them out of the nominally independent
dialog-box management module into the PuTTY-specific config.c.

[originally from svn r9214]
2011-07-14 18:52:21 +00:00
..
configure.ac Restore the configure check for GTK 1, which I accidentally removed 2010-05-22 14:07:25 +00:00
gtkcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
gtkcols.c Reinstate all the GTK1-specific code under ifdefs, and verify that 2008-04-04 10:56:26 +00:00
gtkcols.h First stab at a GTK layout engine. It's missing all sorts of stuff 2003-03-13 19:52:28 +00:00
gtkdlg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
gtkfont.c Pango-based font handling: combine display of adjacent characters 2009-05-11 08:46:17 +00:00
gtkfont.h Unified font selector dialog box. _Extremely_ unfinished - there's a 2008-03-25 21:49:14 +00:00
gtkwin.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
unix.h Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
ux_x11.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxagentc.c Set FD_CLOEXEC in a little convenience function that does the right thing 2006-12-09 15:44:31 +00:00
uxcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxcons.c Unix console utilities should send prompts to /dev/tty or failing 2010-02-20 19:15:25 +00:00
uxgen.c Missing close() causing resource leak when reading from /dev/random. 2010-09-09 14:36:46 +00:00
uxgss.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxmisc.c Stop attempting to make session logs private on Unix. This was introduced in 2009-02-23 22:40:09 +00:00
uxnet.c More use of sockaddr_union (above and beyond that necessary to remove current 2009-08-06 22:55:15 +00:00
uxnoise.c Fix minor file descriptor leaks. Found by cppcheck, reported by Tim Kosse. 2009-09-16 22:28:20 +00:00
uxplink.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxprint.c Update to r8614: another -D_FORTIFY_SOURCE=2 fix. 2010-02-20 11:21:25 +00:00
uxproxy.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxpterm.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxpty.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxputty.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxsel.c Changed my mind about r7164. Instead of checking for zero flags 2007-01-26 20:00:32 +00:00
uxser.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxsftp.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxsignal.c Rename some of the more stupidly named files in the Unix back end. 2004-12-31 13:02:46 +00:00
uxstore.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxucs.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
xkeysym.c Support for non-ISO-8859-1 X keysyms. So in particular, pterm in a 2003-04-27 11:10:48 +00:00
xpmptcfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpterm.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpucfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmputty.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00