Home | History | Annotate | Download | only in generator

Lines Matching defs:Constant

363 class Constant(object):
364 """Represents a TPM constant.
367 const_type: The type of the constant (e.g. 'int').
368 name: The name of the constant (e.g. 'kMyConstant').
369 value: The value of the constant (e.g. '7').
375 """Initializes a Constant instance.
378 const_type: The type of the constant (e.g. 'int').
379 name: The name of the constant (e.g. 'kMyConstant').
380 value: The value of the constant (e.g. '7').
387 """Writes a constant definition to |out_file|.
924 - Parses constants to a list of Constant objects.
1082 A list of Constant objects.
1098 # Create a typedef for the constant group name (e.g. TPM_RC).
1105 print('Invalid constant name: %s' % self._line)
1112 print('Invalid constant value: %s' % self._line)
1115 constants.append(Constant(constant_typename, name, value))
1204 command_code: The name of the command code constant (e.g. TPM2_CC_Startup).
1209 'command_code': The optional value of the command code constant.
1919 such a constant is parsed.
1975 constants: A list of Constant objects.
2003 # Generate constant definitions. Again, generated before structs to improve
2005 for constant in constants:
2006 constant.Output(out_file, defined_types, typemap)