From: Mathieu Desnoyers Date: Wed, 4 Dec 2013 15:55:45 +0000 (+0100) Subject: Clarify variant vs enum X-Git-Tag: v1.8.3~10 X-Git-Url: http://git.efficios.com/?p=ctf.git;a=commitdiff_plain;h=23bb140f3ee731a34e3baf772abed0cffc67b0a3 Clarify variant vs enum Signed-off-by: Mathieu Desnoyers --- diff --git a/common-trace-format-specification.txt b/common-trace-format-specification.txt index 7d013d0..abe4fb7 100644 --- a/common-trace-format-specification.txt +++ b/common-trace-format-specification.txt @@ -468,9 +468,11 @@ by the mapping from the enumeration value to the string used as variant type selector. The field to use as tag is specified by the "tag_field", specified between "< >" after the "variant" keyword for unnamed variants, and after "variant name" for named variants. It is not -required that each enumeration mapping appears as variant type tag field. -However, it is required that any enumeration mapping encountered within a -stream has a matching variant type tag field. +required that each enumeration mapping appears as variant type tag +field. It is also not required that each variant type tag appears as +enumeration mapping. However, it is required that any enumeration +mapping encountered within a stream has a matching variant type tag +field. The alignment of the variant is the alignment of the type as selected by the tag value for the specific instance of the variant. The size of the