Structorizer.Desktop icon indicating copy to clipboard operation
Structorizer.Desktop copied to clipboard

On exporting record initializers to C or C++, an equivalent C 99 notation might be used.

Open codemanyak opened this issue 1 year ago • 0 comments

By now (i.e. upto version 3.32-11 at least) a record initializer expression like the one in the cyan element of diagram DateTests563 in the below arrangement would be exported to C as an ordered value initializer expression: Record_initializer_3 28-06 This means, the resulting program line in the C code would be:

struct Date someDay = {2017, 2, 24};

The resulting code is quite correct, of course. But instead a closer C syntax could be used for the export:

struct Date someDay = {.day = 24, .month = 2, .year = 2017};

codemanyak avatar Sep 27 '23 21:09 codemanyak