If a numeric value is encountered between < >, it represents the integer type
size used to hold the enumeration, in bits.
-enum <integer_type OR size> name {
+enum name <integer_type OR size> {
string = start_value1 ... end_value1,
"other string" = start_value2 ... end_value2,
yet_another_string, /* will be assigned to end_value2 + 1 */
If the values are omitted, the enumeration starts at 0 and increment of 1 for
each entry:
-enum <32> name {
+enum name <32> {
ZERO,
ONE,
TWO,
uint8_t stream_packet_count_bits; /* Significant counter bits */
uint8_t compression_scheme;
uint8_t encryption_scheme;
- uint8_t checksum;
+ uint8_t checksum_scheme;
};
...
};
-enum <integer_type or size> name {
+enum name <integer_type or size> {
...
};
unary-operator: one of
+ -
-assignment-expression:
- unary-expression assignment-operator unary-expression
-
assignment-operator:
=
2.2) Declarations:
declaration:
- declaration-specifiers declarator-list-opt ;
+ declaration-specifiers ;
+ declaration-specifiers storage-class-specifier declaration-specifiers declarator-list ;
ctf-specifier ;
declaration-specifiers:
- storage-class-specifier declaration-specifiers-opt
type-specifier declaration-specifiers-opt
type-qualifier declaration-specifiers-opt
unsigned
_Bool
_Complex
- struct-or-variant-specifier
+ struct-specifier
+ variant-specifier
enum-specifier
typedef-name
ctf-type-specifier
struct-specifier:
- struct identifier-opt { struct-or-variant-declaration-list }
+ struct identifier-opt { struct-or-variant-declaration-list-opt }
struct identifier
struct-or-variant-declaration-list:
direct-declarator [ constant-expression ]
pointer:
- type-qualifier-list-opt
- type-qualifier-list-opt pointer
+ * type-qualifier-list-opt
+ * type-qualifier-list-opt pointer
type-qualifier-list:
type-qualifier
type-qualifier-list type-qualifier
-identifier-list:
- identifier
- identifier-list , identifier
-
typedef-name:
identifier
event { ctf-assignment-expression-list-opt }
stream { ctf-assignment-expression-list-opt }
trace { ctf-assignment-expression-list-opt }
+ typealias declaration-specifiers declaration-specifiers declarator-list : declaration-specifiers declarator-list ;
ctf-type-specifier:
floating_point { ctf-assignment-expression-list-opt }