mirror of
https://github.com/python/cpython.git
synced 2025-11-29 06:22:10 +00:00
Wrap with extern "C". Fixes bug #428419.
Also protect against multiple inclusion.
This commit is contained in:
parent
e24fef0dd2
commit
3d10b34b9c
1 changed files with 11 additions and 0 deletions
|
|
@ -1,6 +1,12 @@
|
||||||
|
|
||||||
/* Range object interface */
|
/* Range object interface */
|
||||||
|
|
||||||
|
#ifndef Py_RANGEOBJECT_H
|
||||||
|
#define Py_RANGEOBJECT_H
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
A range object represents an integer range. This is an immutable object;
|
A range object represents an integer range. This is an immutable object;
|
||||||
a range cannot change its value after creation.
|
a range cannot change its value after creation.
|
||||||
|
|
@ -14,3 +20,8 @@ extern DL_IMPORT(PyTypeObject) PyRange_Type;
|
||||||
#define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
|
#define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
|
||||||
|
|
||||||
extern DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);
|
extern DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif /* !Py_RANGEOBJECT_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue