Hello team,

Recently I mr. @Xiang Xiao <xiaoxiang781...@gmail.com> had a discussion in
one of the PR's related to C89 code compliance. Particularly related to
initializing a structure by field names (designated initializers). Mr. @Xiang
Xiao <xiaoxiang781...@gmail.com> pointed out that "for the common code it
is better to avoid C99 only features".
I examined the current NuttX code and see that currently common code is far
away from C89 already and things like "<stdbool.h>", "<inttypes.h>",
"snprintf", "designated initializers", "__VA_ARGS__" (variadic macro) are
deeply embedded into the code.

I would like to come up with the suggestion to make C99 as a prerequisite
for the compiler that is used to build NuttX code.

Best regards,
Petro

Reply via email to