;;;; Programmers: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id: clsql-uffi.lisp,v 1.6 2003/05/15 07:33:21 kevin Exp $
+;;;; $Id: clsql-uffi.lisp,v 1.8 2003/05/15 07:45:17 kevin Exp $
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
low32
(make-64-bit-integer high32 low32)))))
(t
+ ;; Choose optimized routine
+ #-(or cmu sbcl)
(native-to-string char-ptr)
- #+ignore
+ #+(or cmu sbcl)
(uffi:convert-from-foreign-string char-ptr)))))))
:returning :unsigned-int)
(defun native-to-string (s)
- (declare (optimize (speed 3) (space 0) (safety 0) (compilation-speed 0)))
+ (declare (optimize (speed 3) (space 0) (safety 0) (compilation-speed 0))
+ (type char-ptr-def s))
(let* ((len (strlen s))
(str (make-string len)))
(declare (fixnum len)