[cffi-devel] swig - cffi module

Luís Oliveira luismbo at gmail.com
Sun Dec 18 04:04:02 UTC 2005


On 2005-dec-17, at 12:22, Vasilis M. wrote:
> i want to check if a cffi-type is an alias of :c-proxy and i use
>
> (defun c-proxy-alias-p (cffi-type)
>  (let ((tp (cffi::find-type cffi-type)))
>    (when (subtypep (type-of tp) 'cffi::foreign-type-alias)
>      (eql (cffi::name (cffi::actual-type tp)) :c-proxy))))
>
> is there a way to do that without accessing cffi internals?

Probably not, I suppose a foreign-subtype-p would be useful. Any  
suggestions for a better name?


> any ideas for array handling?, as i can see there is no :array type  
> in cffi.

What is it that you want to do with arrays that CFFI doesn't support?


-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Equipa Portuguesa do Translation Project
http://www.iro.umontreal.ca/translation/registry.cgi?team=pt




More information about the cffi-devel mailing list