[project @ 2000-05-31 11:58:27 by panne]
authorpanne <unknown>
Wed, 31 May 2000 11:58:27 +0000 (11:58 +0000)
committerpanne <unknown>
Wed, 31 May 2000 11:58:27 +0000 (11:58 +0000)
commit799b3236aa468320b355c18a192fe18df43bdd25
tree3c4c164175b8f4175ef3c3dffd0c627c7bbebb8e
parente7f04a0da2a711266b58274a1a935d93bb034620
[project @ 2000-05-31 11:58:27 by panne]
Trying to get the whole #include business right: ccalls are unfolded
into interface files, even without -funfold-casms-in-hi-file. Although
this is a good thing performance-wise, the header files should better
be #included during compilation of the .hc files. Solution:

   * Every .hc file #includes "Stg.h" first.

   * For every package `foo' used, "HsFoo.h" is #included, too. This
     means that every package has to come with a corresponding header
     file, even if it is empty.

Downside:

   * Getting #includes right with ghc-inplace is a little bit ugly:
     The boot target in Makefiles must copy the package's header files
     into GHC_INCLUDE_DIR (don't forget the clean target!), and final
     installation of those headers is done there, too.   :-P  Better
     solutions are highly welcome.

   * Possible pollution of the C name spaces.
ghc/driver/ghc.lprl