]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Handle save/load of set-typed config items.
authorSimon Tatham <anakin@pobox.com>
Tue, 9 Sep 2014 11:46:07 +0000 (11:46 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 9 Sep 2014 11:46:07 +0000 (11:46 +0000)
commit2e364812da2c307634e0084fed099204a97e0685
tree5933efd0b6d3856f5b17ec7ff3f912a39764043a
parentaa62bce083af31e71b8fee7cd57dd93a21a6cd77
Handle save/load of set-typed config items.

I'm about to introduce a configuration option which is really a _set_
of string values (rather than an ordered list), and I'm going to
represent it in Conf as a string->string map (since that's a data type
we already support) in which every key which exists at all maps to the
empty string.

This change modifies settings.c so that it can write out such options
into the saved session as a comma-separated list of the key strings
only, rather than the form 'string1=,string2=,string3=' which you'd
get if you just used the existing wmap().

(Reading the result back in turns out not to need a code change - the
existing code already does what we want if it's reading a list of
key=value pairs and one of them doesn't have an = sign at all.)

[originally from svn r10217]
settings.c