cvs commit: fptools/ghc/includes Closures.h HsFFI.h RtsAPI.h Stable.h Stg.h StgTypes.h fptools/ghc/rts RtsAPI.c

Simon Marlow simonmar@glass.cse.ogi.edu
Tue, 7 Nov 2000 09:05:47 -0800


simonmar    2000/11/07 09:05:47 PST

  Modified files:
    ghc/includes         Closures.h HsFFI.h RtsAPI.h Stable.h 
                         Stg.h StgTypes.h 
    ghc/rts              RtsAPI.c 
  Log:
  Clean ups:
  
     - reduce the namespace pollution of StgTypes.h, it doesn't define
       the shorthand versions any more (W_, I_ etc.).  These are moved into
       Stg.h.  StgTypes.h also defines StgClosure as an "opaque" struct.
  
     - RtsAPI.h is now standalone, and includes HsFFI.h and thereby
       config.h & StgTypes.h.  Now we don't need to #include "Stg.h" in
       *_stub.c.
  
     - all the rts_mkXXXX and rts_getXXXX functions are defined in terms
       of the HsXXXX types rather than random C types (this fixes some
       potential bugs in our foreign export support).
  
     - added HsWord type, to match StgWord.  The Haskell version of this
       type isn't "documented", but perhaps it should be.
  
  Revision  Changes    Path
  1.19      +3 -3      fptools/ghc/includes/Closures.h
  1.8       +2 -1      fptools/ghc/includes/HsFFI.h
  1.18      +30 -43    fptools/ghc/includes/RtsAPI.h
  1.7       +14 -4     fptools/ghc/includes/Stable.h
  1.33      +37 -3     fptools/ghc/includes/Stg.h
  1.15      +22 -50    fptools/ghc/includes/StgTypes.h
  1.21      +27 -27    fptools/ghc/rts/RtsAPI.c