X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Finteger.c;h=928e4960a3a18dab24b43d0266a93a730b5c2a61;hp=c207079defc661876225e38977fe1c0fcc7bb230;hb=9e29e16ee50d03cf4fdc0cea0220832323939dc3;hpb=f66259163f060ada8d0fee348857c968e338ea40 diff --git a/types/integer.c b/types/integer.c index c207079d..928e4960 100644 --- a/types/integer.c +++ b/types/integer.c @@ -23,7 +23,8 @@ static struct definition *_integer_definition_new(struct declaration *declaration, - struct definition_scope *parent_scope); + struct definition_scope *parent_scope, + GQuark field_name, int index); static void _integer_definition_free(struct definition *definition); @@ -80,7 +81,8 @@ struct declaration_integer * static struct definition * _integer_definition_new(struct declaration *declaration, - struct definition_scope *parent_scope) + struct definition_scope *parent_scope, + GQuark field_name, int index) { struct declaration_integer *integer_declaration = container_of(declaration, struct declaration_integer, p); @@ -91,6 +93,7 @@ struct definition * integer->p.declaration = declaration; integer->declaration = integer_declaration; integer->p.ref = 1; + integer->p.index = index; integer->value._unsigned = 0; return &integer->p; }