From 112d79da8ddd4ecdb9033627d3c8e476d089e4bf Mon Sep 17 00:00:00 2001 From: Gnimuc Date: Wed, 5 May 2021 19:17:34 +0900 Subject: [PATCH] Remove Libdl --- src/MiniQhull.jl | 2 -- src/bindings.jl | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) 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