4 ms·
Btw: In C99 you don't have to declare all your variables at the top. You can also use // comments.
by jhasse 7y ago
Btw: In C99 you don't have to declare all your variables at the top. You can also use // comments.
- vardump 7y agoWe embedded devs might be able to start consistently using C99 in about fifty years or so. Hopefully. Lots of development kits barely support C89.
- goto11 7y agoCouldn't pre-processors be used to add such features? (I don't know anything about embedded development.)
- mbel 7y agoCPP would not be enough, you would need full C99-to-C89 compiler with parsing to AST.
- anilakar 7y agoIronically, most legacy C environments are commercial in nature. Open source tools seem to have a lot better track record in this regard.
- jhasse 7y agoBut the ICU headers require C99 anyway.
- begriffs 7y agoAs it says in the article: > The examples in this article conform to the C89 standard, but we specify C99 in the Makefile because the ICU header files use C99-style (//) comments.