From 0cedf6e545d9cb736218fed5832a2a9ae81b5ef1 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 11 Apr 2012 09:49:14 -0400 Subject: [PATCH] enum: Clarify behavior for omitted values after range Signed-off-by: Mathieu Desnoyers --- common-trace-format-specification.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common-trace-format-specification.txt b/common-trace-format-specification.txt index 27da4c4..e0944b5 100644 --- a/common-trace-format-specification.txt +++ b/common-trace-format-specification.txt @@ -358,7 +358,8 @@ enum name : integer_type { }; If the values are omitted, the enumeration starts at 0 and increment of 1 for -each entry: +each entry. An entry with omitted value that follows a range entry takes +as value the end_value of the previous range + 1: enum name : unsigned int { ZERO, -- 2.34.1