diff options
author | simonmar <unknown> | 2002-07-17 09:21:51 +0000 |
---|---|---|
committer | simonmar <unknown> | 2002-07-17 09:21:51 +0000 |
commit | 7457757f193b28b5fe8fee01edbed012c2fda897 (patch) | |
tree | 2fc97b71a74138f210b9e76690693798f6259cca /ghc/rts/BlockAlloc.c | |
parent | 2790095b12b98c8d9407edc7fb3a6abe77de7d00 (diff) | |
download | haskell-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/BlockAlloc.c')
-rw-r--r-- | ghc/rts/BlockAlloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ghc/rts/BlockAlloc.c b/ghc/rts/BlockAlloc.c index f33ab86468..9d13719918 100644 --- a/ghc/rts/BlockAlloc.c +++ b/ghc/rts/BlockAlloc.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: BlockAlloc.c,v 1.13 2001/11/08 14:42:11 simonmar Exp $ + * $Id: BlockAlloc.c,v 1.14 2002/07/17 09:21:49 simonmar Exp $ * * (c) The GHC Team 1998-2000 * @@ -23,6 +23,8 @@ #include "BlockAlloc.h" #include "MBlock.h" +#include <string.h> + static void initMBlock(void *mblock); static bdescr *allocMegaGroup(nat mblocks); static void freeMegaGroup(bdescr *bd); |