Skip to content

Commit 90b1e00

Browse files
committed
Stackless issue python#207: consistent header files names
Names of "public" header files use prefix "stackless", all other use "slp". This is consistent with symbol names.
1 parent 2eee330 commit 90b1e00

11 files changed

Lines changed: 14 additions & 14 deletions

File tree

Doc/c-api/stackless.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
============== ============= ===============================
3535

3636

37-
|SLP| provides the following C functions.
37+
|SLP| provides the following C functions. Include ``<stackless_api.h>``.
3838

3939
Tasklets
4040
--------

Include/internal/pystate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern "C" {
1313
#include "internal/warnings.h"
1414

1515
#ifdef STACKLESS
16-
#include "internal/stackless_pystate.h"
16+
#include "internal/slp_pystate.h"
1717
#endif
1818

1919
/* GIL state */

Include/internal/stackless_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ extern "C" {
152152
*/
153153

154154
/* The macro SLP_WITH_FRAME_REF_DEBUG gets eventually defined in
155-
* stackless_tstate.h. It enables reference debugging for frames and C-frames.
155+
* slp_tstate.h. It enables reference debugging for frames and C-frames.
156156
*/
157157
#ifdef SLP_WITH_FRAME_REF_DEBUG
158158
#ifndef Py_TRACE_REFS

Include/pystate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
extern "C" {
99
#endif
1010
#ifdef STACKLESS
11-
#include "stackless_tstate.h"
11+
#include "slp_tstate.h"
1212
#endif
1313

1414
/* This limitation is for performance and simplicity. If needed it can be

Include/stackless_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extern "C" {
3838

3939
#ifdef STACKLESS
4040

41-
#include "stackless_structs.h"
41+
#include "slp_structs.h"
4242

4343
/*
4444
* create a new tasklet object.

Makefile.pre.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,9 +1038,9 @@ PYTHON_HEADERS= \
10381038
$(srcdir)/Include/stackless_api.h \
10391039
$(srcdir)/Include/stackless_version.h \
10401040
$(srcdir)/Include/internal/stackless_impl.h \
1041-
$(srcdir)/Include/stackless_structs.h \
1042-
$(srcdir)/Include/stackless_tstate.h \
1043-
$(srcdir)/Include/internal/stackless_pystate.h \
1041+
$(srcdir)/Include/slp_structs.h \
1042+
$(srcdir)/Include/slp_tstate.h \
1043+
$(srcdir)/Include/internal/slp_pystate.h \
10441044
$(srcdir)/Include/internal/slp_prickelpit.h \
10451045
$(srcdir)/Include/internal/slp_platformselect.h \
10461046
$(srcdir)/Include/internal/slp_switch_ppc_macosx.h \

PCbuild/pythoncore.vcxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@
215215
<ClInclude Include="..\Python\wordcode_helpers.h" />
216216
<ClInclude Include="..\Include\slp_exttype.h" />
217217
<ClInclude Include="..\Include\internal\stackless_impl.h" />
218-
<ClInclude Include="..\Include\stackless_structs.h" />
219-
<ClInclude Include="..\Include\stackless_tstate.h" />
220-
<ClInclude Include="..\Include\internal\stackless_pystate.h" />
218+
<ClInclude Include="..\Include\slp_structs.h" />
219+
<ClInclude Include="..\Include\slp_tstate.h" />
220+
<ClInclude Include="..\Include\internal\slp_pystate.h" />
221221
<ClInclude Include="..\Include\internal\slp_prickelpit.h" />
222222
<ClInclude Include="..\Include\internal\slp_platformselect.h" />
223223
<ClInclude Include="..\Include\internal\slp_switch_x64_msvc.h" />

0 commit comments

Comments
 (0)