This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] enum enable
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Subject: Re: [RFA] enum enable
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 16 Jul 2001 16:53:37 -0500
- Cc: msnyder at redhat dot com, gdb-patches at sources dot redhat dot com,ac131313 at cygnus dot com
- References: <Pine.SUN.3.91.1010711161311.5321C-100000@is><3B4E41B5.64FB@redhat.com><3028-Sat14Jul2001140821+0300-eliz@is.elta.co.il>
> 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:
> (struct breakpoint): Rename the `enable' member to `enable_state'.
> (args_for_catchpoint_enable): Rename the `enable' member to
> `enable_p'. All users changed.
> (struct tracepoint): The member `enabled' is now `int enabled_p'.
> * printcmd.c (struct display): The `status' member is now an int.
> * memattr.h (struct mem_region): Rename the `status' member to
> `enabled_p'.