summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-23 14:15:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-23 14:15:14 (GMT)
commita05551fb2f2d4f0a8fe3bc93e2afdd7ad0227a7c (patch)
tree805c4003273af068deded070c54d4f0cfa0a3f27 /generic/tclStrToD.c
parent07ba32a73f1d629e2d4eedadcbed4b165dbcab7f (diff)
parent7e4b7690f3583ba3196f7e17fec6c8113170ae4b (diff)
downloadtcl-a05551fb2f2d4f0a8fe3bc93e2afdd7ad0227a7c.zip
tcl-a05551fb2f2d4f0a8fe3bc93e2afdd7ad0227a7c.tar.gz
tcl-a05551fb2f2d4f0a8fe3bc93e2afdd7ad0227a7c.tar.bz2
Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj.
Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication. Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as TCL_WIDE_INT_IS_LONG
Diffstat (limited to 'generic/tclStrToD.c')
-rwxr-xr-xgeneric/tclStrToD.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c
index 2d534a68..883e2ea 100755
--- a/generic/tclStrToD.c
+++ b/generic/tclStrToD.c
@@ -1239,7 +1239,7 @@ TclParseNumber(
if (!octalSignificandOverflow) {
if (octalSignificandWide >
(Tcl_WideUInt)(((~(unsigned long)0) >> 1) + signum)) {
-#ifndef NO_WIDE_TYPE
+#ifndef TCL_WIDE_INT_IS_LONG
if (octalSignificandWide <= (MOST_BITS + signum)) {
objPtr->typePtr = &tclWideIntType;
if (signum) {
@@ -1286,7 +1286,7 @@ TclParseNumber(
if (!significandOverflow) {
if (significandWide >
(Tcl_WideUInt)(((~(unsigned long)0) >> 1) + signum)) {
-#ifndef NO_WIDE_TYPE
+#ifndef TCL_WIDE_INT_IS_LONG
if (significandWide <= MOST_BITS+signum) {
objPtr->typePtr = &tclWideIntType;
if (signum) {