diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-10-31 23:52:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 23:52:28 (GMT) |
commit | 27e2d1f21975dfb8c0ddcb192fa0f45a51b7977e (patch) | |
tree | 351096bf87da77ee8c4b08362e850e9affd18f8f /Include | |
parent | 3a228ab17c2a9cffd1a2f15f30d6209768de20a6 (diff) | |
download | cpython-27e2d1f21975dfb8c0ddcb192fa0f45a51b7977e.zip cpython-27e2d1f21975dfb8c0ddcb192fa0f45a51b7977e.tar.gz cpython-27e2d1f21975dfb8c0ddcb192fa0f45a51b7977e.tar.bz2 |
bpo-35081: Add pycore_ prefix to internal header files (GH-10263)
* Rename Include/internal/ header files:
* pyatomic.h -> pycore_atomic.h
* ceval.h -> pycore_ceval.h
* condvar.h -> pycore_condvar.h
* context.h -> pycore_context.h
* pygetopt.h -> pycore_getopt.h
* gil.h -> pycore_gil.h
* hamt.h -> pycore_hamt.h
* hash.h -> pycore_hash.h
* mem.h -> pycore_mem.h
* pystate.h -> pycore_state.h
* warnings.h -> pycore_warnings.h
* PCbuild project, Makefile.pre.in, Modules/Setup: add the
Include/internal/ directory to the search paths of header files.
* Update includes. For example, replace #include "internal/mem.h"
with #include "pycore_mem.h".
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_atomic.h (renamed from Include/internal/pyatomic.h) | 0 | ||||
-rw-r--r-- | Include/internal/pycore_ceval.h (renamed from Include/internal/ceval.h) | 4 | ||||
-rw-r--r-- | Include/internal/pycore_condvar.h (renamed from Include/internal/condvar.h) | 0 | ||||
-rw-r--r-- | Include/internal/pycore_context.h (renamed from Include/internal/context.h) | 2 | ||||
-rw-r--r-- | Include/internal/pycore_getopt.h (renamed from Include/internal/pygetopt.h) | 0 | ||||
-rw-r--r-- | Include/internal/pycore_gil.h (renamed from Include/internal/gil.h) | 4 | ||||
-rw-r--r-- | Include/internal/pycore_hamt.h (renamed from Include/internal/hamt.h) | 0 | ||||
-rw-r--r-- | Include/internal/pycore_hash.h (renamed from Include/internal/hash.h) | 0 | ||||
-rw-r--r-- | Include/internal/pycore_mem.h (renamed from Include/internal/mem.h) | 0 | ||||
-rw-r--r-- | Include/internal/pycore_state.h (renamed from Include/internal/pystate.h) | 6 | ||||
-rw-r--r-- | Include/internal/pycore_warnings.h (renamed from Include/internal/warnings.h) | 0 | ||||
-rw-r--r-- | Include/pystate.h | 2 |
12 files changed, 9 insertions, 9 deletions
diff --git a/Include/internal/pyatomic.h b/Include/internal/pycore_atomic.h index 5f349cc..5f349cc 100644 --- a/Include/internal/pyatomic.h +++ b/Include/internal/pycore_atomic.h diff --git a/Include/internal/ceval.h b/Include/internal/pycore_ceval.h index 4297b5a..ddeeb5c 100644 --- a/Include/internal/ceval.h +++ b/Include/internal/pycore_ceval.h @@ -4,7 +4,7 @@ extern "C" { #endif -#include "internal/pyatomic.h" +#include "pycore_atomic.h" #include "pythread.h" struct _pending_calls { @@ -25,7 +25,7 @@ struct _pending_calls { int last; }; -#include "internal/gil.h" +#include "pycore_gil.h" struct _ceval_runtime_state { int recursion_limit; diff --git a/Include/internal/condvar.h b/Include/internal/pycore_condvar.h index f933089..f933089 100644 --- a/Include/internal/condvar.h +++ b/Include/internal/pycore_condvar.h diff --git a/Include/internal/context.h b/Include/internal/pycore_context.h index 59f88f2..57a410c 100644 --- a/Include/internal/context.h +++ b/Include/internal/pycore_context.h @@ -2,7 +2,7 @@ #define Py_INTERNAL_CONTEXT_H -#include "internal/hamt.h" +#include "pycore_hamt.h" struct _pycontextobject { diff --git a/Include/internal/pygetopt.h b/Include/internal/pycore_getopt.h index 8ef2ada..8ef2ada 100644 --- a/Include/internal/pygetopt.h +++ b/Include/internal/pycore_getopt.h diff --git a/Include/internal/gil.h b/Include/internal/pycore_gil.h index 7743b3f..5059850 100644 --- a/Include/internal/gil.h +++ b/Include/internal/pycore_gil.h @@ -4,8 +4,8 @@ extern "C" { #endif -#include "internal/condvar.h" -#include "internal/pyatomic.h" +#include "pycore_condvar.h" +#include "pycore_atomic.h" #ifndef Py_HAVE_CONDVAR # error You need either a POSIX-compatible or a Windows system! diff --git a/Include/internal/hamt.h b/Include/internal/pycore_hamt.h index 29ad28b..29ad28b 100644 --- a/Include/internal/hamt.h +++ b/Include/internal/pycore_hamt.h diff --git a/Include/internal/hash.h b/Include/internal/pycore_hash.h index e14b80a..e14b80a 100644 --- a/Include/internal/hash.h +++ b/Include/internal/pycore_hash.h diff --git a/Include/internal/mem.h b/Include/internal/pycore_mem.h index 4a41b77..4a41b77 100644 --- a/Include/internal/mem.h +++ b/Include/internal/pycore_mem.h diff --git a/Include/internal/pystate.h b/Include/internal/pycore_state.h index 38845d3..ff25d2e 100644 --- a/Include/internal/pystate.h +++ b/Include/internal/pycore_state.h @@ -7,9 +7,9 @@ extern "C" { #include "pystate.h" #include "pythread.h" -#include "internal/mem.h" -#include "internal/ceval.h" -#include "internal/warnings.h" +#include "pycore_mem.h" +#include "pycore_ceval.h" +#include "pycore_warnings.h" /* GIL state */ diff --git a/Include/internal/warnings.h b/Include/internal/pycore_warnings.h index 2878a28..2878a28 100644 --- a/Include/internal/warnings.h +++ b/Include/internal/pycore_warnings.h diff --git a/Include/pystate.h b/Include/pystate.h index 8860f12..7fc921e 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -250,7 +250,7 @@ PyAPI_FUNC(PyInterpreterState *) _PyInterpreterState_Get(void); #endif #ifdef Py_BUILD_CORE /* Macro which should only be used for performance critical code. - Need "#include "internal/pystate.h". See also _PyInterpreterState_Get() + Need "#include "pycore_state.h". See also _PyInterpreterState_Get() and _PyGILState_GetInterpreterStateUnsafe(). */ # define _PyInterpreterState_GET_UNSAFE() (PyThreadState_GET()->interp) #endif |