Skip to content

External function record array type mapping #3709

@henrikt-ma

Description

@henrikt-ma

The specification is not very clear when it comes to passing record arrays over the external function interface. The way I read https://specification.modelica.org/master/functions.html#arrays-1 is that at least the mapping of the record type itself is described in https://specification.modelica.org/master/functions.html#records. However,

Records are passed by reference (i.e., a pointer to the record is being passed).

leaves some room for interpretation, especially considering that members of record type are not stored as pointers.

So, if struct ext_C_R is the C mapping of some record type, is the external function receiving an array of such records supposed to be called with (a pointer to) an array of ext_C_R* or (a pointer to) an array of ext_C_R?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions