X-Git-Url: https://git.distorted.org.uk/~mdw/clg/blobdiff_plain/dba0c4467ec6412ea2666a2621ae496cc2ee7552..f9e76ebedea0ba6c60589cf75b0327794e800d7a:/glib/glib.lisp diff --git a/glib/glib.lisp b/glib/glib.lisp index 5ed1414..9093a13 100644 --- a/glib/glib.lisp +++ b/glib/glib.lisp @@ -15,7 +15,7 @@ ;; 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.10 2001-05-11 16:00:33 espen Exp $ +;; $Id: glib.lisp,v 1.12 2002-01-20 14:06:50 espen Exp $ (in-package "GLIB") @@ -32,10 +32,10 @@ (address pointer) (size unsigned-long)) -;(defbinding (deallocate-memory "g_free") () nil -; (address pointer)) -(defun deallocate-memory (address) - (declare (ignore address))) +(defbinding (deallocate-memory "g_free") () nil + (address pointer)) +;(defun deallocate-memory (address) +; (declare (ignore address))) (defun copy-memory (from length &optional (to (allocate-memory length))) (kernel:system-area-copy from 0 to 0 (* 8 length)) @@ -327,7 +327,7 @@ (dotimes (i ,length) (setf (aref vector i) - ,(translate-to-alien + ,(translate-from-alien element-type `(,(sap-ref-fname element-type) c-array (* i ,element-size)) weak-ref))) @@ -379,4 +379,3 @@ (elt sequence i) (funcall function (funcall reader location (* i size))))) sequence))))) - \ No newline at end of file