Re: [cc65] Initializing named struct fields

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-01-05 22:55:22


On Sun, Jan 05, 2003 at 10:48:43PM +0100, Piotr Fusik wrote:
> struct s x = {
> 	.f2 = 5,
> 	.f1 = 10
> };
>
> Is it a gcc extension or what? It's not supported by cc65.

It is a new feature in the C99 standard. C99 has extended the C language by a
lot of features, many of which will never be supported by cc65. C99 defines a
new "long long" data type with at least 64 bit width, a new "complex" data
type for complex numbers, several features previously known from C++ compilers
like declaration of variables at arbitrary positions in the code, greatly
expanded compiler and platform limits and lots of other things.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de 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-01-05 22:55:33 CET