Opened 11 years ago
Last modified 11 years ago
#3071 assigned defect
Handle argument conversion in external C structs
| Reported by: | Martin Sjölund | Owned by: | Adrian Pop | 
|---|---|---|---|
| Priority: | high | Milestone: | Future | 
| Component: | Code Generation | Version: | trunk | 
| Keywords: | Cc: | 
Description
We need to handle record in external "C" according to the specification:
Each element of the Modelica record is mapped to its corresponding C representation.
Which means we need to convert Integer from long to int.
The elements of the Modelica record class are declared in the same order in the C struct.
Which means we need to create a function to permute the Modelica array since it is in alphabetical ordering.
Arrays cannot be mapped.
Which means the C version of the struct needs to be modified to not contain arrays.
  Note:
 See   TracTickets
 for help on using tickets.
    
