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,5 +1,5 @@
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "frameobject.h"
#include "clinic/_warnings.c.h"

View file

@ -3,7 +3,7 @@
#include "Python.h"
#include <ctype.h>
#include "ast.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
_Py_IDENTIFIER(__builtins__);
_Py_IDENTIFIER(__dict__);

View file

@ -10,7 +10,7 @@
#define PY_LOCAL_AGGRESSIVE
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "code.h"
#include "dictobject.h"

View file

@ -9,7 +9,7 @@ Copyright (c) Corporation for National Research Initiatives.
------------------------------------------------------------------------ */
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "ucnhash.h"
#include <ctype.h>

View file

@ -1,7 +1,7 @@
#include "Python.h"
#include "structmember.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "pycore_context.h"
#include "pycore_hamt.h"

View file

@ -1,9 +1,9 @@
#include "Python.h"
#include "pycore_fileutils.h"
#include "pycore_lifecycle.h"
#include "pycore_mem.h"
#include "pycore_pylifecycle.h"
#include "pycore_pymem.h"
#include "pycore_pathconfig.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include <locale.h>
#ifdef HAVE_LANGINFO_H
# include <langinfo.h>

View file

@ -2,7 +2,7 @@
/* Support for dynamic loading of extension modules */
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "importdl.h"
#include <sys/types.h>

View file

@ -2,7 +2,7 @@
/* Error handling */
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#ifndef __STDC__
#ifndef MS_WINDOWS

View file

@ -2,7 +2,7 @@
/* Python interpreter main program for frozen scripts */
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include <locale.h>
#ifdef MS_WINDOWS

View file

@ -1,7 +1,7 @@
#include "Python.h"
#include "structmember.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "pycore_hamt.h"
/*

View file

@ -3,10 +3,10 @@
#include "Python.h"
#include "Python-ast.h"
#include "pycore_hash.h"
#include "pycore_lifecycle.h"
#include "pycore_mem.h"
#include "pycore_state.h"
#include "pycore_pyhash.h"
#include "pycore_pylifecycle.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h"
#include "errcode.h"
#include "marshal.h"
#include "code.h"

View file

@ -2,10 +2,10 @@
#include "Python.h"
#include "osdefs.h"
#include "pycore_mem.h"
#include "pycore_fileutils.h"
#include "pycore_pathconfig.h"
#include "pycore_state.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h"
#include <wchar.h>
#ifdef __cplusplus

View file

@ -5,10 +5,10 @@
#include "Python-ast.h"
#include "pycore_context.h"
#include "pycore_hamt.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 "grammar.h"
#include "node.h"
#include "token.h"

View file

@ -2,8 +2,8 @@
/* Thread and interpreter state structures and their interfaces */
#include "Python.h"
#include "pycore_mem.h"
#include "pycore_state.h"
#include "pycore_pymem.h"
#include "pycore_pystate.h"
#define _PyThreadState_SET(value) \
_Py_atomic_store_relaxed(&_PyRuntime.gilstate.tstate_current, \

View file

@ -11,7 +11,7 @@
#include "Python.h"
#include "Python-ast.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "grammar.h"
#include "node.h"
#include "token.h"

View file

@ -1,5 +1,5 @@
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "symtable.h"
#include "structmember.h"

View file

@ -17,10 +17,10 @@ Data members:
#include "Python.h"
#include "code.h"
#include "frameobject.h"
#include "pycore_lifecycle.h"
#include "pycore_mem.h"
#include "pycore_pylifecycle.h"
#include "pycore_pymem.h"
#include "pycore_pathconfig.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "pythread.h"
#include "osdefs.h"

View file

@ -6,7 +6,7 @@
Stuff shared by all thread_*.h files is collected here. */
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#ifndef _POSIX_THREADS
/* This means pthreads are not implemented in libc headers, hence the macro

View file

@ -2,7 +2,7 @@
/* Traceback implementation */
#include "Python.h"
#include "pycore_state.h"
#include "pycore_pystate.h"
#include "code.h"
#include "frameobject.h"