This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: tree.h vs include guard
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 26 Aug 2002 00:18:25 -0700
- Subject: Re: tree.h vs include guard
- References: <m33ctip8e2.fsf@soliton.integrable-solutions.net>
On Wed, Aug 14, 2002 at 02:54:29AM +0200, Gabriel Dos Reis wrote:
>
> Hi,
>
> I noticed that tree.h has no guard to prevent multiple-inclusions.
> Why so? FWIW, c-tree.h, c-common.h and cp-tree.h do have such a
> thing.
Patches to add multiple include guards to all of GCC's internal
headers have been submitted in the past, but never approved and
applied, probably because they'd need an OK from someone with global
write privileges and all those people were too busy to review the
patch.
It was agreed, last time this came up, that in principle they should
all have guards.
zw