Skip to content

Commit ee3b4b5

Browse files
Anselm KruisAnselm Kruis
authored andcommitted
Stackless issue python#185: remove includes from stackless_impl.h
stackless_impl.h no longer includes "structmember.h", "compile.h" and "platf/slp_platformselect.h"
1 parent 1a6630d commit ee3b4b5

File tree

8 files changed

+9
-10
lines changed

8 files changed

+9
-10
lines changed

Stackless/core/cframeobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*/
2626

2727
#include "Python.h"
28+
#include "structmember.h"
2829

2930
#ifdef STACKLESS
3031
#include "stackless_impl.h"

Stackless/core/slp_transfer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
#include "Python.h"
3+
#include <stddef.h> /* For ptrdiff_t */
34

45
#ifdef STACKLESS
56

Stackless/core/stackless_impl.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,11 @@ extern "C" {
1414
#ifdef STACKLESS
1515

1616
#ifdef Py_BUILD_CORE
17-
#include "internal/pystate.h"
18-
19-
#include "structmember.h"
20-
#include "compile.h"
21-
22-
/* platform specific constants (mainly SEH stuff to store )*/
23-
#include "platf/slp_platformselect.h"
24-
17+
#include "internal/pystate.h" /* for _PyRuntime */
2518
#endif /* #ifdef Py_BUILD_CORE */
2619

2720
#include "core/stackless_structs.h"
21+
#include "stackless_api.h"
2822

2923
/* CPython added these two macros in object.h for 2.7 and 3.5 */
3024
#ifndef Py_SETREF
@@ -839,8 +833,6 @@ long slp_parse_thread_id(PyObject *thread_id, unsigned long *id);
839833

840834
#endif /* #ifdef SLP_BUILD_CORE */
841835

842-
#include "stackless_api.h"
843-
844836
#else /* STACKLESS */
845837

846838
#ifdef SLP_BUILD_CORE

Stackless/module/channelobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
******************************************************/
66

77
#include "Python.h"
8+
#include "structmember.h"
89

910
#ifdef STACKLESS
1011
#include "core/stackless_impl.h"

Stackless/module/scheduling.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "Python.h"
2+
#include "structmember.h"
23

34
#ifdef STACKLESS
45
#include "core/stackless_impl.h"

Stackless/module/stacklessmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "platf/slp_platformselect.h"
1111
#include "core/cframeobject.h"
1212
#include "pickling/prickelpit.h"
13+
#include <stddef.h> /* for offsetof(), required by core/stackless_methods.h */
1314
#include "core/stackless_methods.h"
1415

1516
/*[clinic input]

Stackless/module/taskletobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
******************************************************/
66

77
#include "Python.h"
8+
#include "structmember.h"
89

910
#ifdef STACKLESS
1011
#include "core/stackless_impl.h"

Stackless/pickling/prickelpit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "Python.h"
22
#ifdef STACKLESS
33

4+
#include <stddef.h> /* for offsetof() */
45
#include "compile.h"
56

67
#include "core/stackless_impl.h"

0 commit comments

Comments
 (0)