2023-07-22 12:04:34 -03:00
|
|
|
#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
|
|
|
|
|
2024-04-18 12:18:22 -03:00
|
|
|
// Export for '_abc' shared extension
|
2023-07-22 12:04:34 -03:00
|
|
|
PyAPI_FUNC(int) _PySet_NextEntry(
|
|
|
|
PyObject *set,
|
|
|
|
Py_ssize_t *pos,
|
|
|
|
PyObject **key,
|
|
|
|
Py_hash_t *hash);
|
2023-07-24 22:49:28 -03:00
|
|
|
|
2024-04-18 12:18:22 -03:00
|
|
|
// Export for '_pickle' shared extension
|
|
|
|
PyAPI_FUNC(int) _PySet_NextEntryRef(
|
|
|
|
PyObject *set,
|
|
|
|
Py_ssize_t *pos,
|
|
|
|
PyObject **key,
|
|
|
|
Py_hash_t *hash);
|
|
|
|
|
2023-08-24 12:40:56 -03:00
|
|
|
// Export for '_pickle' shared extension
|
2023-07-22 12:04:34 -03:00
|
|
|
PyAPI_FUNC(int) _PySet_Update(PyObject *set, PyObject *iterable);
|
|
|
|
|
2023-08-24 12:40:56 -03:00
|
|
|
// Export for the gdb plugin's (python-gdb.py) benefit
|
2023-07-22 12:04:34 -03:00
|
|
|
PyAPI_DATA(PyObject *) _PySet_Dummy;
|
|
|
|
|
2024-03-06 15:30:11 -04:00
|
|
|
PyAPI_FUNC(int) _PySet_Contains(PySetObject *so, PyObject *key);
|
|
|
|
|
2023-07-22 12:04:34 -03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif // !Py_INTERNAL_SETOBJECT_H
|