fix FFI
Signed-off-by: hashirama <hashirama@noreply.localhost>
This commit is contained in:
parent
5b67ca2164
commit
60f4cc8216
1 changed files with 2 additions and 2 deletions
4
MDict.hs
4
MDict.hs
|
|
@ -75,8 +75,8 @@ isMDDFile path = map toLower (takeExtension path) == ".mdd"
|
|||
|
||||
-- FFI imports
|
||||
foreign import ccall "mdict_init" c_mdict_init :: CString -> IO (Ptr ())
|
||||
foreign import ccall "mdict_destory" c_mdict_destroy :: Ptr () -> IO CInt
|
||||
foreign import ccall "&mdict_destory" raw_mdict_destroy_finalizer :: FunPtr (Ptr () -> IO CInt)
|
||||
foreign import ccall "mdict_destroy" c_mdict_destroy :: Ptr () -> IO CInt
|
||||
foreign import ccall "&mdict_destroy" raw_mdict_destroy_finalizer :: FunPtr (Ptr () -> IO CInt)
|
||||
foreign import ccall "mdict_lookup" c_mdict_lookup :: Ptr () -> CString -> Ptr (Ptr CChar) -> IO ()
|
||||
foreign import ccall "mdict_atomic_lookup" c_mdict_atomic_lookup :: CString -> CString -> IO CString
|
||||
foreign import ccall "mdict_locate" c_mdict_locate :: Ptr () -> CString -> Ptr (Ptr CChar) -> CInt -> IO ()
|
||||
|
|
|
|||
Loading…
Reference in a new issue