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

Commit 1f73cae

Browse files
author
Anselm Kruis
committed
Stackless issue #149: Consolidate stateful runtime globals.
bpo-30860 consolidates global variables. This requires minor changes in Stackless header files. Now Stackless compiles. We still need to consolidate Stackless specific global variables.
1 parent 65d8b62 commit 1f73cae

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ regen-typeslots:
908908
$(srcdir)/Objects/typeslots.inc
909909

910910
Stackless/core/slp_transfer.o: $(srcdir)/Stackless/core/slp_transfer.c
911-
$(CC) -c $(PY_CFLAGS) $(PY_CFLAGS_NODIST) $(PY_CPPFLAGS) $(SLPFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Stackless/core/slp_transfer.c
911+
$(CC) -c $(PY_CORE_CFLAGS) $(SLPFLAGS) -o $@ $(srcdir)/Stackless/core/slp_transfer.c
912912

913913
############################################################################
914914
# Header files

Stackless/core/stackless_impl.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33

44
#include "Python.h"
55

6-
#ifdef STACKLESS
7-
86
#ifdef __cplusplus
97
extern "C" {
108
#endif
119

10+
#ifdef STACKLESS
11+
12+
#ifdef Py_BUILD_CORE
13+
#include "internal/pystate.h"
14+
#endif
15+
1216
#include "structmember.h"
1317
#include "compile.h"
1418
#include "frameobject.h"

0 commit comments

Comments
 (0)