Add enum {} default mapping to integer type
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 28 Apr 2011 23:45:34 +0000 (19:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 28 Apr 2011 23:45:34 +0000 (19:45 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
common-trace-format-proposal.txt

index 60bf972fb695fc8a4c3bd30fcad88cae14fbe51a..d61b58c0fd73cc0856562db4b7c211e2ae338070 100644 (file)
@@ -298,6 +298,16 @@ enum : integer_type {
   ...
 }
 
   ...
 }
 
+Enumerations omitting the container type ": integer_type" use the "int"
+type (for compatibility with C99). The "int" type must be previously
+declared. E.g.:
+
+typealias integer { size = 32; align = 32; signed = true } := int;
+
+enum {
+  ...
+}
+
 
 4.2 Compound types
 
 
 4.2 Compound types
 
This page took 0.031438 seconds and 4 git commands to generate.