From a124e8fced16f1e3e2639b17debef82b11e1d2c0 Mon Sep 17 00:00:00 2001 From: sof Date: Wed, 30 Mar 2005 01:12:51 +0000 Subject: [PATCH] [project @ 2005-03-30 01:12:51 by sof] canonicalize ffi decls --- ghc/compiler/utils/PrimPacked.lhs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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} -- 1.7.10.4