Opened 12 years ago

Last modified 11 years ago

#2106 closed defect

Code generation for arrays of records — at Version 1

Reported by: Martin Sjölund Owned by: Mahder Alemseged Gebremedhin
Priority: high Milestone: 1.9.0
Component: Code Generation Version: trunk
Keywords: Cc:

Description (last modified by Martin Sjölund)

We need to add support for arrays of records in function context
Currently our code looks something like:

struct Complex_array _t;
alloc_struct Complex_array(&_t, 1, (modelica_integer) 2);

This needs to be something like...

struct_array _t;
alloc_struct_array(&t, sizeof(struct Complex), 1, 2);

Code like this is used in MoMoLib, which will probably be a part of MSL 3.2.1

Change History (1)

comment:1 by Martin Sjölund, 12 years ago

Description: modified (diff)
Owner: changed from mahge to Mahder Alemseged Gebremedhin
Status: newassigned
Note: See TracTickets for help on using tickets.