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: |
c5a5c3f411996512fd101be94fa70877 |
| 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
Modified ChangeLog
from [819c44ec18]
to [eb637f8fcb].
[diff]
Modified generic/tclExecute.c
from [9702a2723c]
to [9ecf06d982].
[diff]
Modified generic/tclGet.c
from [1345888c8c]
to [9483f37821].
[diff]
Modified generic/tclInt.h
from [53d36483b7]
to [237d5a3f4a].
[diff]
Modified generic/tclObj.c
from [84e19eb472]
to [9856f9b198].
[diff]
Modified tests/obj.test
from [53f67e8079]
to [11851c862f].
[diff]