RE: [cffi-devel] Help with recursive struct member

2013-11-01 Thread Joeish W
Thanks Luis I tested many different ways and your Idea worked =) I appreciate that On Thursday, October 31, 2013 8:24 AM, Luís Oliveira wrote: On Thu, Oct 31, 2013 at 8:40 AM, Joeish W wrote: > >> when i wrap like thisi know lisp is known for recursion how do i bypass >> this >> (defc

Re: [cffi-devel] Help with recursive struct member

2013-10-31 Thread Luís Oliveira
On Thu, Oct 31, 2013 at 8:40 AM, Joeish W wrote: > when i wrap like thisi know lisp is known for recursion how do i bypass > this > (defcstruct cv-mem-storage > (signature :int) > (bottom (:pointer (:struct cv-mem-block))) One work-around is to use a plain :POINTER. HTH, -- Luís Ol

[cffi-devel] Help with recursive struct member

2013-10-31 Thread Joeish W
here is the way CvMemStorage is defined typedef struct CvMemStorage {     int signature;     CvMemBlock* bottom;   /* First allocated block.   */     CvMemBlock* top;  /* Current memory block - top of the stack. */     struct  CvMemStorage* parent; /* W