2007-12-02 12:52:32 -04:00
|
|
|
/* Integer object interface
|
1991-02-19 08:39:46 -04:00
|
|
|
|
2009-02-11 13:04:37 -04:00
|
|
|
This header file exists to make porting code to Python 3.0 easier. It
|
|
|
|
defines aliases from PyInt_* to PyLong_* and an alias from
|
|
|
|
PyNumber_Int to PyNumber_Long.
|
2007-12-02 12:52:32 -04:00
|
|
|
*/
|
1990-10-14 09:07:46 -03:00
|
|
|
|
2000-07-08 21:20:36 -03:00
|
|
|
#ifndef Py_INTOBJECT_H
|
|
|
|
#define Py_INTOBJECT_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2008-10-07 18:27:43 -03:00
|
|
|
#if defined(__GNUC__)
|
2007-12-02 12:52:32 -04:00
|
|
|
#warning "DeprecationWarning: intobject.h is going to be removed in 3.1"
|
2008-10-07 18:27:43 -03:00
|
|
|
#elif defined(MS_WINDOWS)
|
|
|
|
#pragma message("DeprecationWarning: intobject.h is going to be removed in 3.1")
|
|
|
|
#endif
|
2007-12-02 12:52:32 -04:00
|
|
|
|
|
|
|
#define PyInt_Check(op) PyLong_Check(op)
|
|
|
|
#define PyInt_FromString PyLong_FromString
|
|
|
|
#define PyInt_FromUnicode PyLong_FromUnicode
|
|
|
|
#define PyInt_FromLong PyLong_FromLong
|
|
|
|
#define PyInt_FromSize_t PyLong_FromSize_t
|
|
|
|
#define PyInt_FromSsize_t PyLong_FromSsize_t
|
|
|
|
#define PyInt_AsLong PyLong_AsLong
|
|
|
|
#define PyInt_AsSsize_t PyLong_AsSsize_t
|
|
|
|
#define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
|
|
|
|
#define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
|
|
|
|
#define PyInt_AS_LONG PyLong_AS_LONG
|
2009-02-11 13:04:37 -04:00
|
|
|
#define PyNumber_Int PyNumber_Long
|
1998-12-10 12:54:17 -04:00
|
|
|
|
1993-07-28 06:05:47 -03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_INTOBJECT_H */
|