This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: namespace rules (Was: Re: sbitmap cleanups)
- To: John Marshall <john_w_marshall at palm dot com>
- Subject: Re: namespace rules (Was: Re: sbitmap cleanups)
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Tue, 11 Apr 2000 19:08:26 -0700
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- References: <200004120147.SAA04623@kovalevskaya.palm.com>
On Tue, Apr 11, 2000 at 06:47:39PM -0700, John Marshall wrote:
> Richard Henderson wrote:
> > You realize, of course, that using X_ was intentional? I really
> > hate how many programs violate namespace rules by overusing _X.
>
> I was going to make a similar comment about this patch last month
>
> http://gcc.gnu.org/ml/gcc-patches/2000-03/msg00224.html
>
> ("Clean up cpplib's internal namespace") but I wasn't sure how
> zealous we were about these things. There are already a number of
> these sorts of things in GCC, but it seemed a shame to introduce
> new ones.
Unless someone's changed the rules on me, names starting with an
underscore and a lowercase letter are legitimate in user programs.
Only names starting with _[A-Z] or __ are reserved for the
implementation.
zw