Skip to content
Tcl Source Code Check-in [c5a5c3f411]
Login

Check-in [c5a5c3f411]

Overview
Comment: * 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.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c5a5c3f411996512fd101be94fa70877fc8e1e88
User & Date: dgp on 2005-04-21 20:24:02.000
Other Links: manifest | tags
Context
2005-04-21
20:35
stifle compiler warning check-in: ace1bd5a92 user: dgp tags: trunk
20:24
* generic/tclGet.c: Radical code simplification. Converted Tcl_GetFoo() routine... check-in: c5a5c3f411 user: dgp tags: trunk
15:49
Tcl_GetDoubleFromObj now avoids shimmering away a "wideInt" intrep. check-in: 2ac5b9233d user: dgp tags: trunk
Changes