X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/584285fba4d518f8d6f581b542ee6b38650ba287..2bd78f93f681c3afb5b555265ae3831fbe3ba017:/gffi/proxy.lisp diff --git a/gffi/proxy.lisp b/gffi/proxy.lisp index c2c3fbc..9cf15ca 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.3 2006-08-16 11:02:45 espen Exp $ +;; $Id: proxy.lisp,v 1.4 2006-08-16 12:09:03 espen Exp $ (in-package "GFFI") @@ -241,6 +241,9 @@ (defmethod compute-effective-slot-definition-initargs ((class proxy-class) dir (call-next-method)) (call-next-method))) + (defmethod slot-readable-p ((slotd effective-alien-slot-definition)) + (declare (ignore slotd)) + t) (defmethod compute-slot-reader-function ((slotd effective-alien-slot-definition) &optional signal-unbound-p) (declare (ignore signal-unbound-p)) @@ -250,6 +253,10 @@ (defmethod compute-slot-reader-function ((slotd effective-alien-slot-definitio #'(lambda (object) (funcall reader (foreign-location object) offset)))) + (defmethod slot-writable-p ((slotd effective-alien-slot-definition)) + (declare (ignore slotd)) + t) + (defmethod compute-slot-writer-function ((slotd effective-alien-slot-definition)) (let* ((type (slot-definition-type slotd)) (offset (slot-definition-offset slotd))