Re: [cc65] non-ANSI extensions and initialized structures

Date view Thread view Subject view

From: Ullrich von Bassewitz (
Date: 2003-03-16 01:22:14

On Sun, Mar 16, 2003 at 01:12:58AM +0100, Maciej Witkowiak wrote:
> Because these structures (struct menu too) couldn't be initialized properly
> their usage was limited to just using them for data access. Now when compiler
> is fixed (I still don't know when it happened) and header is corrected, they
> can be used for proper initialization without using "const void blah = { }".
> Such example is in current menu.c in samples/geos

This change was the "flexible array members" addition together with an
extension requested by Christian Krueger. As long as an array of unspecified
size is the last member in a struct, the compiler allows to initialize it.
This feature is not in 2.9 and will not be added.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.

Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-03-16 01:22:24 CET