Staging
v0.5.1
https://github.com/python/cpython
Revision 58e64a82eeec12711a55349f86ced990989a360b authored by Vladimir Marangozov on 03 September 2000, 23:47:08 UTC, committed by Vladimir Marangozov on 03 September 2000, 23:47:08 UTC
and this breaks the AIX build with an INT_MAX redefinition error.
"config.h" is included in pgenheaders.h, so moving this down fixes the
problem.
1 parent 1d62f49
Raw File
Tip revision: 58e64a82eeec12711a55349f86ced990989a360b authored by Vladimir Marangozov on 03 September 2000, 23:47:08 UTC
Move down the INT_MAX logic, because HAVE_LIMITS_H was always undefined
Tip revision: 58e64a8
sliceobject.h
#ifndef Py_SLICEOBJECT_H
#define Py_SLICEOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

/* The unique ellipsis object "..." */

extern DL_IMPORT(PyObject) _Py_EllipsisObject; /* Don't use this directly */

#define Py_Ellipsis (&_Py_EllipsisObject)

/* Slice object interface */

/*

A slice object containing start, stop, and step data members (the
names are from range).  After much talk with Guido, it was decided to
let these be any arbitrary python type. 
*/

typedef struct {
    PyObject_HEAD
    PyObject *start, *stop, *step;
} PySliceObject;

extern DL_IMPORT(PyTypeObject) PySlice_Type;

#define PySlice_Check(op) ((op)->ob_type == &PySlice_Type)

DL_IMPORT(PyObject *) PySlice_New(PyObject* start, PyObject* stop,
                                  PyObject* step);
DL_IMPORT(int) PySlice_GetIndices(PySliceObject *r, int length,
                                  int *start, int *stop, int *step);

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