X-Git-Url: https://git.distorted.org.uk/~mdw/clg/blobdiff_plain/4fbd0a5b6907da0ebf9b2c994a1a60415ebd424e..4d83a8a641bfaeb0d858fbf37524f3d3b9b81a6e:/glib/glib.lisp diff --git a/glib/glib.lisp b/glib/glib.lisp index 9093a13..8817459 100644 --- a/glib/glib.lisp +++ b/glib/glib.lisp @@ -15,13 +15,14 @@ ;; License along with this library; if not, write to the Free Software ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -;; $Id: glib.lisp,v 1.12 2002-01-20 14:06:50 espen Exp $ +;; $Id: glib.lisp,v 1.13 2004-10-27 14:58:59 espen Exp $ (in-package "GLIB") (use-prefix "g") +;(load-shared-library "libglib-2.0") ;;;; Memory management @@ -351,10 +352,10 @@ `(dotimes (i ,length) (unreference-alien element-type (sap-ref-sap c-vector (* i ,element-size)))) - `(do ((offset 0 (+ offset ,element-size)) + `(do ((offset 0 (+ offset ,element-size))) ((sap= (sap-ref-sap c-vector offset) - *magic-end-of-array*))) + *magic-end-of-array*)) ,(unreference-alien element-type '(sap-ref-sap c-vector offset)))))) (deallocate-memory c-vector)))))