From 7acaf91d3e2c3debd7dc398d71948362e9ff12c7 Mon Sep 17 00:00:00 2001 From: Andreas Rottmann Date: Sat, 3 Jan 2009 14:36:59 +0000 Subject: =?UTF-8?q?Bug=20563469=20=E2=80=93=20Arrays=20not=20treated=20cor?= =?UTF-8?q?rectly=20in=20struct=20offset=20calculation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2009-01-03 Andreas Rottmann Bug 563469 – Arrays not treated correctly in struct offset calculation * tests/scanner/foo.h (FooObject): Added field `some_int'. * tests/scanner/foo-1.0-expected.gir, * tests/scanner/foo-1.0-expected.tgir: Adapted. * giscanner/glibtransformer.py (GLibTransformer._create_gobject): carry over object fields from original (struct) node. (GLibTransformer._pair_class_struct): Don't add fields of the class struct to to the node for the class, they should go under a nested element (see also Bug 551738). This is needed as otherwise offset calculation would not work, as the instance fields are mingled with the class fields without a way to distinguish them. svn path=/trunk/; revision=1000 --- tests/scanner/foo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/scanner/foo.h') diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h index fd9d3590..b51d0c88 100644 --- a/tests/scanner/foo.h +++ b/tests/scanner/foo.h @@ -55,6 +55,8 @@ void foo_sub_interface_do_bar (FooSubInterface *self); struct _FooObject { GObject parent_instance; + + int some_int; }; struct _FooObjectClass -- cgit v1.2.1