On Sun, Jan 29, 2012 at 9:24 PM, Rocky Bernstein <[email protected]> wrote: > On Sun, Jan 29, 2012 at 12:46 PM, Pete Batard <[email protected]> wrote: > >> This one is fairly straightforward, but I'll sent it to the list >> nonetheless. >> >> The issue here is that when not compiling a C++, MSVC compilers do not >> accept variables to be defined after code, and the MMC_CMD_SETUP() macro >> does define a cdb variable. >> > > Yes, the intention is have all declarations in a come before statements as > C99 wants. So thanks. It is possible I'll merge this into trunk sooner than > the rest.
I think you mean C89 or C90. C99 added support for inter-mingled statements and declarations. This brings up an important point. MSVC does not support C99 and Microsoft has no stated plans to support it. That was one reason I chose not to support MSVC in my own ripper. I was taking advantage of some C99 features and the trade-off of removing them to support MSVC was not worth it, for my project. Rob
