From: sof Date: Wed, 30 Mar 2005 01:12:51 +0000 (+0000) Subject: [project @ 2005-03-30 01:12:51 by sof] X-Git-Tag: Initial_conversion_from_CVS_complete~855 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a124e8fced16f1e3e2639b17debef82b11e1d2c0;p=ghc-hetmet.git [project @ 2005-03-30 01:12:51 by sof] canonicalize ffi decls --- diff --git a/ghc/compiler/utils/PrimPacked.lhs b/ghc/compiler/utils/PrimPacked.lhs index 1a47e30..c3b62ed 100644 --- a/ghc/compiler/utils/PrimPacked.lhs +++ b/ghc/compiler/utils/PrimPacked.lhs @@ -238,22 +238,22 @@ eqCharStrPrefixBA a# b2# start# len# = \begin{code} #if __GLASGOW_HASKELL__ <= 408 strLength (Ptr a#) = ghc_strlen a# -foreign import ccall "ghc_strlen" unsafe +foreign import ccall unsafe "ghc_strlen" ghc_strlen :: Addr# -> Int #else -foreign import ccall "ghc_strlen" unsafe +foreign import ccall unsafe "ghc_strlen" strLength :: Ptr () -> Int #endif -foreign import ccall "ghc_memcmp" unsafe +foreign import ccall unsafe "ghc_memcmp" memcmp :: Addr# -> Addr# -> Int -> IO Int -foreign import ccall "ghc_memcmp" unsafe +foreign import ccall unsafe "ghc_memcmp" memcmp_ba :: Addr# -> ByteArray# -> Int -> IO Int -foreign import ccall "ghc_memcmp_off" unsafe +foreign import ccall unsafe "ghc_memcmp_off" memcmp_baoff :: ByteArray# -> Int -> Addr# -> Int -> IO Int -foreign import ccall "ghc_memcmp_off" unsafe +foreign import ccall unsafe "ghc_memcmp_off" memcmp_baoff_ba :: ByteArray# -> Int -> ByteArray# -> Int -> IO Int \end{code}