Use of #define _HEADERNAME_H_

Sean Egan seanegan at gmail.com
Thu Jan 24 15:07:37 EST 2008


On Jan 24, 2008 11:42 AM, Mark Doliner <mark at kingant.net> wrote:
> It has come to my attention that we shouldn't be using names that start with
> an underscore followed by a capital letter.  They're reserved for use by the
> compiler and system libraries.  See the paragraph near the top of
> http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html which
> begins with "In addition."

I knew about the double-underscore, but somehow missed
single-underscore-followed-by-capital letter.

I think if we were to follow this rule – which nobody else seems to do
– that we'd also have to change all our:

struct _Foo {};
typedef struct _Foo Foo

stuff to avoid the _F. I say we ignore it and on the off chance glibc
tries to define a _PURPLE_ACCOUNT macro, we'll worry about it then.

-s.




More information about the Devel mailing list