X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstrings.cl;h=cc3a1edc721d58c6eb948fdbbc02f6ade98c0813;hb=ab96e211bb083d1e1ea4edca83d4f6d47b41c84b;hp=18b7ffa88e0d44a17f3435bbba66d29775372640;hpb=ca7e9a2299773cfbc927d71e6289549601438b24;p=uffi.git diff --git a/src/strings.cl b/src/strings.cl index 18b7ffa..cc3a1ed 100644 --- a/src/strings.cl +++ b/src/strings.cl @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: strings.cl,v 1.13 2002/03/23 12:58:12 kevin Exp $ +;;;; $Id: strings.cl,v 1.15 2002/03/31 23:05:07 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -67,6 +67,12 @@ that LW/CMU automatically converts strings from c-calls." ,@body))) ) +(defmacro with-cstrings (bindings &rest body) + (if bindings + `(with-cstring ,(car bindings) + (with-cstrings ,(cdr bindings) + ,@body)) + `(progn ,@body))) ;;; Foreign string functions @@ -150,7 +156,6 @@ that LW/CMU automatically converts strings from c-calls." ) (defmacro with-foreign-string ((foreign-string lisp-string) &body body) - #-(or lispworks cmu) (let ((result (gensym))) `(let* ((,foreign-string (convert-to-foreign-string ,lisp-string)) (,result (progn ,@body)))