Coding Style for RTEMS

Ralf Corsepius ralf.corsepius at rtems.org
Wed Dec 5 15:07:08 UTC 2012


On 12/05/2012 03:41 PM, Sebastian Huber wrote:
> Ok, I will try to make the wiki page about the score coding style more
> verbose and add examples.
>
> http://www.rtems.org/wiki/index.php/Coding_Conventions
>
> I started this discussion since some file in RTEMS are really hard to
> read.

Please note: Hard to read is widely subjective ...
... controversial discussions are guaranteed.
... you are about to open a can of worms.

To start one of these:
   Your way of indenting preprocessor directives (#if/#define/...) is 
known to have caused problems with older compilers (comprising GCC). 
It's not much of a problem with modern compilers, but portable code 
should avoid this style.

Ralf





More information about the devel mailing list