]>
Commit | Line | Data |
---|---|---|
7341eedb JF |
1 | /* Cycript - The Truly Universal Scripting Language |
2 | * Copyright (C) 2009-2016 Jay Freeman (saurik) | |
8d20f0f1 JF |
3 | */ |
4 | ||
5 | /* GNU Affero General Public License, Version 3 {{{ */ | |
6 | /* | |
7 | * This program is free software: you can redistribute it and/or modify | |
8 | * it under the terms of the GNU Affero General Public License as published by | |
9 | * the Free Software Foundation, either version 3 of the License, or | |
10 | * (at your option) any later version. | |
11 | ||
12 | * This program is distributed in the hope that it will be useful, | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | * GNU Affero General Public License for more details. | |
16 | ||
17 | * You should have received a copy of the GNU Affero General Public License | |
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 | **/ | |
20 | /* }}} */ | |
21 | ||
2e43a0b0 JF |
22 | #define __USE_EXTERN_INLINES |
23 | ||
43328ac6 | 24 | #include <dirent.h> |
8d20f0f1 | 25 | #include <dlfcn.h> |
e2ce853b | 26 | #include <fcntl.h> |
43328ac6 JF |
27 | #include <math.h> |
28 | #include <stdint.h> | |
29 | #include <stdio.h> | |
30 | #include <stdlib.h> | |
2e43a0b0 | 31 | #include <unistd.h> |
8d20f0f1 | 32 | |
e2ce853b | 33 | #include <sys/mman.h> |
43328ac6 | 34 | #include <sys/mount.h> |
8d20f0f1 JF |
35 | #include <sys/stat.h> |
36 | ||
37 | #include <sqlite3.h> | |
38 | ||
a2beb6bb | 39 | #if CY_JAVA |
7625b66c | 40 | #if defined(__APPLE__) && !defined(__arm__) |
a2beb6bb JF |
41 | #include <JavaVM/jni.h> |
42 | #else | |
43 | #include <jni.h> | |
44 | #endif | |
45 | #endif | |
46 | ||
47 | #if CY_RUBY | |
48 | #ifdef __APPLE__ | |
49 | #include <Ruby/ruby.h> | |
50 | #else | |
51 | #include <ruby.h> | |
52 | #endif | |
53 | #endif | |
54 | ||
55 | #if CY_PYTHON | |
56 | #include <Python.h> | |
57 | #endif | |
58 | ||
59 | #if CY_OBJECTIVEC | |
8d20f0f1 JF |
60 | #include <objc/runtime.h> |
61 | #endif | |
62 | ||
63 | #ifdef __APPLE__ | |
64 | #include <AddressBook/AddressBook.h> | |
65 | #include <CoreData/CoreData.h> | |
66 | #include <CoreLocation/CoreLocation.h> | |
b101f754 | 67 | #include <MapKit/MapKit.h> |
8d20f0f1 JF |
68 | #include <Security/Security.h> |
69 | ||
7625b66c JF |
70 | #include <dispatch/dispatch.h> |
71 | ||
aaa29c28 JF |
72 | #include <mach/mach.h> |
73 | #include <mach/mach_vm.h> | |
74 | #include <mach/vm_map.h> | |
75 | ||
76 | #include <mach-o/dyld.h> | |
77 | #include <mach-o/dyld_images.h> | |
b101f754 | 78 | #include <mach-o/nlist.h> |
aaa29c28 | 79 | |
8d20f0f1 JF |
80 | #if TARGET_OS_IPHONE |
81 | #include <UIKit/UIKit.h> | |
aaa29c28 | 82 | extern "C" UIApplication *UIApp; |
8d20f0f1 JF |
83 | #else |
84 | #include <AppKit/AppKit.h> | |
85 | #endif | |
86 | #endif | |
7625b66c JF |
87 | |
88 | #ifdef __ANDROID__ | |
89 | #include <android/log.h> | |
90 | #endif |