diff options
Diffstat (limited to 'Include/internal/pycore_setobject.h')
| -rw-r--r-- | Include/internal/pycore_setobject.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Include/internal/pycore_setobject.h b/Include/internal/pycore_setobject.h new file mode 100644 index 0000000..96f9aea --- /dev/null +++ b/Include/internal/pycore_setobject.h @@ -0,0 +1,25 @@ +#ifndef Py_INTERNAL_SETOBJECT_H +#define Py_INTERNAL_SETOBJECT_H +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef Py_BUILD_CORE +# error "this header requires Py_BUILD_CORE define" +#endif + +// _pickle shared extension uses _PySet_NextEntry() and _PySet_Update() +PyAPI_FUNC(int) _PySet_NextEntry( + PyObject *set, + Py_ssize_t *pos, + PyObject **key, + Py_hash_t *hash); +PyAPI_FUNC(int) _PySet_Update(PyObject *set, PyObject *iterable); + +// Export _PySet_Dummy for the gdb plugin's benefit +PyAPI_DATA(PyObject *) _PySet_Dummy; + +#ifdef __cplusplus +} +#endif +#endif // !Py_INTERNAL_SETOBJECT_H |
