Various hsc2hs improvements
authorIan Lynagh <igloo@earth.li>
Tue, 25 Oct 2011 14:45:36 +0000 (15:45 +0100)
committerIan Lynagh <igloo@earth.li>
Tue, 25 Oct 2011 14:45:36 +0000 (15:45 +0100)
commit5f3ac5267914cc020c11b148cdbc4356bd6eb02a
tree740f20b4686636f5ab39e411c2773a5beb2c0334
parent4f8f41929c42f5680e745f4a3ceebb4ff26e5cc8
Various hsc2hs improvements

* Fix GHC trac #2897: Generate a separate "utils" C file containing
  wrappers for functions like printf. This means template-hsc.h
  doesn't need to includes any headers, so we don't pollute the C
  environment.
  (actually, we still need to include stddef.h).

* Use runProcess rather than system. It used to try to conditionally
  use runProcess if it was available, but never actually did. Now it
  uses it unconditionally.

* Some tidying up
C.hs
CrossCodegen.hs
DirectCodegen.hs
Main.hs
UtilsCodegen.hs [new file with mode: 0644]
hsc2hs.cabal
template-hsc.h