Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc65ae26

Browse files
authored
gh-111968: Unify naming scheme for freelist (gh-113919)
1 parent9d33c23 commitc65ae26

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎Include/internal/pycore_freelist.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct _Py_float_state {
3636

3737
typedefstruct_Py_freelist_state {
3838
struct_Py_float_statefloat_state;
39-
struct_Py_list_statelist;
39+
struct_Py_list_statelist_state;
4040
}_PyFreeListState;
4141

4242
#ifdef__cplusplus

‎Objects/listobject.c‎

Lines changed: 2 additions & 2 deletions
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,intis_finalization)
125125
{
126126
#ifPyList_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)

[8]ページ先頭

©2009-2025 Movatter.jp