chiark
/
gitweb
/
~mdw
/
clg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exporting *SIGNAL-STOP-EMISSION*
[clg]
/
glib
/
glib.lisp
diff --git
a/glib/glib.lisp
b/glib/glib.lisp
index 6d01049309aa7f74d5b8cd1fd30a589fc00fd93e..7931877017b2022636721aa6ca5b2460584c80cf 100644
(file)
--- a/
glib/glib.lisp
+++ b/
glib/glib.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.
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: glib.lisp,v 1.3
7 2006-04-25 21:51:32
espen Exp $
+;; $Id: glib.lisp,v 1.3
9 2006-12-21 16:38:19
espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-36,10
+36,12
@@
(defbinding (%allocate-memory "g_malloc0") () pointer
(defbinding (%deallocate-memory "g_free") () nil
(address pointer))
(defbinding (%deallocate-memory "g_free") () nil
(address pointer))
-(setf
- (symbol-function 'allocate-memory) #'%allocate-memory
- (symbol-function 'deallocate-memory) #'%deallocate-memory)
+
;;
(setf
+
;;
(symbol-function 'allocate-memory) #'%allocate-memory
+
;;
(symbol-function 'deallocate-memory) #'%deallocate-memory)
+(setf *memory-allocator* #'%allocate-memory)
+(setf *memory-deallocator* #'%deallocate-memory)
;;;; User data mechanism
;;;; User data mechanism
@@
-167,6
+169,9
@@
(define-type-method size-of ((type glist) &key inlined)
(assert-not-inlined type inlined)
(size-of 'pointer))
(assert-not-inlined type inlined)
(size-of 'pointer))
+(define-type-method type-alignment ((type glist) &key inlined)
+ (assert-not-inlined type inlined)
+ (type-alignment 'pointer))
(define-type-method alien-arg-wrapper ((type glist) var list style form &optional copy-in-p)
(destructuring-bind (element-type) (rest (type-expand-to 'glist type))
(define-type-method alien-arg-wrapper ((type glist) var list style form &optional copy-in-p)
(destructuring-bind (element-type) (rest (type-expand-to 'glist type))
@@
-317,6
+322,10
@@
(define-type-method size-of ((type gslist) &key inlined)
(assert-not-inlined type inlined)
(size-of 'pointer))
(assert-not-inlined type inlined)
(size-of 'pointer))
+(define-type-method type-alignment ((type gslist) &key inlined)
+ (assert-not-inlined type inlined)
+ (type-alignment 'pointer))
+
(define-type-method alien-arg-wrapper ((type gslist) var list style form &optional copy-in-p)
(destructuring-bind (element-type) (rest (type-expand-to 'gslist type))
(cond
(define-type-method alien-arg-wrapper ((type gslist) var list style form &optional copy-in-p)
(destructuring-bind (element-type) (rest (type-expand-to 'gslist type))
(cond