bpo-35081: Move Py_BUILD_CORE code to internal/mem.h (GH-10249)

* Add #include "internal/mem.h" to C files using
  _PyMem_SetDefaultAllocator().
* Include/internal/mem.h now requires Py_BUILD_CORE to be defined.
This commit is contained in:
Victor Stinner 2018-10-31 20:19:24 +01:00 committed by GitHub
parent b08746bfdf
commit 2be00d987d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 20 additions and 10 deletions

View file

@ -1,4 +1,5 @@
#include "Python.h"
#include "internal/mem.h"
#include "internal/pystate.h"
#include <locale.h>
#ifdef HAVE_LANGINFO_H

View file

@ -5,6 +5,7 @@
#include "Python-ast.h"
#undef Yield /* undefine macro conflicting with winbase.h */
#include "internal/hash.h"
#include "internal/mem.h"
#include "internal/pystate.h"
#include "errcode.h"
#include "marshal.h"

View file

@ -2,6 +2,7 @@
#include "Python.h"
#include "osdefs.h"
#include "internal/mem.h"
#include "internal/pystate.h"
#include <wchar.h>

View file

@ -6,6 +6,7 @@
#undef Yield /* undefine macro conflicting with winbase.h */
#include "internal/context.h"
#include "internal/hamt.h"
#include "internal/mem.h"
#include "internal/pystate.h"
#include "grammar.h"
#include "node.h"

View file

@ -2,6 +2,7 @@
/* Thread and interpreter state structures and their interfaces */
#include "Python.h"
#include "internal/mem.h"
#include "internal/pystate.h"
#define _PyThreadState_SET(value) \

View file

@ -15,6 +15,7 @@ Data members:
*/
#include "Python.h"
#include "internal/mem.h"
#include "internal/pystate.h"
#include "code.h"
#include "frameobject.h"