mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
12 lines
285 B
C
12 lines
285 B
C
|
#define PY_SSIZE_T_CLEAN
|
||
|
#include <Python.h>
|
||
|
|
||
|
// MODULE STATE
|
||
|
|
||
|
// Module state, primarily for storing references to Python objects used throughout the parser (such as imports)
|
||
|
typedef struct {
|
||
|
PyObject* ast_module;
|
||
|
PyObject* base_module;
|
||
|
PyObject* errors_module;
|
||
|
} parser_state;
|