[RFA] resubmit: change defines to enums

Michael Snyder msnyder@redhat.com
Mon May 6 10:55:00 GMT 2002


Alan Modra wrote:
> 
> On Fri, Apr 19, 2002 at 11:07:36AM -0700, Michael Snyder wrote:
> > Alan Modra wrote:
> > >
> > > On Thu, Apr 11, 2002 at 02:55:56PM -0700, Michael Snyder wrote:
> > > >
> > > >       * archures.c: Change bfd_mach_ constants to enums.
> > > >       * bfd-in2.h: Regenerate.
> > >
> > > Have you checked that this compiles with a K&R compiler?  If so, then
> > > it's OK.
> >
> > I haven't -- but why wouldn't it?  There are lots of enums already in
> > bfd.
> 
> I had an idea that enums had different scope rules under old compilers.
> Maybe it's structure fields, and maybe I'm dreaming.

I think it's struct tags.  That's still true, by the way.
AFAIK, enums never had different scope rules.



More information about the Binutils mailing list