diff --git a/src/MiniQhull.jl b/src/MiniQhull.jl index bf1052f..4d57882 100644 --- a/src/MiniQhull.jl +++ b/src/MiniQhull.jl @@ -1,7 +1,5 @@ module MiniQhull -using Libdl - export delaunay include("LibQhull.jl") diff --git a/src/bindings.jl b/src/bindings.jl index 6d05dd5..b922088 100644 --- a/src/bindings.jl +++ b/src/bindings.jl @@ -1,8 +1,7 @@ - # qhT* new_qhull_handler(); function new_qhull_handler() qh = Ptr{qhT}(Libc.malloc(sizeof(qhT))) - qh_zero(qh, stderr.handle) + qh_zero(qh, C_NULL) return qh end @@ -18,7 +17,7 @@ function delaunay_init_and_compute(qh::Ptr, dim::Int32, numpoints::Int32, points # Run qhull GC.@preserve qhull_cmd begin - exitcode = qh_new_qhull(qh, dim, numpoints, points, ismalloc, qhull_cmd, C_NULL, stderr.handle) + exitcode = qh_new_qhull(qh, dim, numpoints, points, ismalloc, qhull_cmd, C_NULL, C_NULL) end exitcode != 0 && return exitcode