chc.app.CCompInfo module

Definition of a struct/union.

class chc.app.CCompInfo.CCompInfo(decls: CDeclarations, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CDictionaryRecord.CDeclarationsRecord

Struct/union definition.

  • tags[0]: cname (‘?’ for global struct)

  • args[0]: ckey (-1 for global struct)

  • args[1]: isstruct

  • args[2]: iattr (-1 for global struct)

  • args[3..]: field indices

property cattr: CAttributes
property ckey: int
property field_strings: str
property fieldcount: int
property fieldnames: List[str]
property fields: List[CFieldInfo]
property is_struct: bool
property name: str
property size: int