Fix: ir: bt_ctf_field_type_variant_validate(): do not compare to tag length
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 2 May 2017 21:19:53 +0000 (17:19 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:42 +0000 (12:57 -0400)
commite9eb537e05548ea948c80bad88789303e0c14b75
tree058df27c1044c47eba81ef5c8878f62897e5b288
parentfa054faf3a18fd8003510c32718c1fd4fbf3dd46
Fix: ir: bt_ctf_field_type_variant_validate(): do not compare to tag length

Because the same label can map to multiple values in an enumeration FT,
the number of fields in a variant FT does not need to be the same as the
number of mappings in its tag FT for the variant FT to be considered
valid.

Relax this by only making sure that each tag FT mapping has an entry in
the variant FT which shares the same name. Unused variant FT
fields/choices are not a problem per se, just a waste of space.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/ctf-ir/field-types.c
This page took 0.024189 seconds and 4 git commands to generate.