@@ -10,10 +10,9 @@ mod shared_lib;
1010mod structure;
1111mod union;
1212
13- use array:: { PyCArray , PyCArrayMeta } ;
14- use basics:: { addressof, alignment, byref, sizeof_func, PyCData } ;
15- use primitive:: { PyCSimple , PySimpleMeta } ;
16- use structure:: PyCStructure ;
13+ use array:: PyCArrayMeta ;
14+ use basics:: PyCData ;
15+ use primitive:: PySimpleMeta ;
1716use crate :: class:: PyClassImpl ;
1817use crate :: convert:: IntoObject ;
1918
@@ -23,6 +22,7 @@ mod _ctypes {
2322 use crate :: function:: Either ;
2423 use crate :: builtins:: PyTypeRef ;
2524 use crate :: { PyObjectRef , PyResult , VirtualMachine } ;
25+ use crate :: stdlib:: ctypes:: pointer;
2626
2727 #[ pyattr( name="__version__" ) ]
2828 pub ( crate ) fn version ( ) -> & ' static str {
@@ -50,22 +50,23 @@ mod _ctypes {
5050 }
5151
5252 #[ pyfunction]
53- pub ( crate ) fn POINTER ( tp : Either < PyTypeRef , PyObjectRef > , vm : & VirtualMachine ) -> PyResult {
54- basics:: POINTER ( tp, vm)
53+ pub ( crate ) fn POINTER ( tp : PyTypeRef , vm : & VirtualMachine ) -> PyResult {
54+ pointer:: POINTER ( tp) ;
55+ Ok ( vm. get_none ( ) )
5556 }
5657
5758 #[ pyfunction]
5859 pub ( crate ) fn pointer ( obj : PyObjectRef , vm : & VirtualMachine ) -> PyResult {
59- basics:: pointer_fn ( obj, vm)
60+ pointer:: pointer_fn ( obj) ;
61+ Ok ( vm. get_none ( ) )
6062 }
6163
6264 #[ pyfunction]
6365 pub ( crate ) fn _pointer_type_cache ( vm : & VirtualMachine ) -> PyResult {
6466 Ok ( PyObjectRef :: from ( vm. ctx . new_dict ( ) ) )
6567 }
6668
67- #[ pyclass( name = "CFuncPtr" ) ]
68- pub ( crate ) struct CFuncPtr { }
69+ // TODO: add the classes
6970}
7071
7172pub ( crate ) fn make_module ( vm : & VirtualMachine ) -> PyObjectRef {
0 commit comments