This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: add multiple include guards
On Wed, Feb 21, 2001 at 05:52:59PM -0800, Richard Henderson wrote:
> On Wed, Feb 21, 2001 at 03:06:30PM -0700, Matt Kraai wrote:
> > __GCC_FILENAME_H__
>
> No leading underscores. That's in the implementation's namespace.
We've already got a ton of headers that do guards with leading
underscores (in four or so different styles). They are, of course,
all wrong.
Matt, would you care to change this patch to use GCC_FILENAME_H
throughout (I don't see any need for extra trailing underscores) and
then send a follow up which changes all the existing guards to be
consistent?
Also, you haven't looked at any of the subdirectories. The guard
there should be GCC_DIR_FILENAME_H to avoid clashes.
zw