]> git.saurik.com Git - cycript.git/blobdiff - Analysis.cpp
Port modules to typedef/extern instead of @encode.
[cycript.git] / Analysis.cpp
index a5b1822a843146f0bf446b9d3c601509f9acc888..520de5404c3b9d3649ef566eca6ecd72866ad1b5 100644 (file)
@@ -1,5 +1,5 @@
-/* Cycript - Optimizing JavaScript Compiler/Runtime
- * Copyright (C) 2009-2015  Jay Freeman (saurik)
+/* Cycript - The Truly Universal Scripting Language
+ * Copyright (C) 2009-2016  Jay Freeman (saurik)
 */
 
 /* GNU Affero General Public License, Version 3 {{{ */
 **/
 /* }}} */
 
+#define __USE_EXTERN_INLINES
+
+#include <dirent.h>
 #include <dlfcn.h>
+#include <fcntl.h>
+#include <math.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
 
+#include <sys/mman.h>
+#include <sys/mount.h>
 #include <sys/stat.h>
 
 #include <sqlite3.h>
 
-#ifdef __OBJC__
+#if CY_JAVA
+#ifdef __APPLE__
+#include <JavaVM/jni.h>
+#else
+#include <jni.h>
+#endif
+#endif
+
+#if CY_RUBY
+#ifdef __APPLE__
+#include <Ruby/ruby.h>
+#else
+#include <ruby.h>
+#endif
+#endif
+
+#if CY_PYTHON
+#include <Python.h>
+#endif
+
+#if CY_OBJECTIVEC
 #include <objc/runtime.h>
 #endif
 
 #include <CoreLocation/CoreLocation.h>
 #include <Security/Security.h>
 
+#include <mach/mach.h>
+#include <mach/mach_vm.h>
+#include <mach/vm_map.h>
+
+#include <mach-o/dyld.h>
+#include <mach-o/dyld_images.h>
+
 #if TARGET_OS_IPHONE
 #include <UIKit/UIKit.h>
+extern "C" UIApplication *UIApp;
 #else
 #include <AppKit/AppKit.h>
 #endif