From c2742c56519734d85410b6d65aa7603772413bdf Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 28 Apr 2011 19:45:34 -0400 Subject: [PATCH] Add enum {} default mapping to integer type Signed-off-by: Mathieu Desnoyers --- common-trace-format-proposal.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.34.1