Karl Dahlke <[email protected]> writes: > gcc allows us to define variables anywhere in a block, but Studio C does not. > In the interest of a possible windows port, I request all developers > keep variable definitions at the top of each function or block, > as per K&R.
It's not gcc. This was introduced with the C99 standard. I wonder if Visual Studio can be told that code is C99? If not, oh well. On the other hand, gcc allows mixed declarations and code regardless of the standard. If you build with -Wall -pedantic and aren't compiling C99 or C++, it'll complain about mixed declarations and code, but it will happily compile it. -- Chris _______________________________________________ Edbrowse-dev mailing list [email protected] http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev
