[project @ 2000-11-07 17:05:47 by simonmar]
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.
Showing
- ghc/includes/Closures.h 3 additions, 3 deletionsghc/includes/Closures.h
- ghc/includes/HsFFI.h 2 additions, 1 deletionghc/includes/HsFFI.h
- ghc/includes/RtsAPI.h 30 additions, 43 deletionsghc/includes/RtsAPI.h
- ghc/includes/Stable.h 14 additions, 4 deletionsghc/includes/Stable.h
- ghc/includes/Stg.h 37 additions, 3 deletionsghc/includes/Stg.h
- ghc/includes/StgTypes.h 22 additions, 50 deletionsghc/includes/StgTypes.h
- ghc/rts/RtsAPI.c 27 additions, 27 deletionsghc/rts/RtsAPI.c
Loading
Please register or sign in to comment