projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tests from testsuite/tests/h98
[ghc-base.git]
/
Debug
/
Trace.hs
diff --git
a/Debug/Trace.hs
b/Debug/Trace.hs
index
c30c811
..
ebacb6c
100644
(file)
--- a/
Debug/Trace.hs
+++ b/
Debug/Trace.hs
@@
-1,3
+1,5
@@
+{-# LANGUAGE CPP, ForeignFunctionInterface #-}
+
-----------------------------------------------------------------------------
-- |
-- Module : Debug.Trace
-----------------------------------------------------------------------------
-- |
-- Module : Debug.Trace
@@
-41,7
+43,9
@@
putTraceMsg msg = do
withCString msg $ \cmsg ->
debugBelch cfmt cmsg
withCString msg $ \cmsg ->
debugBelch cfmt cmsg
-foreign import ccall unsafe "RtsMessages.h debugBelch"
+-- don't use debugBelch() directly, because we cannot call varargs functions
+-- using the FFI.
+foreign import ccall unsafe "HsBase.h debugBelch2"
debugBelch :: CString -> CString -> IO ()
#endif
debugBelch :: CString -> CString -> IO ()
#endif