Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C Code > Generating C Code > Overview of generating C code (C code) > Overview of modeling C code (C code) > Setting up type definitions for generating C code (C code)
  
Setting up type definitions for generating C code (C code)
In addition to the standard Type Definition properties in Modeler, you can apply the «C Typedef» stereotype to a Type Definition, and then use its Tag Definitions to define C specific information.
1. If you have not done so already, add the C Profile package to your Model. How?
2. Set the standard properties of the Type Definition as required.
3. If you want to generate the Type Definitions of a Model, Package, Class, Interface or Signal in a specific order, order the Type Definitions as required. Tell me more...
4. Apply the «C Typedef» stereotype to the Type Definition. For information about applying Stereotypes to an item, click here
5. Open the Type Definition's Property Pages, and then click the C Typedef tab. For information about setting the tagged value of a Tag Definition, click here
6. If you want to specify array text for the Type Definition, type the text as the tagged value of the C Array Spec tag definition.
7. If you want to specify a CV qualifier for the Type Definition, set the tagged value of the C CV Qualifier tag definition as required.
8. If you want to specify indirection text for the Type Definition, such as * or *const, type the text as the tagged value of the C Indirection tag definition.
9. If you want to specify that the Type Definition is of type 'pointer to function', specify the function pointer return as the tagged value of the C Function Pointer Return tag definition and specify the function pointer parameters as the tagged value of the C Function Pointer Parameters tag definition. The tag definitions are generated as follows for the Type Definition:typedef <C Fu nction Pointer Return> (<C Indirection><C Name>)(<C Function Pointer Parameters>);