diff options
author | sof <unknown> | 2005-03-30 01:12:51 +0000 |
---|---|---|
committer | sof <unknown> | 2005-03-30 01:12:51 +0000 |
commit | a124e8fced16f1e3e2639b17debef82b11e1d2c0 (patch) | |
tree | 0a8540db4e025523e57b965622d1e1918c49c8b2 /ghc/compiler/utils | |
parent | 6417028ace33946acad62b22c629d5fa62e19515 (diff) | |
download | haskell-a124e8fced16f1e3e2639b17debef82b11e1d2c0.tar.gz |
[project @ 2005-03-30 01:12:51 by sof]
canonicalize ffi decls
Diffstat (limited to 'ghc/compiler/utils')
-rw-r--r-- | ghc/compiler/utils/PrimPacked.lhs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ghc/compiler/utils/PrimPacked.lhs b/ghc/compiler/utils/PrimPacked.lhs index 1a47e30ad1..c3b62ed1b9 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} |