Files
cpython/Include/intobject.h
Mark Dickinson eb0f95c17f Merged revisions 69517 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69517 | mark.dickinson | 2009-02-11 17:04:37 +0000 (Wed, 11 Feb 2009) | 2 lines

  Issue #4910:  PyNumber_Int is deprecated in 3.0.1; will be removed in 3.1.
........
2009-02-11 17:05:35 +00:00

37 lines
1.1 KiB
C

/* Integer object interface
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.
*/
#ifndef Py_INTOBJECT_H
#define Py_INTOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
#if defined(__GNUC__)
#warning "DeprecationWarning: intobject.h is going to be removed in 3.1"
#elif defined(MS_WINDOWS)
#pragma message("DeprecationWarning: intobject.h is going to be removed in 3.1")
#endif
#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
#define PyNumber_Int PyNumber_Long
#ifdef __cplusplus
}
#endif
#endif /* !Py_INTOBJECT_H */