mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
ANSI-fication and Py_PROTO extermination.
This commit is contained in:
parent
ea9cb5aebf
commit
3cf4d2b3ea
10 changed files with 166 additions and 173 deletions
|
@ -20,18 +20,18 @@ let these be any arbitrary python type.
|
|||
*/
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
PyObject *start, *stop, *step;
|
||||
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 Py_PROTO((
|
||||
PyObject* start, PyObject* stop, PyObject* step));
|
||||
DL_IMPORT(int) PySlice_GetIndices Py_PROTO((
|
||||
PySliceObject *r, int length, int *start, int *stop, int *step));
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue