summaryrefslogtreecommitdiff
path: root/ghc/rts/hooks/MallocFail.c
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-07-17 09:21:51 +0000
committersimonmar <unknown>2002-07-17 09:21:51 +0000
commit7457757f193b28b5fe8fee01edbed012c2fda897 (patch)
tree2fc97b71a74138f210b9e76690693798f6259cca /ghc/rts/hooks/MallocFail.c
parent2790095b12b98c8d9407edc7fb3a6abe77de7d00 (diff)
downloadhaskell-7457757f193b28b5fe8fee01edbed012c2fda897.tar.gz
[project @ 2002-07-17 09:21:48 by simonmar]
Remove most #includes of system headers from Stg.h, and instead #include any required headers directly in each RTS source file. The idea is to (a) reduce namespace pollution from system headers that we don't need, (c) be clearer about dependencies on system things in the RTS, and (c) improve via-C compilation times (maybe). In practice though, HsBase.h #includes everything anyway, so the difference from the point of view of .hc source is minimal. However, this makes it easier to move to zero-includes if we wanted to (see discussion on the FFI list; I'm still not sure that's possible but at least this is a step in the right direction).
Diffstat (limited to 'ghc/rts/hooks/MallocFail.c')
-rw-r--r--ghc/rts/hooks/MallocFail.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ghc/rts/hooks/MallocFail.c b/ghc/rts/hooks/MallocFail.c
index 01f534e4e7..c4af10a7c0 100644
--- a/ghc/rts/hooks/MallocFail.c
+++ b/ghc/rts/hooks/MallocFail.c
@@ -1,5 +1,5 @@
/* -----------------------------------------------------------------------------
- * $Id: MallocFail.c,v 1.2 1998/12/02 13:29:12 simonm Exp $
+ * $Id: MallocFail.c,v 1.3 2002/07/17 09:21:51 simonmar Exp $
*
* User-overridable RTS hooks.
*
@@ -7,6 +7,8 @@
#include "Rts.h"
+#include <stdio.h>
+
void
MallocFailHook (lnat request_size /* in bytes */, char *msg)
{