|
| 1 | +if __import__("sys").implementation.name != "cpython": |
| 2 | + # using __import__ to make sure sys isnt exported |
| 3 | + raise Exception( |
| 4 | + "pointers.py is only supported on cpython", |
| 5 | + ) |
| 6 | + |
| 7 | +from ._utils import force_set_attr |
1 | 8 | from .base_pointers import ( |
2 | | - BaseAllocatedPointer, BaseCPointer, BaseObjectPointer, BasePointer, |
3 | | - BasicPointer, Dereferencable, IterDereferencable, Sized, Typed |
| 9 | + NULL, BaseAllocatedPointer, BaseCPointer, BaseObjectPointer, BasePointer, |
| 10 | + BasicPointer, Dereferencable, IterDereferencable, Nullable, Sized, Typed |
4 | 11 | ) |
5 | 12 | from .bindings import * |
6 | 13 | from .c_pointer import ( |
7 | 14 | StructPointer, TypedCPointer, VoidPointer, array, cast, to_c_ptr, |
8 | 15 | to_struct_ptr |
9 | 16 | ) |
10 | | -from .c_utils import force_set_attr |
11 | 17 | from .calloc import AllocatedArrayPointer, calloc |
12 | 18 | from .custom_binding import binding, binds |
13 | 19 | from .decay import decay, decay_annotated, decay_wrapped |
|
19 | 25 | from .malloc import AllocatedPointer, free, malloc, realloc |
20 | 26 | from .object_pointer import Pointer, to_ptr |
21 | 27 | from .std_structs import DivT, Lconv, LDivT, Tm |
22 | | -from .struct import Struct |
23 | | -from .version import __version__ |
| 28 | +from .structure import Struct |
| 29 | + |
| 30 | +__version__ = "2.1.0" |
0 commit comments