[cffi-devel] Re: deftype bug report

Luis Oliveira luismbo at gmail.com
Thu Jun 7 22:43:00 UTC 2007


"Attila Lendvai" <attila.lendvai at gmail.com> writes:
[...]
> CFFI> (defctype* foo foo)
>
> CFFI> (defcfun func foo)
>
> it puts cffi in an endless recursion. if it's possible, there should
> be some kind of error checking at the type definition that avoids
> this.

I've pushed a fix that should take care of

  (defctype* foo foo)

as well as

  (defctype* bar baz)
  (defctype* baz bar)

It will also signal an error when doing something like this:

  (defctype foo :int)
  (defctype foo foo)

Though that doesn't actually create a cycle.

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/




More information about the cffi-devel mailing list