Skip to content

Commit b88a074

Browse files
authored
Merge pull request #81 from rdeits/v0.6-precompile
Fix precompile() calls on v0.6-dev
2 parents a002078 + 78cb7ae commit b88a074

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

src/precompile.jl

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
11
# This file autogenerated through https://github.com/timholy/SnoopCompile.jl. Precompile every day!
22
function _precompile_()
33
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
4-
precompile(Nettle.call, (Type{Nettle.Decryptor}, Compat.ASCIIString, Vector{UInt8},))
5-
precompile(Nettle.call, (Type{Nettle.HMACState}, Compat.ASCIIString, Vector{UInt8},))
6-
precompile(Nettle.call, (Type{Nettle.CipherType}, Nettle.NettleCipher,))
7-
precompile(Nettle.call, (Type{Nettle.HashType}, Nettle.NettleHash, Ptr{Void},))
8-
precompile(Nettle.call, (Type{Nettle.Encryptor}, Compat.ASCIIString, Vector{UInt8},))
9-
precompile(Nettle.call, (Type{Nettle.Hasher}, Compat.ASCIIString,))
10-
precompile(Nettle.call, (Type{Nettle.HMACState}, Compat.ASCIIString, Compat.ASCIIString,))
4+
if VERSION >= v"0.6-"
5+
# call() overloading was removed in v0.6
6+
precompile(Nettle.Decryptor, (Compat.ASCIIString, Vector{UInt8},))
7+
precompile(Nettle.HMACState, (Compat.ASCIIString, Vector{UInt8},))
8+
precompile(Nettle.CipherType, (Nettle.NettleCipher,))
9+
precompile(Nettle.HashType, (Nettle.NettleHash, Ptr{Void},))
10+
precompile(Nettle.Encryptor, (Compat.ASCIIString, Vector{UInt8},))
11+
precompile(Nettle.Hasher, (Compat.ASCIIString,))
12+
precompile(Nettle.HMACState, (Compat.ASCIIString, Compat.ASCIIString,))
13+
precompile(Nettle.HashType, (Compat.ASCIIString, UInt32, UInt32, UInt32, Ptr{Void}, Ptr{Void}, Ptr{Void}, Ptr{Void},))
14+
precompile(Nettle.CipherType, (Compat.ASCIIString, UInt32, UInt32, UInt32, Ptr{Void}, Ptr{Void}, Ptr{Void}, Ptr{Void},))
15+
else
16+
precompile(Nettle.call, (Type{Nettle.Decryptor}, Compat.ASCIIString, Vector{UInt8},))
17+
precompile(Nettle.call, (Type{Nettle.HMACState}, Compat.ASCIIString, Vector{UInt8},))
18+
precompile(Nettle.call, (Type{Nettle.CipherType}, Nettle.NettleCipher,))
19+
precompile(Nettle.call, (Type{Nettle.HashType}, Nettle.NettleHash, Ptr{Void},))
20+
precompile(Nettle.call, (Type{Nettle.Encryptor}, Compat.ASCIIString, Vector{UInt8},))
21+
precompile(Nettle.call, (Type{Nettle.Hasher}, Compat.ASCIIString,))
22+
precompile(Nettle.call, (Type{Nettle.HMACState}, Compat.ASCIIString, Compat.ASCIIString,))
23+
precompile(Nettle.call, (Type{Nettle.HashType}, Compat.ASCIIString, UInt32, UInt32, UInt32, Ptr{Void}, Ptr{Void}, Ptr{Void}, Ptr{Void},))
24+
precompile(Nettle.call, (Type{Nettle.CipherType}, Compat.ASCIIString, UInt32, UInt32, UInt32, Ptr{Void}, Ptr{Void}, Ptr{Void}, Ptr{Void},))
25+
end
1126
precompile(Nettle.encrypt!, (Nettle.Encryptor, Vector{UInt8}, Vector{UInt8},))
1227
precompile(Nettle.decrypt!, (Nettle.Decryptor, Vector{UInt8}, Vector{UInt8},))
1328
precompile(Nettle.digest!, (Nettle.HMACState,))
1429
precompile(Nettle.get_cipher_types, ())
1530
precompile(Nettle.get_hash_types, ())
1631
precompile(Nettle.digest!, (Nettle.Hasher,))
17-
precompile(Nettle.call, (Type{Nettle.HashType}, Compat.ASCIIString, UInt32, UInt32, UInt32, Ptr{Void}, Ptr{Void}, Ptr{Void}, Ptr{Void},))
1832
precompile(Nettle.get_libnettle_version, ())
19-
precompile(Nettle.call, (Type{Nettle.CipherType}, Compat.ASCIIString, UInt32, UInt32, UInt32, Ptr{Void}, Ptr{Void}, Ptr{Void}, Ptr{Void},))
2033
precompile(Nettle.update!, (Nettle.HMACState, Vector{UInt8},))
2134
precompile(Nettle.update!, (Nettle.Hasher, Compat.ASCIIString,))
2235
precompile(Nettle.decrypt, (Compat.ASCIIString, Vector{UInt8}, Vector{UInt8},))

0 commit comments

Comments
 (0)