mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-106320: Move private _PySet API to the internal API (#107041)
* Add pycore_setobject.h header file. * Move the following API to the internal C API: * _PySet_Dummy * _PySet_NextEntry() * _PySet_Update()
This commit is contained in:
parent
c92ef6fe0e
commit
5e4af2a3e9
18 changed files with 53 additions and 16 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "pycore_interp.h" // PyInterpreterState.co_extra_freefuncs
|
||||
#include "pycore_opcode.h" // _PyOpcode_Deopt
|
||||
#include "pycore_pystate.h" // _PyInterpreterState_GET()
|
||||
#include "pycore_setobject.h" // _PySet_NextEntry()
|
||||
#include "pycore_tuple.h" // _PyTuple_ITEMS()
|
||||
#include "clinic/codeobject.c.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ As a consequence of this, split keys have a maximum size of 16.
|
|||
#include "pycore_object.h" // _PyObject_GC_TRACK()
|
||||
#include "pycore_pyerrors.h" // _PyErr_GetRaisedException()
|
||||
#include "pycore_pystate.h" // _PyThreadState_GET()
|
||||
#include "pycore_setobject.h" // _PySet_NextEntry()
|
||||
#include "stringlib/eq.h" // unicode_eq()
|
||||
|
||||
#include <stdbool.h>
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_modsupport.h" // _PyArg_NoKwnames()
|
||||
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
|
||||
#include "pycore_setobject.h" // _PySet_NextEntry() definition
|
||||
#include <stddef.h> // offsetof()
|
||||
|
||||
/* Object used as dummy key to fill deleted entries */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue