Home | History | Annotate | Download | only in generator

Lines Matching refs:structs

925   - Parses structs and unions to a list of Structure objects.
933 types, constants, structs, defines, typemap = parser.Parse()
978 Returns these in the following order: types, constants, structs, defines,
984 structs = []
993 structs += self._ParseStructures(self._STRUCTURE_SECTION_RE, typemap)
995 structs += self._ParseStructures(self._UNION_SECTION_RE, typemap)
1002 # Empty structs not handled by the extractor.
1003 self._AddEmptyStruct('TPMU_SYM_DETAILS', True, structs, typemap)
1020 return types, constants, structs, defines, typemap
1022 def _AddEmptyStruct(self, name, is_union, structs, typemap):
1023 """Adds an empty Structure object to |structs| and |typemap|.
1028 structs: A list of structures to which the new object is appended.
1033 structs.append(s)
1970 def GenerateHeader(types, constants, structs, defines, typemap, commands):
1976 structs: A list of Structure objects.
1996 # Generate typedefs. These are declared before structs because they are not
1997 # likely to depend on structs and when they do a simple forward declaration
2003 # Generate constant definitions. Again, generated before structs to improve
2008 # Generate structs. All non-struct dependencies should be already declared.
2009 for struct in structs:
2018 for struct in structs:
2037 def GenerateImplementation(types, structs, typemap, commands):
2042 structs: A list of Structure objects.
2057 for struct in structs:
2084 types, constants, structs, defines, typemap = structure_parser.Parse()
2087 GenerateHeader(types, constants, structs, defines, typemap, commands)
2088 GenerateImplementation(types, structs, typemap, commands)