Staging
v0.5.1
https://github.com/python/cpython
Revision 9aebc61ad8e3b0eddd43dc563380025cc2fd8d02 authored by Benjamin Peterson on 26 October 2008, 20:58:53 UTC, committed by Benjamin Peterson on 26 October 2008, 20:58:53 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67030 | benjamin.peterson | 2008-10-26 15:21:13 -0500 (Sun, 26 Oct 2008) | 1 line

  fix __future__ imports when multiple features are given
........
  r67031 | benjamin.peterson | 2008-10-26 15:33:19 -0500 (Sun, 26 Oct 2008) | 1 line

  add forgotten test for r67030
........
1 parent cff882c
Raw File
Tip revision: 9aebc61ad8e3b0eddd43dc563380025cc2fd8d02 authored by Benjamin Peterson on 26 October 2008, 20:58:53 UTC
Merged revisions 67030-67031 via svnmerge from
Tip revision: 9aebc61
intobject.h
/* Integer object interface

   This header files exists to make porting code to Python 3.0 easier. It
   defines aliases from PyInt_* to PyLong_*. Only PyInt_GetMax() and
   PyInt_CheckExact() remain in longobject.h.
 */

#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

#ifdef __cplusplus
}
#endif
#endif /* !Py_INTOBJECT_H */
back to top