summaryrefslogtreecommitdiff
path: root/Objective-C
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-02-19 13:22:41 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-02-19 13:22:41 +0100
commitfedbfff7c5f7091e5e2b2d29d6ebf1a20349f60f (patch)
treeeb16eb2cfcc7e3fada9ac227c92468d909118449 /Objective-C
parent619b17ce5eb96b3cfd5f2d94174270a31e46871c (diff)
Reimplement slot writing.
darcs-hash:54a65f96e6367f42013fef524eeddbeb4b8889ec
Diffstat (limited to 'Objective-C')
-rw-r--r--Objective-C/libobjcl.h3
-rw-r--r--Objective-C/libobjcl.m8
2 files changed, 11 insertions, 0 deletions
diff --git a/Objective-C/libobjcl.h b/Objective-C/libobjcl.h
index c2e2fac..b5cefce 100644
--- a/Objective-C/libobjcl.h
+++ b/Objective-C/libobjcl.h
@@ -59,6 +59,9 @@ extern id objcl_current_exception;
extern NSRecursiveLock *objcl_current_exception_lock;
+void *
+objcl_memmove (void *dest, void *src, unsigned long length);
+
void
objcl_initialise_runtime (void);
diff --git a/Objective-C/libobjcl.m b/Objective-C/libobjcl.m
index f244e50..646dccd 100644
--- a/Objective-C/libobjcl.m
+++ b/Objective-C/libobjcl.m
@@ -25,6 +25,7 @@
#import "Foundation/Foundation.h"
#include <stdarg.h>
+#include <string.h>
#include <sys/mman.h>
#include <objc/objc-api.h>
@@ -68,6 +69,13 @@ static NSMutableSet *lisp_backed_classes = nil;
static int init_count = 0;
+void *
+objcl_memmove (void *dest, void *src, unsigned long length)
+{
+ return memmove (dest, src, length);
+}
+
+
void
objcl_initialise_runtime (void)
{