| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,8 +65,3 @@ static inline Py_ssize_t PySet_GET_SIZE(PyObject *so) { | |||
| 65 | 65 | return _PySet_CAST(so)->used; | |
| 66 | 66 | } | |
| 67 | 67 | #define PySet_GET_SIZE(so) PySet_GET_SIZE(_PyObject_CAST(so)) | |
| 68 | - | ||
| 69 | - PyAPI_DATA(PyObject *) _PySet_Dummy; | ||
| 70 | - | ||
| 71 | - PyAPI_FUNC(int) _PySet_NextEntry(PyObject *set, Py_ssize_t *pos, PyObject **key, Py_hash_t *hash); | ||
| 72 | - PyAPI_FUNC(int) _PySet_Update(PyObject *set, PyObject *iterable); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -95,4 +95,4 @@ PyAPI_FUNC(int) _PyMem_SetupAllocators(PyMemAllocatorName allocator); | |||
| 95 | 95 | #ifdef __cplusplus | |
| 96 | 96 | } | |
| 97 | 97 | #endif | |
| 98 | - #endif /* !Py_INTERNAL_PYMEM_H */ | ||
| 98 | + #endif // !Py_INTERNAL_PYMEM_H | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,25 @@ | |||
| 1 | + #ifndef Py_INTERNAL_SETOBJECT_H | ||
| 2 | + #define Py_INTERNAL_SETOBJECT_H | ||
| 3 | + #ifdef __cplusplus | ||
| 4 | + extern "C" { | ||
| 5 | + #endif | ||
| 6 | + | ||
| 7 | + #ifndef Py_BUILD_CORE | ||
| 8 | + # error "this header requires Py_BUILD_CORE define" | ||
| 9 | + #endif | ||
| 10 | + | ||
| 11 | + // _pickle shared extension uses _PySet_NextEntry() and _PySet_Update() | ||
| 12 | + PyAPI_FUNC(int) _PySet_NextEntry( | ||
| 13 | + PyObject *set, | ||
| 14 | + Py_ssize_t *pos, | ||
| 15 | + PyObject **key, | ||
| 16 | + Py_hash_t *hash); | ||
| 17 | + PyAPI_FUNC(int) _PySet_Update(PyObject *set, PyObject *iterable); | ||
| 18 | + | ||
| 19 | + // Export _PySet_Dummy for the gdb plugin's benefit | ||
| 20 | + PyAPI_DATA(PyObject *) _PySet_Dummy; | ||
| 21 | + | ||
| 22 | + #ifdef __cplusplus | ||
| 23 | + } | ||
| 24 | + #endif | ||
| 25 | + #endif // !Py_INTERNAL_SETOBJECT_H | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1798,6 +1798,7 @@ PYTHON_HEADERS= \ | |||
| 1798 | 1798 | $(srcdir)/Include/internal/pycore_runtime.h \ | |
| 1799 | 1799 | $(srcdir)/Include/internal/pycore_runtime_init_generated.h \ | |
| 1800 | 1800 | $(srcdir)/Include/internal/pycore_runtime_init.h \ | |
| 1801 | + $(srcdir)/Include/internal/pycore_setobject.h \ | ||
| 1801 | 1802 | $(srcdir)/Include/internal/pycore_signal.h \ | |
| 1802 | 1803 | $(srcdir)/Include/internal/pycore_sliceobject.h \ | |
| 1803 | 1804 | $(srcdir)/Include/internal/pycore_strhex.h \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,7 @@ | |||
| 7 | 7 | #include "pycore_moduleobject.h" // _PyModule_GetState() | |
| 8 | 8 | #include "pycore_object.h" // _PyType_GetSubclasses() | |
| 9 | 9 | #include "pycore_runtime.h" // _Py_ID() | |
| 10 | + #include "pycore_setobject.h" // _PySet_NextEntry() | ||
| 10 | 11 | #include "pycore_typeobject.h" // _PyType_GetMRO() | |
| 11 | 12 | #include "pycore_weakref.h" // _PyWeakref_GET_REF() | |
| 12 | 13 | #include "clinic/_abc.c.h" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,7 @@ | |||
| 15 | 15 | #include "pycore_object.h" // _PyNone_Type | |
| 16 | 16 | #include "pycore_pystate.h" // _PyThreadState_GET() | |
| 17 | 17 | #include "pycore_runtime.h" // _Py_ID() | |
| 18 | + #include "pycore_setobject.h" // _PySet_NextEntry() | ||
| 18 | 19 | #include "structmember.h" // PyMemberDef | |
| 19 | 20 | ||
| 20 | 21 | #include <stdlib.h> // strtol() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,7 @@ | |||
| 8 | 8 | #include "pycore_interp.h" // PyInterpreterState.co_extra_freefuncs | |
| 9 | 9 | #include "pycore_opcode.h" // _PyOpcode_Deopt | |
| 10 | 10 | #include "pycore_pystate.h" // _PyInterpreterState_GET() | |
| 11 | + #include "pycore_setobject.h" // _PySet_NextEntry() | ||
| 11 | 12 | #include "pycore_tuple.h" // _PyTuple_ITEMS() | |
| 12 | 13 | #include "clinic/codeobject.c.h" | |
| 13 | 14 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -121,6 +121,7 @@ As a consequence of this, split keys have a maximum size of 16. | |||
| 121 | 121 | #include "pycore_object.h" // _PyObject_GC_TRACK() | |
| 122 | 122 | #include "pycore_pyerrors.h" // _PyErr_GetRaisedException() | |
| 123 | 123 | #include "pycore_pystate.h" // _PyThreadState_GET() | |
| 124 | + #include "pycore_setobject.h" // _PySet_NextEntry() | ||
| 124 | 125 | #include "stringlib/eq.h" // unicode_eq() | |
| 125 | 126 | ||
| 126 | 127 | #include <stdbool.h> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,6 +34,7 @@ | |||
| 34 | 34 | #include "Python.h" | |
| 35 | 35 | #include "pycore_modsupport.h" // _PyArg_NoKwnames() | |
| 36 | 36 | #include "pycore_object.h" // _PyObject_GC_UNTRACK() | |
| 37 | + #include "pycore_setobject.h" // _PySet_NextEntry() definition | ||
| 37 | 38 | #include <stddef.h> // offsetof() | |
| 38 | 39 | ||
| 39 | 40 | /* Object used as dummy key to fill deleted entries */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -261,6 +261,7 @@ | |||
| 261 | 261 | <ClInclude Include="..\Include\internal\pycore_runtime.h" /> | |
| 262 | 262 | <ClInclude Include="..\Include\internal\pycore_runtime_init.h" /> | |
| 263 | 263 | <ClInclude Include="..\Include\internal\pycore_runtime_init_generated.h" /> | |
| 264 | + <ClInclude Include="..\Include\internal\pycore_setobject.h" /> | ||
| 264 | 265 | <ClInclude Include="..\Include\internal\pycore_signal.h" /> | |
| 265 | 266 | <ClInclude Include="..\Include\internal\pycore_sliceobject.h" /> | |
| 266 | 267 | <ClInclude Include="..\Include\internal\pycore_strhex.h" /> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments