diff options
author | msofer <msofer@noemail.net> | 2007-11-11 19:32:12 (GMT) |
---|---|---|
committer | msofer <msofer@noemail.net> | 2007-11-11 19:32:12 (GMT) |
commit | dc5842e7951251c1e4d46b219016b95f59084beb (patch) | |
tree | 482aff3ad09aaa3302505eb6f172cd9d2e770ff0 /generic/tclScan.c | |
parent | 41a98d8e400f2ebed65ecca655a318b73070518d (diff) | |
download | tcl-dc5842e7951251c1e4d46b219016b95f59084beb.zip tcl-dc5842e7951251c1e4d46b219016b95f59084beb.tar.gz tcl-dc5842e7951251c1e4d46b219016b95f59084beb.tar.bz2 |
[Patch 1830038]: Increased usage of macros to detect and take advantage of objTypes.
FossilOrigin-Name: 11e8f3151249a669790af1ab8897b1451aa5b47b
Diffstat (limited to 'generic/tclScan.c')
-rw-r--r-- | generic/tclScan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclScan.c b/generic/tclScan.c index aa1fe75..8aa7c38 100644 --- a/generic/tclScan.c +++ b/generic/tclScan.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclScan.c,v 1.25 2007/06/22 20:42:24 dgp Exp $ + * RCS: @(#) $Id: tclScan.c,v 1.26 2007/11/11 19:32:17 msofer Exp $ */ #include "tclInt.h" @@ -899,7 +899,7 @@ Tcl_ScanObjCmd( if (flags & SCAN_LONGER) { if (Tcl_GetWideIntFromObj(NULL, objPtr, &wideValue) != TCL_OK) { wideValue = ~(Tcl_WideUInt)0 >> 1; /* WIDE_MAX */ - if (Tcl_GetString(objPtr)[0] == '-') { + if (TclGetString(objPtr)[0] == '-') { wideValue++; /* WIDE_MAX + 1 = WIDE_MIN */ } } @@ -911,8 +911,8 @@ Tcl_ScanObjCmd( Tcl_SetWideIntObj(objPtr, wideValue); } } else if (!(flags & SCAN_BIG)) { - if (Tcl_GetLongFromObj(NULL, objPtr, &value) != TCL_OK) { - if (Tcl_GetString(objPtr)[0] == '-') { + if (TclGetLongFromObj(NULL, objPtr, &value) != TCL_OK) { + if (TclGetString(objPtr)[0] == '-') { value = LONG_MIN; } else { value = LONG_MAX; |