@@ -12,23 +12,23 @@ const RTLD_NOLOAD = 0x00000010
1212const RTLD_DEEPBIND = 0x00000020
1313const RTLD_FIRST = 0x00000040
1414
15- function dlsym (hnd:: Ptr , s:: Union(Symbol,String ) )
15+ function dlsym (hnd:: Ptr , s:: Union(Symbol,AbstractString ) )
1616 hnd == C_NULL && error (" NULL library handle" )
1717 ccall (:jl_dlsym , Ptr{Void}, (Ptr{Void}, Ptr{Uint8}), hnd, s)
1818end
1919
20- function dlsym_e (hnd:: Ptr , s:: Union(Symbol,String ) )
20+ function dlsym_e (hnd:: Ptr , s:: Union(Symbol,AbstractString ) )
2121 hnd == C_NULL && error (" NULL library handle" )
2222 ccall (:jl_dlsym_e , Ptr{Void}, (Ptr{Void}, Ptr{Uint8}), hnd, s)
2323end
2424
2525dlopen (s:: Symbol , flags:: Integer = RTLD_LAZY | RTLD_DEEPBIND) =
2626 dlopen (string (s), flags)
2727
28- dlopen (s:: String , flags:: Integer = RTLD_LAZY | RTLD_DEEPBIND) =
28+ dlopen (s:: AbstractString , flags:: Integer = RTLD_LAZY | RTLD_DEEPBIND) =
2929 ccall (:jl_load_dynamic_library , Ptr{Void}, (Ptr{Uint8},Uint32), s, flags)
3030
31- dlopen_e (s:: String , flags:: Integer = RTLD_LAZY | RTLD_DEEPBIND) =
31+ dlopen_e (s:: AbstractString , flags:: Integer = RTLD_LAZY | RTLD_DEEPBIND) =
3232 ccall (:jl_load_dynamic_library_e , Ptr{Void}, (Ptr{Uint8},Uint32), s, flags)
3333
3434dlopen_e (s:: Symbol , flags:: Integer = RTLD_LAZY | RTLD_DEEPBIND) =
@@ -112,11 +112,11 @@ function find_library{T<:ByteString, S<:ByteString}(libnames::Array{T,1}, extrap
112112 return " "
113113end
114114
115- function ccallable (f:: Function , rt:: Type , argt:: (Type...) , name:: Union(String ,Symbol) = string (f))
115+ function ccallable (f:: Function , rt:: Type , argt:: (Type...) , name:: Union(AbstractString ,Symbol) = string (f))
116116 ccall (:jl_extern_c , Void, (Any, Any, Any, Ptr{Uint8}), f, rt, argt, name)
117117end
118118
119- function ccallable (f:: Function , argt:: (Type...) , name:: Union(String ,Symbol) = string (f))
119+ function ccallable (f:: Function , argt:: (Type...) , name:: Union(AbstractString ,Symbol) = string (f))
120120 ccall (:jl_extern_c , Void, (Any, Ptr{Void}, Any, Ptr{Uint8}), f, C_NULL , argt, name)
121121end
122122
0 commit comments