Skip to content

Commit

Permalink
Attempt to work on 3.12rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Sep 6, 2023
1 parent 3e2f64e commit 3ad3196
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/greenlet/greenlet_greenlet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,22 @@ using greenlet::refs::BorrowedGreenlet;

#if GREENLET_PY312
# include "internal/pycore_frame.h"
// Using this structure makes us pretty fragile.
// It has a very large number of fields, some of which are
// arrays, so merely changing some constants will break the ABI
// (which CPython doesn't promise is stable at this level anyway).
# include "internal/pycore_interp.h"
#endif

#if PY_VERSION_HEX < 0x30C00C2
// For Python 3.12rc1 and below, _Py_GlobalMonitors was known as
// _Py_Monitors.
// In either case, they are defined as:
// struct THING {
// uint8_t tools[15];
// }
#define _Py_GlobalMonitors _Py_Monitors
#endif // 3.12rc2
#endif // GREENLET_PY312

// XXX: TODO: Work to remove all virtual functions
// for speed of calling and size of objects (no vtable).
Expand Down

0 comments on commit 3ad3196

Please sign in to comment.