This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Extensionless headers
Jonathan Wakely <cow@compsoc.man.ac.uk> writes:
| On Fri, Jan 11, 2002 at 06:54:28AM +0100, Gabriel Dos Reis wrote:
|
| > Please, note also the .h extension is intepreted as indicating a C file
| > header nott a C++ one, the previous scheme was not using the expected
| > extension and confuses Editors for example.
|
| I know my favourite editor interprets .h files as C++ headers.
| I assume it does this because the C++ syntax rules include all the C ones,
| so the worst that will happen is that C++ keywords that aren't reserved
| names in C will be highlighted (e.g. variables named "new")
|
| I don't know whether this is a widespread practice though.
Apparently no, since my favorite one does not -- even being a GNU
thing ;-)
-- Gaby