diff options
author | Isaac Dupree <id@isaac.cedarswampstudios.org> | 2007-06-05 23:53:01 +0000 |
---|---|---|
committer | Isaac Dupree <id@isaac.cedarswampstudios.org> | 2007-06-05 23:53:01 +0000 |
commit | 9f589efb688f22cb0637f9c1164dd9027b4378a3 (patch) | |
tree | ab52e27e7a773be609b3557dd2f8b5a237424172 /compiler/utils/StringBuffer.lhs | |
parent | ffd3438020584591b1c73d44bb1f1a731402cfe6 (diff) | |
download | haskell-9f589efb688f22cb0637f9c1164dd9027b4378a3.tar.gz |
remove #if branches for pre-ghc-6.0
I skipped utils/hsc2hs/Main.hs since its ifs also involved
checking for old versions of nhc98 (I don't want to figure that out),
but removed everything else I found relating to building with pre-6.0
Diffstat (limited to 'compiler/utils/StringBuffer.lhs')
-rw-r--r-- | compiler/utils/StringBuffer.lhs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/compiler/utils/StringBuffer.lhs b/compiler/utils/StringBuffer.lhs index 28a7f6728d..69caf0ee12 100644 --- a/compiler/utils/StringBuffer.lhs +++ b/compiler/utils/StringBuffer.lhs @@ -224,19 +224,4 @@ parseUnsignedInteger buf len radix char_to_int inlinePerformIO :: IO a -> a inlinePerformIO (IO m) = case m realWorld# of (# _, r #) -> r -#if __GLASGOW_HASKELL__ < 600 -mallocForeignPtrArray :: Storable a => Int -> IO (ForeignPtr a) -mallocForeignPtrArray = doMalloc undefined - where - doMalloc :: Storable b => b -> Int -> IO (ForeignPtr b) - doMalloc dummy size = mallocForeignPtrBytes (size * sizeOf dummy) - -mallocForeignPtrBytes :: Int -> IO (ForeignPtr a) -mallocForeignPtrBytes n = do - r <- mallocBytes n - newForeignPtr r (finalizerFree r) - -foreign import ccall unsafe "stdlib.h free" - finalizerFree :: Ptr a -> IO () -#endif \end{code} |