* enum enable
@ 2001-07-11 6:14 Eli Zaretskii
2001-07-11 7:50 ` Elena Zannoni
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Eli Zaretskii @ 2001-07-11 6:14 UTC (permalink / raw)
To: gdb; +Cc: Michael Snyder
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).
Is it possible to rename the enum to something less general, such as
`enum bp_enable'?
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: enum enable
2001-07-11 6:14 enum enable Eli Zaretskii
@ 2001-07-11 7:50 ` Elena Zannoni
2001-07-11 13:18 ` J.T. Conklin
2001-07-11 8:46 ` Andrew Cagney
2001-07-12 17:38 ` Michael Snyder
2 siblings, 1 reply; 7+ messages in thread
From: Elena Zannoni @ 2001-07-11 7:50 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb, Michael Snyder
Eli Zaretskii writes:
> 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).
>
> Is it possible to rename the enum to something less general, such as
> `enum bp_enable'?
I say, go for it. There is another 'enum enable' in memattr.c. This
one too will need to get a more specific name.
Elena
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: enum enable
2001-07-11 7:50 ` Elena Zannoni
@ 2001-07-11 13:18 ` J.T. Conklin
0 siblings, 0 replies; 7+ messages in thread
From: J.T. Conklin @ 2001-07-11 13:18 UTC (permalink / raw)
To: Elena Zannoni; +Cc: Eli Zaretskii, gdb, Michael Snyder
>>>>> "Elena" == Elena Zannoni <ezannoni@cygnus.com> writes:
>> 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).
>>
>> Is it possible to rename the enum to something less general, such as
>> `enum bp_enable'?
Elena> I say, go for it. There is another 'enum enable' in memattr.c. This
Elena> one too will need to get a more specific name.
Note that I stole that from tracepoint.c, so you'll want to look there
as well.
-jtc
--
J.T. Conklin
RedBack Networks
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: enum enable
2001-07-11 6:14 enum enable Eli Zaretskii
2001-07-11 7:50 ` Elena Zannoni
@ 2001-07-11 8:46 ` Andrew Cagney
2001-07-11 9:35 ` Elena Zannoni
2001-07-12 17:38 ` Michael Snyder
2 siblings, 1 reply; 7+ messages in thread
From: Andrew Cagney @ 2001-07-11 8:46 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: enum enable
2001-07-11 8:46 ` Andrew Cagney
@ 2001-07-11 9:35 ` Elena Zannoni
0 siblings, 0 replies; 7+ messages in thread
From: Elena Zannoni @ 2001-07-11 9:35 UTC (permalink / raw)
To: Andrew Cagney; +Cc: Eli Zaretskii, gdb
Andrew Cagney writes:
> > 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
Hmm, there is also this bit in tracepoint.h:
#if !defined (BREAKPOINT_H)
enum enable
{
disabled, enabled
};
#endif
Elena
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: enum enable
2001-07-11 6:14 enum enable Eli Zaretskii
2001-07-11 7:50 ` Elena Zannoni
2001-07-11 8:46 ` Andrew Cagney
@ 2001-07-12 17:38 ` Michael Snyder
2001-07-13 0:18 ` Eli Zaretskii
2 siblings, 1 reply; 7+ messages in thread
From: Michael Snyder @ 2001-07-12 17:38 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb, Michael Snyder
Eli Zaretskii wrote:
>
> 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).
>
> Is it possible to rename the enum to something less general, such as
> `enum bp_enable'?
It's been discussed before, and I think the consensus
was that it is a good idea. I'm certainly open to it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: enum enable
2001-07-12 17:38 ` Michael Snyder
@ 2001-07-13 0:18 ` Eli Zaretskii
0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2001-07-13 0:18 UTC (permalink / raw)
To: msnyder; +Cc: gdb
> Date: Thu, 12 Jul 2001 17:32:53 -0700
> From: Michael Snyder <msnyder@redhat.com>
>
> Eli Zaretskii wrote:
> >
> > 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).
> >
> > Is it possible to rename the enum to something less general, such as
> > `enum bp_enable'?
>
> It's been discussed before, and I think the consensus
> was that it is a good idea. I'm certainly open to it.
Thanks, I will submit a patch soon, hopefully today or tomorrow.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-07-13 0:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-11 6:14 enum enable Eli Zaretskii
2001-07-11 7:50 ` Elena Zannoni
2001-07-11 13:18 ` J.T. Conklin
2001-07-11 8:46 ` Andrew Cagney
2001-07-11 9:35 ` Elena Zannoni
2001-07-12 17:38 ` Michael Snyder
2001-07-13 0:18 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox