cffi-devel  

Re: [cffi-devel] Strange equivalence

Luís Oliveira
Sun, 25 Apr 2010 07:10:30 -0700

On Sun, Apr 25, 2010 at 2:57 PM, Juan Jose Garcia-Ripoll
<juanjose.garciarip...@googlemail.com> wrote:
> that associates, for the ECL port, a byte with the CFFI :char type. Is this
> intended per-specification? Why not using ECL's :char type, which might be
> more than one byte if the compiler and operating system expect so?

My guess is that we're using :byte instead of :char because ECL's
:char converts C chars to Lisp characters, which is not what CFFI's
:char is supposed to do. In any case, the C spec states that
sizeof(char) == 1, does it not?

-- 
Luís Oliveira
http://r42.eu/~luis/

_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel