On Fri, Jun 13, 2008 at 1:32 AM, Aleksandar Lazic <al-haproxy#none.at> wrote:
> Hi all,
>
Hi,
> ###
> /* global options */
> struct global global = {
> logfac1 : -1,
This kind of struct initilization is a GCC extension. GCC manual states it is deprecated as of GCC 2.5.I guess your compiler is not GCC and therefore it does not support that syntax.
On the other hand, C99 has a specific syntax to get the same results:
struct global global = {
.logfac1 = 1,
I think it is more "C friendly" as uses the natural syntax to access a structure member. For the sake of portability I think the initilalizers should be fixed to be C99 compliant.
Regards
-- Alberto GiménezReceived on 2008/06/13 12:45
This archive was generated by hypermail 2.2.0 : 2008/06/13 13:00 CEST