[Mono-devel-list] opcodes.c patch (GCCism)

Bernie Solomon bernard at ugs.com
Tue Aug 10 12:23:25 EDT 2004


Thanks for the fix and apologies for my misattribution
of language feature - we don't normally use C99 features.
I've actually found that one of the compilers I use does
take it after all and another doesn't - even with its
"enable C99" option set!

However I am still slightly puzzled why this feature needs
to be used here at all given that the initialization happens
in order of enum member and those are just sequential
anyway. Removing the use of it seems to behave
identically to me. But things work for me now anyway.

Bernie
----- Original Message ----- 
From: "Paolo Molaro" <lupus at ximian.com>
To: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, August 10, 2004 3:03 AM
Subject: Re: [Mono-devel-list] opcodes.c patch (GCCism)


> On 08/09/04 Bernie Solomon wrote:
> > I attach a patch to opcodes.c which didn't compile without gcc.
> >
> > I've removed the use of [i] = init because I believe it is unnecessary
but
>
> It's not a gcc-only feature: it's a 5 year old standard C feature.
> I added a configure check so the old suboptimal code is used
> with the ancient compilers.
>
> lupus
>
> -- 
> -----------------------------------------------------------------
> lupus at debian.org                                     debian/rules
> lupus at ximian.com                             Monkeys do it better
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>




More information about the Mono-devel-list mailing list