Commit 8956807f authored by rrt's avatar rrt

[project @ 2001-08-15 10:16:46 by rrt]

argc and argv no longer need faking; System.lhs copes
parent 174e06f8
/*
* (c) The GHC Team 2001
*
* $Id: ilxstubs.c,v 1.3 2001/08/15 09:23:25 rrt Exp $
* $Id: ilxstubs.c,v 1.4 2001/08/15 10:16:46 rrt Exp $
*
* ILX stubs for external function calls
*/
......@@ -34,22 +34,6 @@
../PrelTopHandler.lhs:77:foreign import ccall "stackOverflow" unsafe
../PrelTopHandler.lhs:80:foreign import ccall "stg_exit" unsafe */
/* Fake this for now, as a DLL can't refer to main() */
int argc = 0;
char **argv = NULL;
int
prog_argc_addr(void)
{
return &argc;
}
char ***
prog_argv_addr(void)
{
return &argv;
}
void
stg_exit(I_ n)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment