Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit e242275

Browse files
author
Anselm Kruis
committed
Stackless issue #264: Move Stackless includes to Include/cpython
Move Include/slp_exttype.h, Include/slp_structs.h and Include/stackless_version.h to Include/cpython/.
1 parent 4f89f4a commit e242275

File tree

10 files changed

+15
-13
lines changed

10 files changed

+15
-13
lines changed

Include/cpython/object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern "C" {
77
#endif
88

99
#ifdef STACKLESS
10-
#include "slp_exttype.h"
10+
#include "cpython/slp_exttype.h"
1111
#endif
1212

1313
/********************* String Literals ****************************************/
File renamed without changes.
File renamed without changes.
File renamed without changes.

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 "slp_structs.h"
41+
#include "cpython/slp_structs.h"
4242

4343
/*
4444
* create a new tasklet object.

Makefile.pre.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,9 +1081,10 @@ PYTHON_HEADERS= \
10811081
$(srcdir)/Include/weakrefobject.h \
10821082
$(srcdir)/Include/stackless.h \
10831083
$(srcdir)/Include/stackless_api.h \
1084-
$(srcdir)/Include/stackless_version.h \
1085-
$(srcdir)/Include/slp_structs.h \
1084+
$(srcdir)/Include/cpython/stackless_version.h \
1085+
$(srcdir)/Include/cpython/slp_exttype.h \
10861086
$(srcdir)/Include/cpython/slp_tstate.h \
1087+
$(srcdir)/Include/cpython/slp_structs.h \
10871088
$(srcdir)/Include/internal/pycore_stackless.h \
10881089
$(srcdir)/Include/internal/pycore_slp_pystate.h \
10891090
$(srcdir)/Include/internal/pycore_slp_prickelpit.h \

PCbuild/pythoncore.vcxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,9 @@
231231
<ClInclude Include="..\Python\importdl.h" />
232232
<ClInclude Include="..\Python\thread_nt.h" />
233233
<ClInclude Include="..\Python\wordcode_helpers.h" />
234-
<ClInclude Include="..\Include\slp_exttype.h" />
235-
<ClInclude Include="..\Include\slp_structs.h" />
234+
<ClInclude Include="..\Include\cpython\stackless_version.h" />
235+
<ClInclude Include="..\Include\cpython\slp_exttype.h" />
236+
<ClInclude Include="..\Include\cpython\slp_structs.h" />
236237
<ClInclude Include="..\Include\cpython\slp_tstate.h" />
237238
<ClInclude Include="..\Include\internal\pycore_stackless.h" />
238239
<ClInclude Include="..\Include\internal\pycore_slp_pystate.h" />
@@ -242,7 +243,6 @@
242243
<ClInclude Include="..\Include\internal\pycore_slp_switch_x86_msvc.h" />
243244
<ClInclude Include="..\Include\stackless.h" />
244245
<ClInclude Include="..\Include\stackless_api.h" />
245-
<ClInclude Include="..\Include\stackless_version.h" />
246246
</ItemGroup>
247247
<ItemGroup Condition="$(IncludeExternals)">
248248
<ClInclude Include="$(zlibDir)\crc32.h" />

PCbuild/pythoncore.vcxproj.filters

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,13 +507,13 @@
507507
<ClInclude Include="..\Include\stackless_api.h">
508508
<Filter>Include</Filter>
509509
</ClInclude>
510-
<ClInclude Include="..\Include\stackless_version.h">
510+
<ClInclude Include="..\Include\cpython\stackless_version.h">
511511
<Filter>Include</Filter>
512512
</ClInclude>
513-
<ClInclude Include="..\Include\slp_exttype.h">
513+
<ClInclude Include="..\Include\cpython\slp_exttype.h">
514514
<Filter>Include</Filter>
515515
</ClInclude>
516-
<ClInclude Include="..\Include\slp_structs.h">
516+
<ClInclude Include="..\Include\cpython\slp_structs.h">
517517
<Filter>Include</Filter>
518518
</ClInclude>
519519
<ClInclude Include="..\Include\cpython\slp_tstate.h">

Python/getversion.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#ifdef STACKLESS
99
/* avoiding to recompile everything for Stackless all the time */
10-
#include "stackless_version.h"
10+
#include "cpython/stackless_version.h"
1111

1212
const char *
1313
Py_GetVersion(void)

Stackless/changelog.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ What's New in Stackless 3.X.X?
2424
from outside of the interpreter (with no main-tasklet).
2525

2626
- https://github.com/stackless-dev/stackless/issues/264
27-
Implement bpo-35134 for Stackless: move header Include/slp_tstate.h to
28-
Include/cpython/slp_tstate.h.
27+
Implement bpo-35134 for Stackless: move header Include/slp_tstate.h,
28+
Include/slp_exttype.h, Include/slp_structs.h and Include/stackless_version.h
29+
to Include/cpython/.
2930

3031
- https://github.com/stackless-dev/stackless/issues/263
3132
Implement bpo-35081 for Stackless: Prefix header files in Include/internal/

0 commit comments

Comments
 (0)