chiark
/
gitweb
/
~mdw
/
clg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved alignment of struct slots
[clg]
/
glib
/
glib.lisp
diff --git
a/glib/glib.lisp
b/glib/glib.lisp
index 2ab6fa4e6f5104d6edfaaf45512d3ca48c8012ef..88d960eb2e6eaf20c8a67fba9e1d59ee776d5f19 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
8 2006/06/08 13:24:25
espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-167,6
+167,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
+320,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