Mixed declarations and code in open source projects?
Posted
by Eduardo
on Stack Overflow
See other posts from Stack Overflow
or by Eduardo
Published on 2010-06-11T22:14:15Z
Indexed on
2010/06/11
22:22 UTC
Read the original article
Hit count: 220
Why is still C99 mixed declarations and code not used in open source C projects like the Linux kernel or GNOME?
I really like mixed declarations and code since it makes the code more readable and prevents hard to see bugs by restricting the scope of the variables to the narrowest possible. This is recommended by Google for C++.
For example, Linux requires at least GCC 3.2 and GCC 3.1 has support for C99 mixed declarations and code
© Stack Overflow or respective owner