]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/os-macosx.hpp
webapps.wiki: adding search bar
[factor.git] / vm / os-macosx.hpp
index cdc0ff7b426bbb89a6075ba7ac18211baccf8aa7..83a20541620838a9a31b35cb23a5fdba6485a213 100644 (file)
@@ -1,22 +1,18 @@
-namespace factor
-{
+namespace factor {
 
 #define VM_C_API extern "C" __attribute__((visibility("default")))
 #define FACTOR_OS_STRING "macosx"
-#define NULL_DLL "libfactor.dylib"
 
-void init_signals();
 void early_init();
 
-const char *vm_executable_path();
-const char *default_image_path();
+const charvm_executable_path();
+const chardefault_image_path();
 
-inline static void *ucontext_stack_pointer(void *uap)
-{
-       ucontext_t *ucontext = (ucontext_t *)uap;
-       return ucontext->uc_stack.ss_sp;
-}
+#define UAP_STACK_POINTER(ucontext) (((ucontext_t*)ucontext)->uc_stack.ss_sp)
 
-void c_to_factor_toplevel(cell quot);
+#define CODE_TO_FUNCTION_POINTER(code) (void)0
+#define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
+#define FUNCTION_CODE_POINTER(ptr) ptr
+#define FUNCTION_TOC_POINTER(ptr) ptr
 
 }