Add enum {} default mapping to integer type
[ctf.git] / 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.027528 seconds and 4 git commands to generate.