bpo-35081: Rename internal headers (GH-10275)

Rename Include/internal/ headers:

* pycore_hash.h -> pycore_pyhash.h
* pycore_lifecycle.h -> pycore_pylifecycle.h
* pycore_mem.h -> pycore_pymem.h
* pycore_state.h -> pycore_pystate.h

Add missing headers to Makefile.pre.in and PCbuild:

* pycore_condvar.h.
* pycore_hamt.h
* pycore_pyhash.h
This commit is contained in:
Victor Stinner 2018-11-12 16:53:38 +01:00 • committed by GitHub
parent 19c46a4c96
commit 621cebe81b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
65 changed files with 105 additions and 98 deletions

View file

@ -1,7 +1,7 @@
#include "Python.h"
#include "pycore_mem.h"
#include "pycore_state.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h"
#include "structmember.h"
/* _functools module written and maintained

View file

@ -9,7 +9,7 @@
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "structmember.h"
#include "pythread.h"
#include "_iomodule.h"

View file

@ -3,7 +3,7 @@
/* Interface to Sjoerd's portable C thread library */
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "structmember.h" /* offsetof */
#include "pythread.h"

View file

@ -4,7 +4,7 @@
#include "Python.h"
#include "frameobject.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
static char *

View file

@ -25,8 +25,8 @@
#include "Python.h"
#include "pycore_context.h"
#include "pycore_mem.h"
#include "pycore_state.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h"
#include "frameobject.h" /* for PyFrame_ClearFreeList */
#include "pydtrace.h"
#include "pytime.h" /* for _PyTime_GetMonotonicClock() */

View file

@ -4,7 +4,7 @@
#include "osdefs.h"
#include "pycore_fileutils.h"
#include "pycore_pathconfig.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include <sys/types.h>
#include <string.h>

View file

@ -3,10 +3,10 @@
#include "Python.h"
#include "osdefs.h"
#include "pycore_getopt.h"
#include "pycore_lifecycle.h"
#include "pycore_mem.h"
#include "pycore_pathconfig.h"
#include "pycore_state.h"
#include "pycore_pylifecycle.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h"
#include <locale.h>

View file

@ -32,7 +32,7 @@
#else
#include "winreparse.h"
#endif
#include "pycore_state.h"
#include "pycore_pystate.h"
/* On android API level 21, 'AT_EACCESS' is not declared although
* HAVE_FACCESSAT is defined. */