@@ -29,23 +29,24 @@ typedef struct {
2929PyAPI_DATA(PyTypeObject) PyInt_Type;
3030*/
3131
32- #define PyInt_Check (op ) PyLong_Check(op)
3332#define PyInt_CheckExact (op ) (PyLong_CheckExact(op) && _PyLong_FitsInLong(op))
3433
35- #define PyInt_FromString PyLong_FromString
36- #define PyInt_FromUnicode PyLong_FromUnicode
37- #define PyInt_FromLong PyLong_FromLong
38- #define PyInt_FromSize_t PyLong_FromSize_t
39- #define PyInt_FromSsize_t PyLong_FromSsize_t
40- #define PyInt_AsLong PyLong_AsLong
41- #define PyInt_AsSsize_t PyLong_AsSsize_t
42- #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
43- #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
34+ #ifdef 0
35+ # define PyInt_Check (op ) PyLong_Check(op)
36+ # define PyInt_FromString PyLong_FromString
37+ # define PyInt_FromUnicode PyLong_FromUnicode
38+ # define PyInt_FromLong PyLong_FromLong
39+ # define PyInt_FromSize_t PyLong_FromSize_t
40+ # define PyInt_FromSsize_t PyLong_FromSsize_t
41+ # define PyInt_AsLong PyLong_AsLong
42+ # define PyInt_AsSsize_t PyLong_AsSsize_t
43+ # define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
44+ # define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
45+ # define PyInt_AS_LONG PyLong_AS_LONG
46+ #endif
4447
4548PyAPI_FUNC (long ) PyInt_GetMax (void );
4649
47- #define PyInt_AS_LONG (op ) PyLong_AsLong(op)
48-
4950/* These aren't really part of the Int object, but they're handy; the protos
5051 * are necessary for systems that need the magic of PyAPI_FUNC.
5152 */
0 commit comments