summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2007-08-03 21:34:20 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2007-08-03 21:34:20 +0200
commitaeade98de336b37d14db19484ab2f2844adef556 (patch)
treeef5b4e9188be2afd105e1d0ccbe2e73337c45671
parentf92eae85ac10961c5c605593767689fa9a77efcd (diff)
Automatically turn Lisp strings into C strings.
darcs-hash:cc13d5beb528f8acdeb30bfdda0359ff237a6b09
-rw-r--r--objcl.lisp1
1 files changed, 1 insertions, 0 deletions
diff --git a/objcl.lisp b/objcl.lisp
index 5fcafd4..bb90c71 100644
--- a/objcl.lisp
+++ b/objcl.lisp
@@ -285,6 +285,7 @@
(typecase value
((or objc-id objc-class objc-selector objc-exception)
(pointer-to value))
+ (string (foreign-string-alloc value))
(otherwise value)))
(setf type
(foreign-string-alloc (type-name->type-id type-name)))