Skip to content

Commit 7fd9f33

Browse files
authored
Fix more 0.7 deprecations (#69)
1 parent 033a9ec commit 7fd9f33

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
julia 0.6
2-
Compat 0.38.0
2+
Compat 0.41.0
33
BinDeps

deps/binaries.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using BinDeps: libdir
33

44
modified_defaults = false
55
if !in(BinDeps.Binaries, BinDeps.defaults)
6-
unshift!(BinDeps.defaults, BinDeps.Binaries)
6+
pushfront!(BinDeps.defaults, BinDeps.Binaries)
77
modified_defaults = true
88
end
99

@@ -44,5 +44,5 @@ end
4444
BinDeps.@install Dict(:libopenspecfun => :openspecfun)
4545

4646
if modified_defaults
47-
shift!(BinDeps.defaults)
47+
popfront!(BinDeps.defaults)
4848
end

deps/build.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ else # linux
1919
# Determine the glibc version. If the check fails, we know we're on a non-glibc
2020
# system, which means we can't use the binaries and need to build from source.
2121
# The glibc version used by the binaries is 2.6, so we need at least that.
22-
libc_ptr = ccall(:jl_dlopen, Ptr{Void}, (Ptr{Void}, UInt32), C_NULL, 0)
22+
libc_ptr = ccall(:jl_dlopen, Ptr{Cvoid}, (Ptr{Cvoid}, UInt32), C_NULL, 0)
2323
glibc_ptr = Libdl.dlsym_e(libc_ptr, :gnu_get_libc_version)
2424
if glibc_ptr == C_NULL
2525
include("scratch.jl")

src/bessel.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function _airy(z::Complex{Float64}, id::Int32, kode::Int32)
3030
ai1, ai2 = Ref{Float64}(), Ref{Float64}()
3131
ae1, ae2 = Ref{Int32}(), Ref{Int32}()
3232

33-
ccall((:zairy_,openspecfun), Void,
33+
ccall((:zairy_,openspecfun), Cvoid,
3434
(Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32},
3535
Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32}),
3636
real(z), imag(z), id, kode,
@@ -47,7 +47,7 @@ function _biry(z::Complex{Float64}, id::Int32, kode::Int32)
4747
ai1, ai2 = Ref{Float64}(), Ref{Float64}()
4848
ae1 = Ref{Int32}()
4949

50-
ccall((:zbiry_,openspecfun), Void,
50+
ccall((:zbiry_,openspecfun), Cvoid,
5151
(Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32},
5252
Ref{Float64}, Ref{Float64}, Ref{Int32}),
5353
real(z), imag(z), id, kode,
@@ -176,7 +176,7 @@ function _besselh(nu::Float64, k::Int32, z::Complex{Float64}, kode::Int32)
176176
ai1, ai2 = Ref{Float64}(), Ref{Float64}()
177177
ae1, ae2 = Ref{Int32}(), Ref{Int32}()
178178

179-
ccall((:zbesh_,openspecfun), Void,
179+
ccall((:zbesh_,openspecfun), Cvoid,
180180
(Ref{Float64}, Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32}, Ref{Int},
181181
Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32}),
182182
real(z), imag(z), nu, kode, k, 1,
@@ -193,7 +193,7 @@ function _besseli(nu::Float64, z::Complex{Float64}, kode::Int32)
193193
ai1, ai2 = Ref{Float64}(), Ref{Float64}()
194194
ae1, ae2 = Ref{Int32}(), Ref{Int32}()
195195

196-
ccall((:zbesi_,openspecfun), Void,
196+
ccall((:zbesi_,openspecfun), Cvoid,
197197
(Ref{Float64}, Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32},
198198
Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32}),
199199
real(z), imag(z), nu, kode, 1,
@@ -210,7 +210,7 @@ function _besselj(nu::Float64, z::Complex{Float64}, kode::Int32)
210210
ai1, ai2 = Ref{Float64}(), Ref{Float64}()
211211
ae1, ae2 = Ref{Int32}(), Ref{Int32}()
212212

213-
ccall((:zbesj_,openspecfun), Void,
213+
ccall((:zbesj_,openspecfun), Cvoid,
214214
(Ref{Float64}, Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32},
215215
Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32}),
216216
real(z), imag(z), nu, kode, 1,
@@ -227,7 +227,7 @@ function _besselk(nu::Float64, z::Complex{Float64}, kode::Int32)
227227
ai1, ai2 = Ref{Float64}(), Ref{Float64}()
228228
ae1, ae2 = Ref{Int32}(), Ref{Int32}()
229229

230-
ccall((:zbesk_,openspecfun), Void,
230+
ccall((:zbesk_,openspecfun), Cvoid,
231231
(Ref{Float64}, Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32},
232232
Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32}),
233233
real(z), imag(z), nu, kode, 1,
@@ -245,7 +245,7 @@ function _bessely(nu::Float64, z::Complex{Float64}, kode::Int32)
245245
ae1, ae2 = Ref{Int32}(), Ref{Int32}()
246246
wrk1, wrk2 = Ref{Float64}(), Ref{Float64}()
247247

248-
ccall((:zbesy_,openspecfun), Void,
248+
ccall((:zbesy_,openspecfun), Cvoid,
249249
(Ref{Float64}, Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Int32},
250250
Ref{Float64}, Ref{Float64}, Ref{Int32}, Ref{Float64}, Ref{Float64}, Ref{Int32}),
251251
real(z), imag(z), nu, kode, 1,

src/sincosint.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Base.Math.@horner
1+
using Base.Math: @horner
22

33
# Compute the sine integral: ∫_0^x sin(t)/t dt,
44
# and the cosine integral: γ + log x + ∫_0^x (cos(t)-1)/t dt,

0 commit comments

Comments
 (0)