From 5ae4e609229f4f6627a9d5d6e3a9aad6b61fbbec Mon Sep 17 00:00:00 2001 From: Kevin B Kenny Date: Mon, 27 Sep 2004 19:59:31 +0000 Subject: removed some workarounds for Bug 868489 --- ChangeLog | 5 ++ generic/tclCmdAH.c | 15 +---- generic/tclDate.c | 184 +++++++++++++++++++++++++++-------------------------- generic/tclObj.c | 8 +-- 4 files changed, 103 insertions(+), 109 deletions(-) diff --git a/ChangeLog b/ChangeLog index 87fdebf..5f8cbea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -60,6 +60,11 @@ eliminating any need for mutex protection around [clock scan]. Also, changed the Makefiles so that 'make gendate' is available on Windows as well as Unix. + + * generic/tclCmdAH.c (Tcl_FormatObjCmd): Removed some grubby + * generic/tclObj.c (SetBooleanFromAny): work-around code + that was needed only + because of Bug 868489. 2004-09-27 Vince Darley diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c index fdcdac5..b1c1177 100644 --- a/generic/tclCmdAH.c +++ b/generic/tclCmdAH.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdAH.c,v 1.48 2004/09/23 15:20:52 dgp Exp $ + * RCS: @(#) $Id: tclCmdAH.c,v 1.49 2004/09/27 19:59:36 kennykb Exp $ */ #include "tclInt.h" @@ -2229,18 +2229,7 @@ Tcl_FormatObjCmd(dummy, interp, objc, objv) size = 40 + precision; break; } - if (objv[objIndex]->typePtr == &tclWideIntType) { - /* Operation won't fail; we're typed! */ - Tcl_GetWideIntFromObj(NULL, objv[objIndex], &wideValue); - if (wideValue>ULONG_MAX || wideValueinternalRep.doubleValue != 0.0); goto goodBoolean; } else if (objPtr->typePtr == &tclWideIntType) { -#ifdef TCL_WIDE_INT_IS_LONG - newBool = (objPtr->internalRep.longValue != 0); -#else /* !TCL_WIDE_INT_IS_LONG */ - newBool = (objPtr->internalRep.wideValue != Tcl_LongAsWide(0)); -#endif /* TCL_WIDE_INT_IS_LONG */ + newBool = (objPtr->internalRep.wideValue != 0); goto goodBoolean; } -- cgit v0.12