summaryrefslogtreecommitdiff
path: root/testsuite/tests/ffi
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-11-07 15:37:48 +0000
committerSimon Marlow <marlowsd@gmail.com>2011-11-08 14:29:47 +0000
commit73c8cec6e9c26a850055f9328c981395ecc1a2dd (patch)
tree2e309ade3189d447692c1320ecb661d71a6d46f4 /testsuite/tests/ffi
parent5f48bc14749eb46c172d2dc6af7967fb0dcdd0cf (diff)
downloadhaskell-73c8cec6e9c26a850055f9328c981395ecc1a2dd.tar.gz
update to use HsFFI.h (was using the old Rts.h API)
Diffstat (limited to 'testsuite/tests/ffi')
-rw-r--r--testsuite/tests/ffi/should_run/ffi002_c.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/testsuite/tests/ffi/should_run/ffi002_c.c b/testsuite/tests/ffi/should_run/ffi002_c.c
index 1e5edd2424..ccf9ac99cf 100644
--- a/testsuite/tests/ffi/should_run/ffi002_c.c
+++ b/testsuite/tests/ffi/should_run/ffi002_c.c
@@ -1,21 +1,19 @@
#include <stdio.h>
#include "ffi002_stub.h"
-#include "RtsAPI.h"
-
-extern void __stginit_Foo ( void );
+#include "HsFFI.h"
int main(int argc, char *argv[])
{
int i;
- startupHaskell(argc, argv, __stginit_Foo);
+ hs_init(&argc, &argv);
for (i = 0; i < 5; i++) {
printf("%d\n", foo(2500));
}
- shutdownHaskell();
+ hs_exit();
return 0;
}