From 2ebc5ce42a8a9e047e790aefbf9a94811569b2b6 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Thu, 7 Sep 2017 23:51:28 -0600 Subject: bpo-30860: Consolidate stateful runtime globals. (#3397) * group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py). --- Objects/memoryobject.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Objects/memoryobject.c') diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index 1b95af2d4a..ccf45ffc58 100644 --- a/Objects/memoryobject.c +++ b/Objects/memoryobject.c @@ -1,6 +1,8 @@ /* Memoryview object implementation */ #include "Python.h" +#include "internal/mem.h" +#include "internal/pystate.h" #include "pystrhex.h" #include -- cgit v1.2.1