1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 2005
5 * RTS entry points as mandated by the FFI addendum to the Haskell 98 report
7 * ---------------------------------------------------------------------------*/
9 #include "PosixSource.h"
15 // hs_init and hs_exit are defined in RtsStartup.c
18 hs_set_argv(int argc, char *argv[])
20 setProgArgv(argc,argv);
26 /* Hmmm, the FFI spec is a bit vague, but it seems to imply a major GC... */
31 hs_free_stable_ptr(HsStablePtr sp)
33 /* The cast is for clarity only, both HsStablePtr and StgStablePtr are
34 typedefs for void*. */
35 freeStablePtr((StgStablePtr)sp);
39 hs_free_fun_ptr(HsFunPtr fp)
41 /* I simply *love* all these similar names... */
42 freeHaskellFunctionPtr(fp);