diff options
Diffstat (limited to 'Include/internal/pycore_hamt.h')
-rw-r--r-- | Include/internal/pycore_hamt.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Include/internal/pycore_hamt.h b/Include/internal/pycore_hamt.h index cf9c19e..85e35c5 100644 --- a/Include/internal/pycore_hamt.h +++ b/Include/internal/pycore_hamt.h @@ -8,9 +8,16 @@ #define _Py_HAMT_MAX_TREE_DEPTH 7 +extern PyTypeObject _PyHamt_Type; +extern PyTypeObject _PyHamt_ArrayNode_Type; +extern PyTypeObject _PyHamt_BitmapNode_Type; +extern PyTypeObject _PyHamt_CollisionNode_Type; +extern PyTypeObject _PyHamtKeys_Type; +extern PyTypeObject _PyHamtValues_Type; +extern PyTypeObject _PyHamtItems_Type; + /* runtime lifecycle */ -PyStatus _PyHamt_InitTypes(PyInterpreterState *); void _PyHamt_Fini(PyInterpreterState *); @@ -69,15 +76,6 @@ typedef struct { } PyHamtIterator; -PyAPI_DATA(PyTypeObject) _PyHamt_Type; -PyAPI_DATA(PyTypeObject) _PyHamt_ArrayNode_Type; -PyAPI_DATA(PyTypeObject) _PyHamt_BitmapNode_Type; -PyAPI_DATA(PyTypeObject) _PyHamt_CollisionNode_Type; -PyAPI_DATA(PyTypeObject) _PyHamtKeys_Type; -PyAPI_DATA(PyTypeObject) _PyHamtValues_Type; -PyAPI_DATA(PyTypeObject) _PyHamtItems_Type; - - /* Create a new HAMT immutable mapping. */ PyHamtObject * _PyHamt_New(void); |