Re: [cc65] Initialize an array os structs

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2011-01-06 12:28:44
On 06.01.2011 02:52, Johan Kotlinski wrote:
>> That works!, had always used the first way without problems...(with other
>> compilers)
>
> Congratulations... you have discovered non-portable code :)
>
> Other compilers will probably tell you there is a problem if you
> enable warnings. (e.g. -Wall in gcc)

Carlos is actually right, what he used was legal C code and it should 
work in cc65 but does not. The C standard is very lax about braces in 
initializers. This is also one topic where cc65 fails in Groepaz test suite.

Regards


	Uz


-- 
Ullrich von Bassewitz                                 uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jan 6 14:09:15 2011

This archive was generated by hypermail 2.1.8 : 2011-01-06 14:09:19 CET