[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Coding style. Pre-processor directives



On 04/27/11 09:07, David Gálvez wrote:
> Hi all,
>
> ADVISE: This is very trivial. :-)
>
> I have seen through the kernel sources two ways to put pre-processor
> directives, e.g.:
>
> #include "xxxxx.h"
> #define XXXXXX
>
> and
>
> # include "xxxx.h"
> # define XXXXXX
> (note the space between # and the first letter)
>
> Even I've seen these two ways in the same file, e.g.:
> http://sparemint.org/cgi-bin/cvsweb/freemint/sys/mint/kentry.h?rev=1.39&content-type=text/x-cvsweb-markup
> http://sparemint.org/cgi-bin/cvsweb/freemint/sys/mint/lists.h?rev=1.2&content-type=text/x-cvsweb-markup
>
> The second way (with the space) looks like is the most used.
> Any reason for this? (I guess not), If not, Which one should I use?
I'm happier with no spaces.

Alan.