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

Export of array assignments/initialisations to C99 could be simplified / improved in many cases

Open codemanyak opened this issue 2 years ago • 0 comments

Array assignments via initialiser literals are always decomposed on export to C, even if they contain only constant expressions: grafik

ANSI C99, however, allows so called compound literals, not only in an initialization similar to those in Java, C# etc. (just without new): grafik

This syntax could more often be used.

codemanyak avatar Nov 08 '23 10:11 codemanyak