@@ -54,7 +54,7 @@ Copyright (C) 1994 Steen Lumholt.
54
54
55
55
#if TK_HEX_VERSION >= 0x08050208 && TK_HEX_VERSION < 0x08060000 || \
56
56
TK_HEX_VERSION >= 0x08060200
57
- #define HAVE_LIBTOMMAMTH
57
+ #define HAVE_LIBTOMMATH
58
58
#include <tclTomMath.h>
59
59
#endif
60
60
@@ -965,7 +965,7 @@ static PyType_Spec PyTclObject_Type_spec = {
965
965
#define CHECK_STRING_LENGTH (s )
966
966
#endif
967
967
968
- #ifdef HAVE_LIBTOMMAMTH
968
+ #ifdef HAVE_LIBTOMMATH
969
969
static Tcl_Obj *
970
970
asBignumObj (PyObject * value )
971
971
{
@@ -1045,7 +1045,7 @@ AsObj(PyObject *value)
1045
1045
#endif
1046
1046
/* If there is an overflow in the wideInt conversion,
1047
1047
fall through to bignum handling. */
1048
- #ifdef HAVE_LIBTOMMAMTH
1048
+ #ifdef HAVE_LIBTOMMATH
1049
1049
return asBignumObj (value );
1050
1050
#endif
1051
1051
/* If there is no wideInt or bignum support,
@@ -1167,7 +1167,7 @@ fromWideIntObj(TkappObject *tkapp, Tcl_Obj *value)
1167
1167
return NULL ;
1168
1168
}
1169
1169
1170
- #ifdef HAVE_LIBTOMMAMTH
1170
+ #ifdef HAVE_LIBTOMMATH
1171
1171
static PyObject *
1172
1172
fromBignumObj (TkappObject * tkapp , Tcl_Obj * value )
1173
1173
{
@@ -1247,7 +1247,7 @@ FromObj(TkappObject *tkapp, Tcl_Obj *value)
1247
1247
fall through to bignum handling. */
1248
1248
}
1249
1249
1250
- #ifdef HAVE_LIBTOMMAMTH
1250
+ #ifdef HAVE_LIBTOMMATH
1251
1251
if (value -> typePtr == tkapp -> IntType ||
1252
1252
value -> typePtr == tkapp -> WideIntType ||
1253
1253
value -> typePtr == tkapp -> BignumType ) {
@@ -1300,7 +1300,7 @@ FromObj(TkappObject *tkapp, Tcl_Obj *value)
1300
1300
}
1301
1301
#endif
1302
1302
1303
- #ifdef HAVE_LIBTOMMAMTH
1303
+ #ifdef HAVE_LIBTOMMATH
1304
1304
if (tkapp -> BignumType == NULL &&
1305
1305
strcmp (value -> typePtr -> name , "bignum" ) == 0 ) {
1306
1306
/* bignum type is not registered in Tcl */
@@ -2001,7 +2001,7 @@ _tkinter_tkapp_getint(TkappObject *self, PyObject *arg)
2001
2001
Prefer bignum because Tcl_GetWideIntFromObj returns ambiguous result for
2002
2002
value in ranges -2**64..-2**63-1 and 2**63..2**64-1 (on 32-bit platform).
2003
2003
*/
2004
- #ifdef HAVE_LIBTOMMAMTH
2004
+ #ifdef HAVE_LIBTOMMATH
2005
2005
result = fromBignumObj (self , value );
2006
2006
#else
2007
2007
result = fromWideIntObj (self , value );
0 commit comments