enum: Clarify behavior for omitted values after range
[ctf.git] / common-trace-format-specification.txt
index 9070c0206cffd8920357439d740caedcb0d7ae08..e0944b5d84b6491e33c6e9c0b6b889b0751b845b 100644 (file)
@@ -1,4 +1,4 @@
-Common Trace Format (CTF) Specification (pre-v1.8)
+Common Trace Format (CTF) Specification (v1.8.1)
 
 Mathieu Desnoyers, EfficiOS Inc.
 
@@ -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,
@@ -1732,6 +1733,7 @@ typedef-name:
 2.3) CTF-specific declarations
 
 ctf-specifier:
+       clock { ctf-assignment-expression-list-opt }
        event { ctf-assignment-expression-list-opt }
        stream { ctf-assignment-expression-list-opt }
        env { ctf-assignment-expression-list-opt }
This page took 0.022872 seconds and 4 git commands to generate.