Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:GENERIC   [Contents][Index]


10.5 Attributes in trees

Attributes, as specified using the__attribute__ keyword, arerepresented internally as aTREE_LIST. TheTREE_PURPOSEis the name of the attribute, as anIDENTIFIER_NODE. TheTREE_VALUE is aTREE_LIST of the arguments of theattribute, if any, orNULL_TREE if there are no arguments; thearguments are stored as theTREE_VALUE of successive entries inthe list, and may be identifiers or expressions. TheTREE_CHAINof the attribute is the next attribute in a list of attributes applyingto the same declaration or type, orNULL_TREE if there are nofurther attributes in the list.

Attributes may be attached to declarations and to types; theseattributes may be accessed with the following macros. All attributesare stored in this way, and many also cause other changes to thedeclaration or type or to other internal compiler data structures.

Tree Macro:treeDECL_ATTRIBUTES(treedecl)

This macro returns the attributes on the declarationdecl.

Tree Macro:treeTYPE_ATTRIBUTES(treetype)

This macro returns the attributes on the typetype.


[8]ページ先頭

©2009-2026 Movatter.jp