r1647: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sat, 23 Mar 2002 17:10:48 +0000 (17:10 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sat, 23 Mar 2002 17:10:48 +0000 (17:10 +0000)
src/strings.cl

index 18b7ffa88e0d44a17f3435bbba66d29775372640..4d95e334ee1da8c41fd3145ebeb36b9b5ad6cb18 100644 (file)
@@ -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.14 2002/03/23 17:06:57 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