diff options
author | Colin Walters <walters@src.gnome.org> | 2009-02-02 16:31:02 +0000 |
---|---|---|
committer | Colin Walters <walters@src.gnome.org> | 2009-02-02 16:31:02 +0000 |
commit | 34c6fe51cd8d669d95aef52bda9abbc38257bca9 (patch) | |
tree | 3785e49132f0f2cc0e536d3a677da746f56ba85a /ChangeLog | |
parent | f9a260e02e9921149d52622778ae7c489a5fa257 (diff) | |
download | gobject-introspection-34c6fe51cd8d669d95aef52bda9abbc38257bca9.tar.gz |
Bug 563469 – Arrays not treated correctly in struct offset calculation
Arrays are currently not handled specially, and hence treated as pointers in
giroffsets.c:get_field_size_alignment(), which is (obviously) wrong.
svn path=/trunk/; revision=1078
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -1,4 +1,23 @@ -2009-01-28 Johan Bilien <jobi@via.ecp.fr> +2009-02-02 Andreas Rottmann <a.rottmann@gmx.at> + + Bug 563469 – Arrays not treated correctly in struct offset calculation + + * tests/offsets/offsets.h (OffsetsArray): New struct, containing a + bunch of arrays. + + * tests/offsets/gen-gitestoffsets (FIELD_RE): Handle arrays. + + * girepository/giroffsets.c (get_interface_size_alignment): + Refactored to make it more general, now takes a GIrNodeType* + instead of a GIrNodeField*, plus an additional 'who' parameter + that denotes what the size/alignment is calculated for. + (get_type_size_alignment): New function, refactored version of + get_field_size_alignment(). + (get_field_size_alignment): Implemented in terms of + get_type_size_alignment(). + (get_type_size_alignment): Handle array types correctly. + + 2009-01-28 Johan Bilien <jobi@via.ecp.fr> * tests/scanner/annotation-1.0-expected.gir: add missing with_voidp |