ifndef __FILE_H__
Benjamin Meyer
ben at meyerhome.net
Thu Oct 28 03:16:36 BST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to the C++ Standard, 17.4.3.1.2 Global Names [lib.global.names],
paragraph 1:
Certain sets of names and function signatures are always reserved to the
implementation:
Each name that contains a double underscore (__) or begins with an underscore
followed by an uppercase letter (2.11) is reserved to the implementation for
any use.
Each name that begins with an underscore is reserved to the implementation for
use as a name in the global namespace.
So..... this means that a large number of headers in KDE should be changed
from __FILE_H__ or _FILE_H_ to FILE_H or [fill in with your idea here]
I was never taught one way or the other and just copied what others did. I
presume the same of everyone else?
What would be the best way to handle this?
a) Ignore it
b) Fix over time little by little
c) Scripty/or other fix majority with a script now
d) ?
- -Benjamin Meyer
P.S. Added a script to kdenonbeta/kdetestscripts/macrounderscore to find all
the __ ones.
- --
aka icefox
Public Key: http://www.csh.rit.edu/~benjamin/public_key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBgFaE1rZ3LTw38vIRAhY4AJ4vZfk1WhHk8aVyMCULBdGy44IkMgCfR3ie
Al6e+l5ccHJHo7Nc1MJh2z0=
=n0Bv
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list