Skip to content

Commit 27e2d1f

Browse files
authored
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".
1 parent 3a228ab commit 27e2d1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+138
-137
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
extern "C" {
55
#endif
66

7-
#include "internal/pyatomic.h"
7+
#include "pycore_atomic.h"
88
#include "pythread.h"
99

1010
struct _pending_calls {
@@ -25,7 +25,7 @@ struct _pending_calls {
2525
int last;
2626
};
2727

28-
#include "internal/gil.h"
28+
#include "pycore_gil.h"
2929

3030
struct _ceval_runtime_state {
3131
int recursion_limit;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define Py_INTERNAL_CONTEXT_H
33

44

5-
#include "internal/hamt.h"
5+
#include "pycore_hamt.h"
66

77

88
struct _pycontextobject {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
extern "C" {
55
#endif
66

7-
#include "internal/condvar.h"
8-
#include "internal/pyatomic.h"
7+
#include "pycore_condvar.h"
8+
#include "pycore_atomic.h"
99

1010
#ifndef Py_HAVE_CONDVAR
1111
# error You need either a POSIX-compatible or a Windows system!
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ extern "C" {
77
#include "pystate.h"
88
#include "pythread.h"
99

10-
#include "internal/mem.h"
11-
#include "internal/ceval.h"
12-
#include "internal/warnings.h"
10+
#include "pycore_mem.h"
11+
#include "pycore_ceval.h"
12+
#include "pycore_warnings.h"
1313

1414

1515
/* GIL state */

0 commit comments

Comments
 (0)