diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-12-21 12:59:30 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-12-21 12:59:30 (GMT) |
commit | aef9317c2b61b05b7e2c172f1cb28a3dc3988829 (patch) | |
tree | 6205a7c7efe574d1e320fe1681ea1f171892e320 /generic/tclGet.c | |
parent | 9adc1d86b363addf539bedb62a8d19763f14d87c (diff) | |
download | tcl-aef9317c2b61b05b7e2c172f1cb28a3dc3988829.zip tcl-aef9317c2b61b05b7e2c172f1cb28a3dc3988829.tar.gz tcl-aef9317c2b61b05b7e2c172f1cb28a3dc3988829.tar.bz2 |
Experimental (partial) fix for [39f6304c2e90549c209cd11a7920dc9921b9f48e|39f6304c2e]: Tcl_LinkVar is not tolerant to minus, plus, dot.
This handled minus and plus only, not other possible errors. Will need a TIP, because the boolean type is extended to consider '-', '+' and 'o' (necessary for being able to type 'on' or 'off') as valid booleans
Dot, and integer prefixes (such as 0x) not handled yet, should be handled completely different.
Diffstat (limited to 'generic/tclGet.c')
-rw-r--r-- | generic/tclGet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclGet.c b/generic/tclGet.c index 97e8c7b..8898a0f 100644 --- a/generic/tclGet.c +++ b/generic/tclGet.c @@ -125,7 +125,7 @@ int Tcl_GetBoolean( Tcl_Interp *interp, /* Interpreter used for error reporting. */ const char *src, /* String containing one of the boolean values - * 1, 0, true, false, yes, no, on, off. */ + * 1, 0, +, -, true, false, yes, no, on, off. */ int *boolPtr) /* Place to store converted result, which will * be 0 or 1. */ { |