Skip to content

Commit c65ae26

Browse files
authored
gh-111968: Unify naming scheme for freelist (gh-113919)
1 parent 9d33c23 commit c65ae26

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Include/internal/pycore_freelist.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct _Py_float_state {
3636

3737
typedef struct _Py_freelist_state {
3838
struct _Py_float_state float_state;
39-
struct _Py_list_state list;
39+
struct _Py_list_state list_state;
4040
} _PyFreeListState;
4141

4242
#ifdef __cplusplus

Objects/listobject.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ get_list_state(void)
2626
{
2727
_PyFreeListState *state = _PyFreeListState_GET();
2828
assert(state != NULL);
29-
return &state->list;
29+
return &state->list_state;
3030
}
3131
#endif
3232

@@ -124,7 +124,7 @@ void
124124
_PyList_ClearFreeList(_PyFreeListState *freelist_state, int is_finalization)
125125
{
126126
#if PyList_MAXFREELIST > 0
127-
struct _Py_list_state *state = &freelist_state->list;
127+
struct _Py_list_state *state = &freelist_state->list_state;
128128
while (state->numfree > 0) {
129129
PyListObject *op = state->free_list[--state->numfree];
130130
assert(PyList_CheckExact(op));

0 commit comments

Comments
 (0)