* Version 1.5.7
* src/strings.lisp: Add with-foreign-strings by James Biel
+2005-11-14 Kevin Rosenberg (kevin@rosenberg.net)
+ * Version 1.5.7
+ * src/strings.lisp: Add with-foreign-strings by James Biel
+
2005-11-14 Kevin Rosenberg (kevin@rosenberg.net)
* Version 1.5.6
* src/os.lisp: Remove getenv setter
+cl-uffi (1.5.7-1) unstable; urgency=low
+
+ * New upstream
+
+ -- Kevin M. Rosenberg <kmr@debian.org> Mon, 14 Nov 2005 19:39:25 -0700
+
cl-uffi (1.5.6-1) unstable; urgency=low
* New upstream
#:convert-to-foreign-string
#:allocate-foreign-string
#:with-foreign-string
+ #:with-foreign-strings
#:foreign-string-length
;; function call
(free-foreign-object ,foreign-string)
,result)))
+(defmacro with-foreign-strings (bindings &body body)
+ `(with-foreign-string ,(car bindings)
+ ,@(if (cdr bindings)
+ `((with-foreign-strings ,(cdr bindings) ,@body))
+ body)))
;; Modified from CMUCL's source to handle non-null terminated strings
#+cmu