Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Btw: In C99 you don't have to declare all your variables at the top. You can also use // comments.


We embedded devs might be able to start consistently using C99 in about fifty years or so. Hopefully.

Lots of development kits barely support C89.


Ironically, most legacy C environments are commercial in nature. Open source tools seem to have a lot better track record in this regard.


Couldn't pre-processors be used to add such features? (I don't know anything about embedded development.)


CPP would not be enough, you would need full C99-to-C89 compiler with parsing to AST.


But the ICU headers require C99 anyway.


As 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.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: