This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: enum enable
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Subject: Re: enum enable
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 11 Jul 2001 10:16:46 -0400
- Cc: gdb at sources dot redhat dot com
- References: <Pine.SUN.3.91.1010711161311.5321C-100000@is>
> breakpoint.h declares `enum enable'. This gets in the way with some of
> the DJGPP headers, because there's a library function by that name (which
> enables interrupts).
I hit this when trying to fix some of the include header problems
several years back. Neadless to say I ducked the issue.
> Is it possible to rename the enum to something less general, such as
> `enum bp_enable'?
My preference is for memattr.c to use ``int enabled_p'' and for
breakpoint.h to use something like ``enum bp_state { bp_enabled, ...''.
Andrew