From: Mathieu Desnoyers Date: Thu, 28 Apr 2011 23:45:34 +0000 (-0400) Subject: Add enum {} default mapping to integer type X-Git-Tag: v1.8~63 X-Git-Url: http://git.efficios.com/?p=ctf.git;a=commitdiff_plain;h=c2742c56519734d85410b6d65aa7603772413bdf;ds=sidebyside Add enum {} default mapping to integer type Signed-off-by: Mathieu Desnoyers --- diff --git a/common-trace-format-proposal.txt b/common-trace-format-proposal.txt index 60bf972..d61b58c 100644 --- a/common-trace-format-proposal.txt +++ b/common-trace-format-proposal.txt @@ -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