Skip to content

Commit

Permalink
Remove Libdl
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnimuc committed May 5, 2021
1 parent e6553d2 commit 112d79d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/MiniQhull.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module MiniQhull

using Libdl

export delaunay

include("LibQhull.jl")
Expand Down
5 changes: 2 additions & 3 deletions src/bindings.jl
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down

0 comments on commit 112d79d

Please sign in to comment.