This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [GOLD] handle more ppc relocs


On Tue, Sep 4, 2012 at 7:57 PM, Alan Modra <amodra@gmail.com> wrote:
>
> -  enum overflow_status
> +  typedef enum overflow_status
>    {
>      status_ok,
>      status_overflow
> -  };
> +  } Status;

This is C++.  You can just write

  enum Status
  ...

That will make Status a typedef.

Also, note that gold normally uses all upper case for enum constants.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]