[Bf-committers] MSVC compile error in keyframing.c

Lars Krueger lars_e_krueger at gmx.de
Mon Sep 15 18:02:28 CEST 2008


> 	{NULL, "%l", 0, -1, 0, {}}, // separator  <<<---- not OK

I checked the C99 spec at http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf and that says in section 6.7.8, page 125 that for valid C99 you either have to do {0} or leave out the {} entirely.

Notes 21, 29 can be interpreted in the same way. Note 21 also states that {0} and leaving it out should be identical, according to the standard. In practise, I would go for {0} and not rely on any compiler to implement this correctly.

Maybe this helps with the decision how to change the initialisation.
-- 
Dr. Lars Krueger


Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger


More information about the Bf-committers mailing list