mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
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:
parent
31a7f413d6
commit
d680962438
@ -892,7 +892,6 @@ start_field (GMarkupParseContext *context,
|
||||
writable = find_attribute ("writable", attribute_names, attribute_values);
|
||||
bits = find_attribute ("bits", attribute_names, attribute_values);
|
||||
branch = find_attribute ("branch", attribute_names, attribute_values);
|
||||
offset = find_attribute ("offset", attribute_names, attribute_values);
|
||||
|
||||
if (name == NULL)
|
||||
{
|
||||
@ -914,11 +913,6 @@ start_field (GMarkupParseContext *context,
|
||||
else
|
||||
field->bits = 0;
|
||||
|
||||
if (offset)
|
||||
field->offset = atoi (offset);
|
||||
else
|
||||
field->offset = 0;
|
||||
|
||||
switch (ctx->current_node->type)
|
||||
{
|
||||
case G_IR_NODE_OBJECT:
|
||||
|
Loading…
Reference in New Issue
Block a user