[project @ 2003-01-28 16:30:06 by simonmar]
authorsimonmar <unknown>
Tue, 28 Jan 2003 16:30:07 +0000 (16:30 +0000)
committersimonmar <unknown>
Tue, 28 Jan 2003 16:30:07 +0000 (16:30 +0000)
commit34b568ce754f3bd56dc59d285a9d9e9e79c370e5
tree1a801f10e66bd020955d1b307eb212a0760da970
parent5d0ccfe99f2b3daebff76d6edf65f7484d1cf801
[project @ 2003-01-28 16:30:06 by simonmar]
Flesh out support for hs_init() and hs_exit() according to the latest
FFI spec.

For GHC, I also added:

  hs_add_root( void (*fn)(void) );

which is used to specify the root module.  This *must* be called prior
to invoking any Haskell functions.

The previous way of doing things still works:

  startupHaskell( argc, argv, root );

but the right way to do this is now

  hs_init( &argc, &argv );
  hs_add_root( root );

It is possible to invoke hs_add_root() multiple times with different
roots.

- setProgArgv() has been removed; it was unused and looks like it was
  there to support STG Hugs.
ghc/includes/HsFFI.h
ghc/includes/RtsAPI.h
ghc/rts/HsFFI.c
ghc/rts/RtsStartup.c