X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fstrings.cl;h=06ffa5226edcc5e166b4291bc3416ef39bb674d5;hb=742e02bb6d9b6eef1206a450f18a04b7652942d9;hp=4d95e334ee1da8c41fd3145ebeb36b9b5ad6cb18;hpb=6957305d2fba5a66f90568af5ae9efc331482f55;p=uffi.git diff --git a/src/strings.cl b/src/strings.cl index 4d95e33..06ffa52 100644 --- a/src/strings.cl +++ b/src/strings.cl @@ -1,4 +1,4 @@ -;;;; -*- Mode: ANSI-Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- +;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: UFFI -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: strings.cl,v 1.14 2002/03/23 17:06:57 kevin Exp $ +;;;; $Id: strings.cl,v 1.18 2002/04/28 06:03:13 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -23,7 +23,9 @@ (def-constant +null-cstring-pointer+ #+cmu nil #+allegro 0 - #+lispworks (fli:make-pointer :address 0 :type '(:unsigned :char))) + #+lispworks (fli:make-pointer :address 0 :type '(:unsigned :char)) + #-(or cmu allegro lispworks) nil +) (defmacro convert-from-cstring (obj) "Converts a string from a c-call. Same as convert-from-foreign-string, except @@ -156,7 +158,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)))