[project @ 2002-07-17 09:21:48 by simonmar]
authorsimonmar <unknown>
Wed, 17 Jul 2002 09:21:51 +0000 (09:21 +0000)
committersimonmar <unknown>
Wed, 17 Jul 2002 09:21:51 +0000 (09:21 +0000)
commit7457757f193b28b5fe8fee01edbed012c2fda897
tree2fc97b71a74138f210b9e76690693798f6259cca
parent2790095b12b98c8d9407edc7fb3a6abe77de7d00
[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).
29 files changed:
ghc/includes/PrimOps.h
ghc/includes/RtsFlags.h
ghc/includes/Stg.h
ghc/includes/mkNativeHdr.c
ghc/rts/Arena.c
ghc/rts/BlockAlloc.c
ghc/rts/Disassembler.c
ghc/rts/GC.c
ghc/rts/Hash.c
ghc/rts/Itimer.c
ghc/rts/MBlock.c
ghc/rts/PrimOps.hc
ghc/rts/Printer.c
ghc/rts/RtsFlags.c
ghc/rts/RtsStartup.c
ghc/rts/RtsUtils.c
ghc/rts/Schedule.c
ghc/rts/Select.c
ghc/rts/Signals.c
ghc/rts/StgPrimFloat.c
ghc/rts/Storage.c
ghc/rts/ThreadLabels.c
ghc/rts/hooks/ErrorHdr.c
ghc/rts/hooks/MallocFail.c
ghc/rts/hooks/NoRunnableThreads.c
ghc/rts/hooks/OutOfHeap.c
ghc/rts/hooks/PatErrorHdr.c
ghc/rts/hooks/RtsOpts.c
ghc/rts/hooks/StackOverflow.c