[cffi-devel] uffi compatible library
Gustavo
gugamilare at gmail.com
Mon Aug 23 13:02:00 UTC 2010
Those don't fail, but:
UFFI-TESTS> (let ((native-string "test string"))
(uffi:with-foreign-string (fs native-string)
(ensure-char-character
(deref-pointer fs :char))))
#\t
UFFI-TESTS> (let ((native-string "test string"))
(uffi:with-foreign-string (fs native-string)
(deref-pointer fs :char)))
116
The latter would return #\t in uffi-compat.
Em 22 de agosto de 2010 18:25, Luís Oliveira <luismbo at gmail.com> escreveu:
2010/8/10 Gustavo <gugamilare at gmail.com>:
> > I found one inconsistency in uffi's documentation. Uffi's doc says that
> > dereferencing types :char and :unsigned-char return characters where
> > actually it returns integers (at least here).
>
> Does that mean these tests fail for you?
> <http://git.b9.com/?p=uffi.git;a=blob;f=tests/objects.lisp>
>
> --
> Luís Oliveira
> http://r42.eu/~luis/ <http://r42.eu/%7Eluis/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20100823/60507b7b/attachment.html>
More information about the cffi-devel
mailing list