Martin Krischik wrote: > Am Montag 19 März 2007 schrieb David Brown: >> A macro like this: >> >> #define FOO ((fooy) { field: 4 }) > > Whenever I thougth I saw it all C comes with another suprise. What > the heck is this good for?
It is a constant structure, useful, in this case, as a macro to indicate a constant value. The "field:" thing is gcc, the proper C99 syntax is: { .field = 4 } But what is confusing vim is the braces inside of the parens. As Bram mentioned in another email, this can be disabled, but it makes vim not able to detect unclosed parens. Dave