blob: 19493aee3f2adf08da8163a88e87a38a94a3783d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "HsFFI.h"
#include "conc059_stub.h"
#include <unistd.h>
#include <stdio.h>
#if mingw32_HOST_OS
#include <windows.h>
#endif
int main(int argc, char *argv[])
{
hs_init(&argc,&argv);
f(500000);
#if mingw32_HOST_OS
Sleep(100);
#else
usleep(100000);
#endif
printf("exiting...\n");
fflush(stdout);
hs_exit();
printf("exited.\n");
#if mingw32_HOST_OS
Sleep(1000);
#else
usleep(1000000);
#endif
exit(0);
}
|