projects
/
clsql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bd7ba36
)
r4973: Auto commit for Debian build
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Fri, 16 May 2003 08:41:47 +0000
(08:41 +0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Fri, 16 May 2003 08:41:47 +0000
(08:41 +0000)
uffi/clsql-uffi.lisp
patch
|
blob
|
history
diff --git
a/uffi/clsql-uffi.lisp
b/uffi/clsql-uffi.lisp
index bf275ba8bde10c1763a983b25df2692d1604ae9c..730bf5d6328fb0b6a97c2c1c7750e6083dcdda1d 100644
(file)
--- a/
uffi/clsql-uffi.lisp
+++ b/
uffi/clsql-uffi.lisp
@@
-7,7
+7,7
@@
;;;; Programmers: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
;;;; Programmers: Kevin M. Rosenberg
;;;; Date Started: Mar 2002
;;;;
-;;;; $Id: clsql-uffi.lisp,v 1.1
0 2003/05/16 08:07:39
kevin Exp $
+;;;; $Id: clsql-uffi.lisp,v 1.1
1 2003/05/16 08:41:47
kevin Exp $
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
@@
-184,12
+184,19
@@
(declare (optimize (speed 3) (space 0) (safety 0) (compilation-speed 0))
(type char-ptr-def s))
(let* ((len (strlen s))
(declare (optimize (speed 3) (space 0) (safety 0) (compilation-speed 0))
(type char-ptr-def s))
(let* ((len (strlen s))
+ (len4 (floor len 4))
(str (make-string len)))
(declare (fixnum len)
(str (make-string len)))
(declare (fixnum len)
- (type (simple-array (unsigned-byte
8
) (*)) str))
+ (type (simple-array (unsigned-byte
32
) (*)) str))
(do ((i 0))
(do ((i 0))
- ((= i len))
+ ((= i len
4
))
(declare (fixnum i))
(declare (fixnum i))
- (setf (aref str i) (uffi:deref-array s '(:array :unsigned-char) i))
+ (setf (aref str i) (uffi:deref-array s '(:array :unsigned-int) i))
+ (incf i))
+ (do ((i (* 4 len4))
+ (str1 str))
+ ((= i len))
+ (declare (fixnum i) (type (simple-array (unsigned-byte 8) (*)) str1))
+ (setf (aref str1 i) (uffi:deref-array s '(:array :unsigned-char) i))
(incf i))
str))))
(incf i))
str))))