Remove field offsets from g-ir-generate output and test inputs

Field offsets are a) architecture dependent so they shouldn't be part
of the architecture-independent gir format which is installed in
datadir. b) Are architecture-dependent so they shouldn't be in test
expected output. Remove field offsets from girs.
(Virtual function and discriminator offsets are not removed, as they
aren't fully hooked up to the field-offset computation machinery yet.)

svn path=/trunk/; revision=877
This commit is contained in:
Owen Taylor 2008-11-11 05:10:47 +00:00 committed by Philip Withnall
parent 2d1e6e2c5c
commit 1892f7dcfd

View File

@ -354,8 +354,6 @@ write_field_info (const gchar *namespace,
if (size) if (size)
xml_printf (file, " bits=\"%d\"", size); xml_printf (file, " bits=\"%d\"", size);
xml_printf (file, " offset=\"%d\"", offset);
type = g_field_info_get_type (info); type = g_field_info_get_type (info);
if (branch) if (branch)