gcc: Type Attributes
1
1 6.33 Specifying Attributes of Types
1 ===================================
1
1 The keyword '__attribute__' allows you to specify special attributes of
1 types. Some type attributes apply only to 'struct' and 'union' types,
1 while others can apply to any type defined via a 'typedef' declaration.
DONTPRINTYET 11 Other attributes are defined for functions (⇒Function
Attributes), labels (⇒Label Attributes), enumerators (*note1DONTPRINTYET 11 Other attributes are defined for functions (⇒Function
Attributes), labels (⇒Label Attributes), enumerators (⇒
Enumerator Attributes), statements (⇒Statement Attributes), and
1 for variables (⇒Variable Attributes).
1
1 The '__attribute__' keyword is followed by an attribute specification
1 inside double parentheses.
1
1 You may specify type attributes in an enum, struct or union type
1 declaration or definition by placing them immediately after the
1 'struct', 'union' or 'enum' keyword. A less preferred syntax is to
1 place them just past the closing curly brace of the definition.
1
11 You can also include type attributes in a 'typedef' declaration. ⇒
Attribute Syntax, for details of the exact syntax for using
1 attributes.
1
Menu