Changeset 12204 for third-party
- Timestamp:
- 08/14/06 08:21:50 (2 years ago)
- Location:
- third-party/HsJudy
- Files:
-
- 4 modified
-
HsJudy.cabal (modified) (1 diff)
-
Judy/MiniGC.hs (modified) (1 diff)
-
Judy/Private.hsc (modified) (3 diffs)
-
Judy/Refeable.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
third-party/HsJudy/HsJudy.cabal
r12103 r12204 6 6 author: Caio Marcelo de Oliveira Filho <cmarcelo@gmail.com>, John Meacham 7 7 maintainer: Caio Marcelo de Oliveira Filho <cmarcelo@gmail.com> 8 build-depends: base 8 build-depends: base -any, pugs-fps -any 9 9 exposed-modules: Judy.BitSet Judy.Freeze Judy.Hash Judy.IntMap Judy.StrMap Judy.CollectionsM Judy.HashIO Judy.Refeable Judy.Stringable 10 10 other-modules: Judy.Private Judy.MiniGC 11 11 extensions: ForeignFunctionInterface 12 ghc-options: -fglasgow-exts -O2 12 ghc-options: -fglasgow-exts -O2 -static 13 13 include-dirs: . ../judy/Judy-1.0.3/src 14 14 -- FIXME: make Cabal work nicely with _hsc files, now I think it works, but doesnt clean _hsc files 15 15 c-sources: Judy/Private_hsc.c 16 16 extra-libraries: Judy 17 extra-lib-dirs: . -
third-party/HsJudy/Judy/MiniGC.hs
r11716 r12204 7 7 8 8 import Foreign 9 import Foreign.Ptr 9 10 11 --import Foreign.Ptr 10 12 import Foreign.StablePtr 11 13 -
third-party/HsJudy/Judy/Private.hsc
r12103 r12204 7 7 import Data.Word 8 8 #else 9 --import Judy.Word10 9 import GHC.Exts 11 10 #endif … … 17 16 #include <stdlib.h> 18 17 19 --type Value = (#type Word_t)20 --type Value = CULong21 22 18 #if __GLASGOW_HASKELL__ >= 605 23 19 type Value = WordPtr … … 25 21 type Value = (#type Word_t) 26 22 23 {-# INLINE ptrToWordPtr #-} 27 24 ptrToWordPtr :: Ptr () -> Value 28 25 ptrToWordPtr = unsafeCoerce## 29 26 27 {-# INLINE wordPtrToPtr #-} 30 28 wordPtrToPtr :: Value -> Ptr () 31 29 wordPtrToPtr = unsafeCoerce## -
third-party/HsJudy/Judy/Refeable.hs
r11716 r12204 5 5 ) where 6 6 7 8 9 import Foreign.StablePtr 10 7 11 import Foreign.Ptr 8 import Foreign.StablePtr9 12 10 13 import Judy.Private
