chc.app.CInitInfo module
Base class and subclasses:
|
Global variable initializer. |
|
Initializer of a simple variable. |
|
Initializer of a struct or array. |
|
Component of a compound initializer. |
Initializer of global variables.
- class chc.app.CInitInfo.CCompoundInitInfo(decls: CDeclarations, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CInitInfo.CInitInfoInitializer of a struct or array.
args[0]: index of type of initializer in cdictionary
- property is_compound: bool
- property offset_initializers: List[chc.app.CInitInfo.COffsetInitInfo]
- property typ: CTyp
- class chc.app.CInitInfo.CInitInfo(decls: CDeclarations, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CDictionaryRecord.CDeclarationsRecordGlobal variable initializer.
- property is_compound: bool
- property is_single: bool
- class chc.app.CInitInfo.COffsetInitInfo(decls: CDeclarations, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CDictionaryRecord.CDeclarationsRecordComponent of a compound initializer.
args[0]: index of offset expression in cdictionary
args[1]: index of initinfo in cdeclarations
- property initializer: chc.app.CInitInfo.CInitInfo
- property offset: COffset
- class chc.app.CInitInfo.CSingleInitInfo(decls: CDeclarations, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CInitInfo.CInitInfoInitializer of a simple variable.
args[0]: index of initialization expression in cdictionary
- property exp: CExp
- property is_single: bool