mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Moved misplaced functions to the section for C API functions.
This commit is contained in:
parent
3840b2ac67
commit
3625af5f21
1 changed files with 12 additions and 12 deletions
|
|
@ -1116,18 +1116,6 @@ frozenset_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
return emptyfrozenset;
|
return emptyfrozenset;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
PySet_ClearFreeList(void)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
PySet_Fini(void)
|
|
||||||
{
|
|
||||||
Py_CLEAR(emptyfrozenset);
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
set_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
set_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
{
|
{
|
||||||
|
|
@ -2338,6 +2326,18 @@ PySet_Add(PyObject *anyset, PyObject *key)
|
||||||
return set_add_key((PySetObject *)anyset, key);
|
return set_add_key((PySetObject *)anyset, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
PySet_ClearFreeList(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
PySet_Fini(void)
|
||||||
|
{
|
||||||
|
Py_CLEAR(emptyfrozenset);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
_PySet_NextEntry(PyObject *set, Py_ssize_t *pos, PyObject **key, Py_hash_t *hash)
|
_PySet_NextEntry(PyObject *set, Py_ssize_t *pos, PyObject **key, Py_hash_t *hash)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue