Coding Style for RTEMS
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Dec 5 15:23:36 UTC 2012
On 12/05/2012 04:07 PM, Ralf Corsepius wrote:
> 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.
This is exactly the point why you need a coding style. If the project goal is
to support stone age or broken compilers, then this needs to be documented.
This horizontal white space between the # and the directive is part of C89.
--
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list