On January 8, 2003 06:47 pm, Ove Kaaven wrote:
Wine depends on gcc in a lot of ways already. But my idea is that each compiler should have a way, and we can define __try to the way of the currently used compiler, and to a no-op (like that if(1) thing) if the compiler can't do it.
I think having such support would be _extremely_ cool! Most people use gcc anyway, so 99.9% of people would benefit, and it's one of the outstanding things for Winelib we don't yet have a decent solution for.
OTOH, since VC supports these natively as a "language extension", and gcc has the nested functions, dependency-wise, I guess it's not all that bad. Anybody know how long gcc has had support for nested fn's in pure C?
I'm pretty sure at least gcc 2.7.2 had them (I remember seeing it in its docs).
Yeah, they've been in there for as long as I can remember. But this is academic anyway, you need a new compiler (preferably >= 3.2) for anything non-trivial anyway, so...