Skip to content
Snippets Groups Projects
Commit 6697c8de authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 2000-10-27 14:36:16 by simonmar]

s/allocMemory__/malloc
parent 4b3b733b
No related branches found
No related tags found
No related merge requests found
...@@ -293,13 +293,12 @@ reAllocMem ptr sz = do ...@@ -293,13 +293,12 @@ reAllocMem ptr sz = do
allocMem :: Int -> IO Addr allocMem :: Int -> IO Addr
allocMem sz = do allocMem sz = do
#if __GLASGOW_HASKELL__ < 303
chunk <- _ccall_ malloc sz chunk <- _ccall_ malloc sz
#if __GLASGOW_HASKELL__ < 303
if chunk == nullAddr if chunk == nullAddr
then fail (userError "allocMem") then fail (userError "allocMem")
else return chunk else return chunk
#else #else
chunk <- _ccall_ allocMemory__ sz
if chunk == nullAddr if chunk == nullAddr
then constructErrorAndFail "allocMem" then constructErrorAndFail "allocMem"
else return chunk else return chunk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment