From attila.lendvai at gmail.com Sat Aug 2 13:47:51 2008 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Sat, 2 Aug 2008 15:47:51 +0200 Subject: [fetter-devel] parsing of extern In-Reply-To: <4E2AC2E1-0753-4706-AB4B-87FB6FFB005D@gmail.com> References: <4E2AC2E1-0753-4706-AB4B-87FB6FFB005D@gmail.com> Message-ID: > Sure.. attached... The first thing is the result when I run > generate-opengl-binding as is... The backtrace is obtained by removing the > handler-bind wrapper around the generate-binding call. dunno, works for me. i only have two ideas: - you are not using the latest of the verrazano repo - ccl behaves different than sbcl (which is where i've tested) -- attila From osei.poku at gmail.com Fri Aug 8 00:33:32 2008 From: osei.poku at gmail.com (Osei Poku) Date: Thu, 7 Aug 2008 20:33:32 -0400 Subject: [fetter-devel] parsing of extern In-Reply-To: References: <4E2AC2E1-0753-4706-AB4B-87FB6FFB005D@gmail.com> Message-ID: Ok so after further investigation, the problem turns out to be that when the given the following class defclass gccxml:externable-node (gccxml:definition) ((gccxml:extern :type boolean :accessor gccxml:extern?))) OpenMCL does this: ? (closer-mop:slot-definition-type (flexml::find-slot (find-class 'gccxml:externable-node) 'gccxml:extern)) (MEMBER T NIL) So, when inside the start-element method, the type of the the slot does not match anything and so is not transformed... Anyway, I modified the (eq slot-type 'boolean) to (or (eq slot-type 'boolean) (equal slot-type '(member t nil))) and it actually completes, but the contents of the bindings generated seem to be lacking any actual binding. This is a binding generated for the graphviz library using (generate- graphviz-binding). ;;; Generated by Verrazano 0.5 ;;; WARNING: This is a generated file, editing it is unwise! (COMMON-LISP:IN-PACKAGE :CL-USER) (COMMON-LISP:DEFPACKAGE :GRAPHVIZ-CFFI-BINDINGS (:USE :CFFI) (:NICKNAMES) (:EXPORT)) (COMMON-LISP:IN-PACKAGE :GRAPHVIZ-CFFI-BINDINGS) (COMMON-LISP:DEFUN VERRAZANO::VTABLE-LOOKUP (VERRAZANO::POBJ VERRAZANO::INDX VERRAZANO::COFF) (COMMON-LISP:LET ((VERRAZANO::VPTR (MEM-REF VERRAZANO::POBJ :POINTER VERRAZANO::COFF))) (MEM-AREF VERRAZANO::VPTR :POINTER (COMMON-LISP:- VERRAZANO::INDX 2)))) (COMMON-LISP:DEFMACRO VERRAZANO::VIRTUAL-FUNCALL (VERRAZANO::POBJ VERRAZANO::INDX VERRAZANO::COFF COMMON-LISP:&BODY VERRAZANO::BODY) (COMMON-LISP:LIST* 'FOREIGN-FUNCALL-POINTER (COMMON-LISP:LIST* (COMMON- LISP:LIST* 'VERRAZANO::VTABLE-LOOKUP (COMMON-LISP:LIST* VERRAZANO::POBJ (COMMON-LISP:LIST* VERRAZANO::INDX (COMMON-LISP:LIST VERRAZANO::COFF)))) (COMMON-LISP:LIST* COMMON-LISP:NIL VERRAZANO::BODY)))) On Aug 2, 2008, at 9:47 AM, Attila Lendvai wrote: >> Sure.. attached... The first thing is the result when I run >> generate-opengl-binding as is... The backtrace is obtained by >> removing the >> handler-bind wrapper around the generate-binding call. > > dunno, works for me. i only have two ideas: > > - you are not using the latest of the verrazano repo > - ccl behaves different than sbcl (which is where i've tested) > > -- > attila From attila.lendvai at gmail.com Fri Aug 8 08:55:03 2008 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Fri, 8 Aug 2008 10:55:03 +0200 Subject: [fetter-devel] parsing of extern In-Reply-To: References: <4E2AC2E1-0753-4706-AB4B-87FB6FFB005D@gmail.com> Message-ID: > OpenMCL does this: > > ? (closer-mop:slot-definition-type (flexml::find-slot (find-class > 'gccxml:externable-node) 'gccxml:extern)) > (MEMBER T NIL) thanks for identifying the problem! i've pushed a fix that uses subtypep. > This is a binding generated for the graphviz library using > (generate-graphviz-binding). i've added an extra :gccxml-flags that is needed on my recent ubuntu. with this it generates a binding for me, but it has some c++ stuff towards the end, so i'm not sure it works without filtering it out. hth, -- attila From relativeflux at hotmail.co.uk Wed Aug 13 17:19:53 2008 From: relativeflux at hotmail.co.uk (Christopher Melen) Date: Wed, 13 Aug 2008 18:19:53 +0100 Subject: [fetter-devel] (no subject) Message-ID: When loading the FLTK bindings from the examples I get a complaint from CFFI about an unknown CFFI type - THIS. Seems to be something to do with the virtual-funcall macro in the runtime. Any suggestions as to how to resolve this would be most welcome. Thanks, _________________________________________________________________ Get Hotmail on your mobile from Vodafone http://clk.atdmt.com/UKM/go/107571435/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris_melen at yahoo.com Wed Aug 13 17:14:29 2008 From: chris_melen at yahoo.com (christopher melen) Date: Wed, 13 Aug 2008 10:14:29 -0700 (PDT) Subject: [fetter-devel] (no subject) Message-ID: <954658.57995.qm@web54302.mail.re2.yahoo.com> When loading the FLTK bindings from the examples I get a complaint from CFFI about an unknown CFFI type - THIS. Seems to be something to do with the virtual-funcall macro in the runtime. Any suggestions as to how to resolve this would be most welcome. Thanks, Chris Send instant messages to your online friends http://uk.messenger.yahoo.com