Implement less kludgy way for conditional string options
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 30 Nov 2016 13:46:07 +0000 (14:46 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 13 Jan 2017 15:39:24 +0000 (16:39 +0100)
commit4223777243f0d5c358c15307b5131d94a8030a3d
tree24df7ea7b22d142a241705b07baba4a61b58f135
parent43ca8ade023eaa6b6fd2fac6b2aeb1a6ea69287f
Implement less kludgy way for conditional string options

A new option -replace can now define a string, and when the existing value
of the next encountered string option does not exactly match that, the
latter is ignored. The @@@@@ kludge for conditionally replacing empty
strings is removed, as this can now be achieved through -replace "".
The value of -replace is reset to NULL (not ""!) as soon as it has been
used for comparison, irrespective of the result. This makes -replace a
'hyper-volatile' option.
 The conditional setting of UCI2WB as -uxiAdapter in xboard.conf is now
changed to use this mechanism.
args.h
xboard.conf