gh-131238: Move pycore_obmalloc.h include to pycore_runtime_structs.h (#131482)

Move pycore_obmalloc.h include from pycore_interp_structs.h to
pycore_runtime_structs.h.

Add also comment explaining the purpose of each include in
pycore_interp_structs.h, pycore_runtime_structs.h and
pycore_structs.h.

Remove <stdbool.h> and <stddef.h> from pycore_structs.h.
This commit is contained in:
Victor Stinner 2025-03-20 00:32:30 +01:00 committed by GitHub
parent a7411025c5
commit 6827c5129c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 40 deletions

View file

@ -10,7 +10,8 @@ extern "C" {
#endif
#include <assert.h>
#include "pycore_structs.h" // _Py_BackoffCounter
#include <stdbool.h>
#include "pycore_structs.h" // _Py_BackoffCounter
/* 16-bit countdown counters using exponential backoff.