Re: C syntax problem with C99 initializers.

2007-03-19 Thread Mike Williams
On 19/03/2007 17:39, David Brown wrote: 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,

Re: C syntax problem with C99 initializers.

2007-03-19 Thread David Brown
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 i

Re: C syntax problem with C99 initializers.

2007-03-19 Thread Martin Krischik
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? Martin -- Martin Krischik mailto://[EMAIL PROTECTED] pgpqr1CVAZVlY.pgp Description: PGP signat

Re: C syntax problem with C99 initializers.

2007-03-19 Thread Bram Moolenaar
David Brown wrote: > A macro like this: > > #define FOO ((fooy) { field: 4 }) > > causes vim to highlight the braces (in an angry fashion), and seems to > cause it consider all of the remaining braces in the file to be in > error as well. > > Any ideas? Highlighting curly braces inside pare