X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/61308fc461733d234c0f09a0bf9f4edcd5e2f314..5d6e08211c9e243d529046e9089a45e8a38f271a:/gffi/proxy.lisp diff --git a/gffi/proxy.lisp b/gffi/proxy.lisp index d67ee96..0252520 100644 --- a/gffi/proxy.lisp +++ b/gffi/proxy.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: proxy.lisp,v 1.7 2007-04-06 14:29:42 espen Exp $ +;; $Id: proxy.lisp,v 1.9 2007-06-20 11:13:45 espen Exp $ (in-package "GFFI") @@ -167,6 +167,7 @@ (defmethod instance-finalizer ((instance proxy)) ;; :FINALZIE given to MAKE-PROXY-INSTANCE or non NIL if the proxy was ;; created with MAKE-INSTANCE (defmethod invalidate-instance ((instance proxy) &optional finalize-p) + #+clisp(declare (ignore finalize-p)) (remove-cached-instance (foreign-location instance)) #+(or sbcl cmu) (progn @@ -301,6 +302,8 @@ (defmethod compute-slot-writer-function ((slotd effective-virtual-alien-slot-d #'(lambda (value object) (unless writer (setq writer (mkbinding setter nil 'pointer type))) + ;; First argument in foreign setters is the object and second + ;; is value (funcall writer (foreign-location object) value))) (call-next-method)))