This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] enum enable
- To: Jim Blandy <jimb at cygnus dot com>
- Subject: Re: [RFA] enum enable
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 16 Jul 2001 18:53:29 -0400
- Cc: Eli Zaretskii <eliz at is dot elta dot co dot il>, msnyder at redhat dot com,gdb-patches at sources dot redhat dot com
- References: <Pine.SUN.3.91.1010711161311.5321C-100000@is> <3B4E41B5.64FB@redhat.com> <3028-Sat14Jul2001140821+0300-eliz@is.elta.co.il> <np1yngzgke.fsf@zwingli.cygnus.com>
>> 2001-07-14 Eli Zaretskii <eliz@is.elta.co.il>
>>
>> The following changes avoid polluting global namespace with the
>> `enable' and `disable' identifiers, because some platforms define
>> in their system headers symbols with global scope that go by those
>> names.
>>
>
>
> Why are the following changes necessary? Structure members aren't in
> the global namespace:
See earlier e-mail from me. The existing code read:
b->enable = enabled
and
b->enable == disabled
ulgh.
Andrew