Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Establish global state
  • Loading branch information
erlend-aasland committed Mar 28, 2023
commit 7965cb39169dc66daf780cacc4d78f317560b36c
7 changes: 7 additions & 0 deletions Modules/_collectionsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ static PyTypeObject tuplegetter_type;
* Checking for d.len == 0 is the intended way to see whether d is empty.
*/

typedef struct {
} collections_state;

static collections_state global_state;

#define GLOBAL_STATE() (&global_state)

typedef struct BLOCK {
struct BLOCK *leftlink;
PyObject *data[BLOCKLEN];
Expand Down