From mboxrd@z Thu Jan 1 00:00:00 1970 From: Elena Zannoni To: Andrew Cagney Cc: Eli Zaretskii , gdb@sources.redhat.com Subject: Re: enum enable Date: Wed, 11 Jul 2001 09:35:00 -0000 Message-id: <15180.33290.750066.949415@krustylu.cygnus.com> References: <3B4C5FCE.7060908@cygnus.com> X-SW-Source: 2001-07/msg00094.html 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