summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2005-04-21 20:24:02 (GMT)
committerdgp@users.sourceforge.net <dgp>2005-04-21 20:24:02 (GMT)
commit93060423c9eb90ea70e08983040659288ac18ec0 (patch)
treed1b5923569a757d01be4827253f687dbd07a8163 /generic/tclBasic.c
parent7e2d950c7fa4e92443660257b73bf5625fb8225a (diff)
downloadtcl-93060423c9eb90ea70e08983040659288ac18ec0.zip
tcl-93060423c9eb90ea70e08983040659288ac18ec0.tar.gz
tcl-93060423c9eb90ea70e08983040659288ac18ec0.tar.bz2
* generic/tclGet.c: Radical code simplification. Converted
Tcl_GetFoo() routines into wrappers around Tcl_GetFooFromObj(). Reduces code duplication, and the resulting potential for inconsistency. * generic/tclObj.c: Several changes: - Fixed Tcl_GetBooleanFromObj to agree with its documentation and with Tcl_GetBoolean, accepting only "0" and "1" and not other numeric strings. [Bug 1187123] - Added new private routine TclGetTruthValueFromObj to perform the more permissive conversion of numeric values to boolean that is needed by the [expr] machinery. * generic/tclInt.h (TclGetTruthValueFromObj): New routine. * generic/tclExecute.c: Updated callers to call new routine. * tests/obj.test: Corrected bad tests that actually expected values like "47" and "0xac" to be accepted as booleans.
Diffstat (limited to 'generic/tclBasic.c')
0 files changed, 0 insertions, 0 deletions