Changeset 12204 for third-party

Show
Ignore:
Timestamp:
08/14/06 08:21:50 (2 years ago)
Author:
cmarcelo
Message:

* Integrate judy and HsJudy? on Pugs' build process. Make IArray and IHash
use HsJudy?.

Location:
third-party/HsJudy
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • third-party/HsJudy/HsJudy.cabal

    r12103 r12204  
    66author:              Caio Marcelo de Oliveira Filho <cmarcelo@gmail.com>, John Meacham 
    77maintainer:          Caio Marcelo de Oliveira Filho <cmarcelo@gmail.com> 
    8 build-depends:       base 
     8build-depends:       base -any, pugs-fps -any 
    99exposed-modules:     Judy.BitSet Judy.Freeze Judy.Hash Judy.IntMap Judy.StrMap Judy.CollectionsM Judy.HashIO Judy.Refeable Judy.Stringable 
    1010other-modules:       Judy.Private Judy.MiniGC 
    1111extensions:          ForeignFunctionInterface 
    12 ghc-options:         -fglasgow-exts -O2 
     12ghc-options:         -fglasgow-exts -O2 -static 
    1313include-dirs:        . ../judy/Judy-1.0.3/src 
    1414-- FIXME: make Cabal work nicely with _hsc files, now I think it works, but doesnt clean _hsc files 
    1515c-sources:           Judy/Private_hsc.c 
    1616extra-libraries:     Judy 
     17extra-lib-dirs:      . 
  • third-party/HsJudy/Judy/MiniGC.hs

    r11716 r12204  
    77 
    88import Foreign 
    9 import Foreign.Ptr 
     9 
     10 
     11--import Foreign.Ptr 
    1012import Foreign.StablePtr 
    1113 
  • third-party/HsJudy/Judy/Private.hsc

    r12103 r12204  
    77import Data.Word 
    88#else 
    9 --import Judy.Word 
    109import GHC.Exts 
    1110#endif 
     
    1716#include <stdlib.h> 
    1817 
    19 --type Value = (#type Word_t) 
    20 --type Value = CULong 
    21  
    2218#if __GLASGOW_HASKELL__ >= 605 
    2319type Value = WordPtr 
     
    2521type Value = (#type Word_t) 
    2622 
     23{-# INLINE ptrToWordPtr #-} 
    2724ptrToWordPtr :: Ptr () -> Value 
    2825ptrToWordPtr = unsafeCoerce## 
    2926 
     27{-# INLINE wordPtrToPtr #-} 
    3028wordPtrToPtr :: Value -> Ptr () 
    3129wordPtrToPtr = unsafeCoerce## 
  • third-party/HsJudy/Judy/Refeable.hs

    r11716 r12204  
    55) where 
    66 
     7 
     8 
     9import Foreign.StablePtr 
     10 
    711import Foreign.Ptr 
    8 import Foreign.StablePtr 
    912 
    1013import Judy.Private