-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.m
44 lines (34 loc) · 828 Bytes
/
main.m
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// main.m
// Lisp
//
// Created by David Pollak on 6/7/11.
// Copyright 2011 lift Web Framework. All rights reserved.
//
#import <UIKit/UIKit.h>
extern int Haskell_main(int argc, char* argv[]);
int main(int argc, char* argv[])
{
Haskell_main(argc, argv);
}
int doMain(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
int openWindow(void);
int openWindow() {
static char* args[2];
args[0] = "dummy";
args[1] = NULL;
return doMain(1, args);
}
/*
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
*/